util

package
v0.0.0-...-6d31ec0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccountOrdersPayload

func CreateAccountOrdersPayload(id int, wallet, signature, apiKey string) ([]byte, error)

func CreateAuthWalletPayload

func CreateAuthWalletPayload(id int, address, signature string) ([]byte, error)

func CreateCancelAllOrdersPayload

func CreateCancelAllOrdersPayload(id int, wallet string) ([]byte, error)

func CreateCancelOrderPayload

func CreateCancelOrderPayload(id int, orderId, apiKey string) ([]byte, error)

func CreateCheckAuthPayload

func CreateCheckAuthPayload(id int, jwt string) ([]byte, error)

func CreateMakeOrderPayload

func CreateMakeOrderPayload(id, chainId int, walletAddress string, orderParams types.MakeOrderInput, isPublic bool) ([]byte, error)

func CreateOrderStatusPayload

func CreateOrderStatusPayload(id int, orderHash string) ([]byte, error)

func CreatePingPayload

func CreatePingPayload(id int) ([]byte, error)

func CreateSubscribeOrderbookPayload

func CreateSubscribeOrderbookPayload(id int) ([]byte, error)

func CreateTakeOrderPayload

func CreateTakeOrderPayload(id, chainId, seatId int, walletAddress, orderId string, orderParams types.OrderParameters) ([]byte, error)

func CreateViewOrderbookPayload

func CreateViewOrderbookPayload(id int, query types.ViewOrderbookParams) ([]byte, error)

func ListenToMessages

func ListenToMessages(conn *websocket.Conn, ch chan []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL