binancefutures

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinanceFutures

type BinanceFutures struct {
	// contains filtered or unexported fields
}

BinanceFutures the Binance futures exchange

func NewBinanceFutures

func NewBinanceFutures(params *Parameters) *BinanceFutures

func (*BinanceFutures) AmendOrder

func (b *BinanceFutures) AmendOrder(symbol string, id string, price float64, size float64, opts ...OrderOption) (result *Order, err error)

func (*BinanceFutures) CancelAllOrders

func (b *BinanceFutures) CancelAllOrders(symbol string, opts ...OrderOption) (err error)

func (*BinanceFutures) CancelOrder

func (b *BinanceFutures) CancelOrder(symbol string, id string, opts ...OrderOption) (result *Order, err error)

func (*BinanceFutures) CloseLong added in v1.1.3

func (b *BinanceFutures) CloseLong(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)

func (*BinanceFutures) CloseShort added in v1.1.3

func (b *BinanceFutures) CloseShort(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)

func (*BinanceFutures) GetBalance

func (b *BinanceFutures) GetBalance(currency string) (result *Balance, err error)

currency: USDT

func (*BinanceFutures) GetContractID

func (b *BinanceFutures) GetContractID() (symbol string, err error)

func (*BinanceFutures) GetName

func (b *BinanceFutures) GetName() (name string)

func (*BinanceFutures) GetOpenOrders

func (b *BinanceFutures) GetOpenOrders(symbol string, opts ...OrderOption) (result []*Order, err error)

func (*BinanceFutures) GetOrder

func (b *BinanceFutures) GetOrder(symbol string, id string, opts ...OrderOption) (result *Order, err error)

func (*BinanceFutures) GetOrderBook

func (b *BinanceFutures) GetOrderBook(symbol string, depth int) (result *OrderBook, err error)

func (*BinanceFutures) GetPositions

func (b *BinanceFutures) GetPositions(symbol string) (result []*Position, err error)

func (*BinanceFutures) GetRecords

func (b *BinanceFutures) GetRecords(symbol string, period string, from int64, end int64, limit int) (records []*Record, err error)

func (*BinanceFutures) GetTime added in v1.1.6

func (b *BinanceFutures) GetTime() (tm int64, err error)

func (*BinanceFutures) IntervalKlinePeriod

func (b *BinanceFutures) IntervalKlinePeriod(period string) string

func (*BinanceFutures) OpenLong added in v1.1.3

func (b *BinanceFutures) OpenLong(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)

func (*BinanceFutures) OpenShort added in v1.1.3

func (b *BinanceFutures) OpenShort(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)

func (*BinanceFutures) PlaceOrder

func (b *BinanceFutures) PlaceOrder(symbol string, direction Direction, orderType OrderType, price float64,
	size float64, opts ...PlaceOrderOption) (result *Order, err error)

func (*BinanceFutures) SetContractType

func (b *BinanceFutures) SetContractType(currencyPair string, contractType string) (err error)

func (*BinanceFutures) SetLeverRate

func (b *BinanceFutures) SetLeverRate(value float64) (err error)

func (*BinanceFutures) SetProxy

func (b *BinanceFutures) SetProxy(proxyURL string) error

SetProxy ... proxyURL: http://127.0.0.1:1080

func (*BinanceFutures) SubscribeLevel2Snapshots

func (b *BinanceFutures) SubscribeLevel2Snapshots(market Market, callback func(ob *OrderBook)) error

func (*BinanceFutures) SubscribeOrders

func (b *BinanceFutures) SubscribeOrders(market Market, callback func(orders []*Order)) error

func (*BinanceFutures) SubscribePositions

func (b *BinanceFutures) SubscribePositions(market Market, callback func(positions []*Position)) error

func (*BinanceFutures) SubscribeTrades

func (b *BinanceFutures) SubscribeTrades(market Market, callback func(trades []*Trade)) error

Jump to

Keyboard shortcuts

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