Versions in this module Expand all Collapse all v1 v1.2.17 Jul 15, 2021 Changes in this version + type BinanceFutures struct + func NewBinanceFutures(params *Parameters) *BinanceFutures + func (b *BinanceFutures) AmendOrder(symbol string, id string, price float64, size float64, opts ...OrderOption) (result *Order, err error) + func (b *BinanceFutures) CancelAllOrders(symbol string, opts ...OrderOption) (err error) + func (b *BinanceFutures) CancelOrder(symbol string, id string, opts ...OrderOption) (result *Order, err error) + func (b *BinanceFutures) ChangeLeverage(symbol string, leverage int) (err error) + func (b *BinanceFutures) CloseLong(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error) + func (b *BinanceFutures) CloseShort(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error) + func (b *BinanceFutures) GetBalance(currency string) (result *Balance, err error) + func (b *BinanceFutures) GetContractID() (symbol string, err error) + func (b *BinanceFutures) GetName() (name string) + func (b *BinanceFutures) GetOpenOrders(symbol string, opts ...OrderOption) (result []*Order, err error) + func (b *BinanceFutures) GetOrder(symbol string, id string, opts ...OrderOption) (result *Order, err error) + func (b *BinanceFutures) GetOrderBook(symbol string, depth int) (result *OrderBook, err error) + func (b *BinanceFutures) GetPositions(symbol string) (result []*Position, err error) + func (b *BinanceFutures) GetRecords(symbol string, period string, from int64, end int64, limit int) (records []*Record, err error) + func (b *BinanceFutures) GetTime() (tm int64, err error) + func (b *BinanceFutures) IO(name string, params string) (string, error) + func (b *BinanceFutures) IntervalKlinePeriod(period string) string + func (b *BinanceFutures) OpenLong(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error) + func (b *BinanceFutures) OpenShort(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error) + func (b *BinanceFutures) PlaceOrder(symbol string, direction Direction, orderType OrderType, price float64, ...) (result *Order, err error) + func (b *BinanceFutures) SetContractType(currencyPair string, contractType string) (err error) + func (b *BinanceFutures) SetLeverRate(value float64) (err error) + func (b *BinanceFutures) SetProxy(proxyURL string) error + func (b *BinanceFutures) SubscribeLevel2Snapshots(market Market, callback func(ob *OrderBook)) error + func (b *BinanceFutures) SubscribeOrders(market Market, callback func(orders []*Order)) error + func (b *BinanceFutures) SubscribePositions(market Market, callback func(positions []*Position)) error + func (b *BinanceFutures) SubscribeTrades(market Market, callback func(trades []*Trade)) error