binancefutures

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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 broker

func New

func New(accessKey string, secretKey string) *BinanceFutures

func (*BinanceFutures) AmendOrder

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

func (*BinanceFutures) CancelAllOrders

func (b *BinanceFutures) CancelAllOrders(symbol string) (err error)

func (*BinanceFutures) CancelOrder

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

func (*BinanceFutures) GetAccountSummary

func (b *BinanceFutures) GetAccountSummary(currency string) (result AccountSummary, 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) (result []Order, err error)

func (*BinanceFutures) GetOrder

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

func (*BinanceFutures) GetOrderBook

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

func (*BinanceFutures) GetPositions added in v1.0.0

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) IntervalKlinePeriod

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

func (*BinanceFutures) PlaceOrder

func (b *BinanceFutures) PlaceOrder(symbol string, direction Direction, orderType OrderType, price float64,
	stopPx float64, size float64, postOnly bool, reduceOnly bool, params map[string]interface{}) (result Order, err error)

func (*BinanceFutures) RunEventLoopOnce

func (b *BinanceFutures) RunEventLoopOnce() (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) WS added in v1.0.0

func (b *BinanceFutures) WS() (ws WebSocket, err error)

Jump to

Keyboard shortcuts

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