Documentation ¶
Index ¶
- type OKEXSwap
- func (b *OKEXSwap) AmendOrder(symbol string, id string, price float64, size float64) (result Order, err error)
- func (b *OKEXSwap) CancelAllOrders(symbol string) (err error)
- func (b *OKEXSwap) CancelOrder(symbol string, id string) (result Order, err error)
- func (b *OKEXSwap) GetAccountSummary(currency string) (result AccountSummary, err error)
- func (b *OKEXSwap) GetContractID() (symbol string, err error)
- func (b *OKEXSwap) GetName() (name string)
- func (b *OKEXSwap) GetOpenOrders(symbol string) (result []Order, err error)
- func (b *OKEXSwap) GetOrder(symbol string, id string) (result Order, err error)
- func (b *OKEXSwap) GetOrderBook(symbol string, depth int) (result OrderBook, err error)
- func (b *OKEXSwap) GetPositions(symbol string) (result []Position, err error)
- func (b *OKEXSwap) GetRecords(symbol string, period string, from int64, end int64, limit int) (records []Record, err error)
- func (b *OKEXSwap) PlaceOrder(symbol string, direction Direction, orderType OrderType, price float64, ...) (result Order, err error)
- func (b *OKEXSwap) RunEventLoopOnce() (err error)
- func (b *OKEXSwap) SetContractType(pair string, contractType string) (err error)
- func (b *OKEXSwap) SetLeverRate(value float64) (err error)
- func (b *OKEXSwap) WS() (ws WebSocket, err error)
- type WS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OKEXSwap ¶
type OKEXSwap struct {
// contains filtered or unexported fields
}
OKEXSwap the OKEX swap broker
func (*OKEXSwap) AmendOrder ¶
func (*OKEXSwap) CancelAllOrders ¶
func (*OKEXSwap) CancelOrder ¶
func (*OKEXSwap) GetAccountSummary ¶
func (*OKEXSwap) GetContractID ¶
func (*OKEXSwap) GetOpenOrders ¶
func (*OKEXSwap) GetOrderBook ¶
func (*OKEXSwap) GetPositions ¶ added in v1.0.0
func (*OKEXSwap) GetRecords ¶
func (*OKEXSwap) PlaceOrder ¶
func (*OKEXSwap) RunEventLoopOnce ¶
func (*OKEXSwap) SetContractType ¶
设置合约类型
type WS ¶
type WS struct {
// contains filtered or unexported fields
}
func (*WS) SubscribeLevel2Snapshots ¶
func (s *WS) SubscribeLevel2Snapshots(market Market)
func (*WS) SubscribeOrders ¶
func (s *WS) SubscribeOrders(market Market)
func (*WS) SubscribePositions ¶
func (s *WS) SubscribePositions(market Market)
func (*WS) SubscribeTrades ¶
func (s *WS) SubscribeTrades(market Market)
Click to show internal directories.
Click to hide internal directories.