Documentation ¶
Index ¶
- type Api
- func (api *Api) AccountInfo() ([]exchange.Balance, error)
- func (api *Api) AddOrder(params map[string]interface{}) (map[string]interface{}, error)
- func (api *Api) CancelOrder(params map[string]interface{}) (map[string]interface{}, error)
- func (api *Api) CreateSpotListenKey() (string, bool)
- func (api *Api) KLines(params map[string]interface{}) ([][]interface{}, error)
- type Spot
- func (s *Spot) AddOrder(order db.Order) (map[string]interface{}, error)
- func (s *Spot) CancelOrder(symbol string, orderId string) (map[string]interface{}, error)
- func (s *Spot) NewExchange(apiKey string, apiSecret string) exchange.IExchange
- func (s *Spot) NewKLineService() exchange.IKLineService
- func (s *Spot) RefreshAccount()
- func (s *Spot) SubscribeAccount(callback func(map[string]interface{})) error
- func (s *Spot) SubscribeMarketData(symbols []string, callback func(map[string]interface{})) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
func (*Api) CancelOrder ¶
func (*Api) CreateSpotListenKey ¶
创建或延期现货账户listenKey
type Spot ¶
func (*Spot) CancelOrder ¶
func (*Spot) NewExchange ¶
func (*Spot) NewKLineService ¶
func (s *Spot) NewKLineService() exchange.IKLineService
func (*Spot) RefreshAccount ¶
func (s *Spot) RefreshAccount()
func (*Spot) SubscribeAccount ¶
订阅账号更新
Click to show internal directories.
Click to hide internal directories.