pkg

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeProvider

func InitializeProvider(requestUrl, feedUrl string) (*provider, error)

func InitializeWallet

func InitializeWallet(key, address, nodeURL string) (*bind.TransactOpts, uint64, string, string, error)

func NewAoriProvider

func NewAoriProvider() (*provider, error)

func NewAoriProviderWithURL

func NewAoriProviderWithURL(requestURL, feedURL string) (*provider, error)

Types

type AoriProvider

type AoriProvider interface {
	Send(msg []byte) error
	Receive() ([]byte, error)
	SendFeed(msg []byte) error
	ReceiveFeed() ([]byte, error)
	AccountOrders(apiKey string) (*types.AccountOrdersResponse, error)
	AuthWallet() (*types.AuthWalletResponse, error)
	CancelAllOrders() (string, error)
	CancelOrder(orderId, apiKey string) (string, error)
	CheckAuth(jwt string) (string, error)
	MakeOrder(orderParams types.MakeOrderInput) (*types.MakeOrderResponse, error)
	MakePrivateOrder(orderParams types.MakeOrderInput) (*types.MakeOrderResponse, error)
	OnSubscribe(event types.SubscriptionEvent, handler func(payload []byte))
	OrderStatus(orderHash string) (*types.OrderStatusResponse, error)
	Ping() (string, error)
	SubscribeOrderbook() (string, error)
	TakeOrder(orderParams types.OrderParameters, orderHash string, seatId int) (string, error)
	ViewOrderbook(query types.ViewOrderbookParams) (*types.AoriViewOrderbookResponse, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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