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 CancelOrderService
- type CreateOrderService
- type Future
- func (future *Future) AddOrder(order db.Order) (map[string]interface{}, error)
- func (future *Future) CancelOrder(symbol string, orderId string) (map[string]interface{}, error)
- func (future *Future) NewExchange(apiKey string, apiSecret string) exchange.IExchange
- func (future *Future) NewKLineService() exchange.IKLineService
- func (future *Future) RefreshAccount()
- func (future *Future) SubscribeAccount(callback func(map[string]interface{})) error
- func (future *Future) 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 CancelOrderService ¶
type CancelOrderService struct {
binance.CancelOrderService
}
func (*CancelOrderService) Collect ¶
func (service *CancelOrderService) Collect() map[string]interface{}
type CreateOrderService ¶
type CreateOrderService struct { binance.CreateOrderService PositionSide string }
func (*CreateOrderService) Collect ¶
func (service *CreateOrderService) Collect() map[string]interface{}
type Future ¶
func (*Future) CancelOrder ¶
func (*Future) NewExchange ¶
func (*Future) NewKLineService ¶
func (future *Future) NewKLineService() exchange.IKLineService
func (*Future) RefreshAccount ¶
func (future *Future) RefreshAccount()
func (*Future) SubscribeAccount ¶
Click to show internal directories.
Click to hide internal directories.