client

package
v0.0.0-...-abc9c84 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ReadCh chan []byte
	// contains filtered or unexported fields
}

func NewWsCli

func NewWsCli(cfg *conf.Bot, g *errgroup.Group, logger *zerolog.Logger) (*Client, error)

func (*Client) AlterOrder

func (c *Client) AlterOrder(pair, volume, limitPrice string, tradeIntent int, orderID int64) (int64, string, error)

func (*Client) Auth

func (c *Client) Auth() error

func (*Client) CancelOrder

func (c *Client) CancelOrder(orderID int64) (int64, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) CreateOrder

func (c *Client) CreateOrder(pair, volume, limitPrice string, tradeIntent int) (int64, string, error)

func (*Client) GetBalance

func (c *Client) GetBalance() (int64, error)

func (*Client) GetOrder

func (c *Client) GetOrder(orderID int64) (int64, error)

func (*Client) GetOrderBookAndSubscribe

func (c *Client) GetOrderBookAndSubscribe(pairs string) (int64, error)

func (*Client) GetOrderByExtID

func (c *Client) GetOrderByExtID(extID string) (int64, error)

func (*Client) GetPairsAndSubscribe

func (c *Client) GetPairsAndSubscribe() (int64, error)

func (*Client) SubscribeAccounting

func (c *Client) SubscribeAccounting(includeDeals bool) (int64, error)

Jump to

Keyboard shortcuts

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