Documentation ¶
Index ¶
- type BitMEXBroker
- func (b *BitMEXBroker) AmendOrder(symbol string, id string, price float64, size float64) (result Order, err error)
- func (b *BitMEXBroker) CancelAllOrders(symbol string) (err error)
- func (b *BitMEXBroker) CancelOrder(symbol string, id string) (result Order, err error)
- func (b *BitMEXBroker) GetAccountSummary(currency string) (result AccountSummary, err error)
- func (b *BitMEXBroker) GetContractID() (symbol string, err error)
- func (b *BitMEXBroker) GetName() (name string)
- func (b *BitMEXBroker) GetOpenOrders(symbol string) (result []Order, err error)
- func (b *BitMEXBroker) GetOrder(symbol string, id string) (result Order, err error)
- func (b *BitMEXBroker) GetOrderBook(symbol string, depth int) (result OrderBook, err error)
- func (b *BitMEXBroker) GetPosition(symbol string) (result Position, err error)
- func (b *BitMEXBroker) GetRecords(symbol string, period string, from int64, end int64, limit int) (records []Record, err error)
- func (b *BitMEXBroker) PlaceOrder(symbol string, direction Direction, orderType OrderType, price float64, ...) (result Order, err error)
- func (b *BitMEXBroker) RunEventLoopOnce() (err error)
- func (b *BitMEXBroker) SetContractType(currencyPair string, contractType string) (err error)
- func (b *BitMEXBroker) SetLeverRate(value float64) (err error)
- func (b *BitMEXBroker) Subscribe(event string, param string, listener interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitMEXBroker ¶
type BitMEXBroker struct {
// contains filtered or unexported fields
}
BitMEXBroker the BitMEX broker
func (*BitMEXBroker) AmendOrder ¶
func (*BitMEXBroker) CancelAllOrders ¶
func (b *BitMEXBroker) CancelAllOrders(symbol string) (err error)
func (*BitMEXBroker) CancelOrder ¶
func (b *BitMEXBroker) CancelOrder(symbol string, id string) (result Order, err error)
func (*BitMEXBroker) GetAccountSummary ¶
func (b *BitMEXBroker) GetAccountSummary(currency string) (result AccountSummary, err error)
func (*BitMEXBroker) GetContractID ¶ added in v0.9.4
func (b *BitMEXBroker) GetContractID() (symbol string, err error)
func (*BitMEXBroker) GetName ¶ added in v0.9.7
func (b *BitMEXBroker) GetName() (name string)
func (*BitMEXBroker) GetOpenOrders ¶
func (b *BitMEXBroker) GetOpenOrders(symbol string) (result []Order, err error)
func (*BitMEXBroker) GetOrder ¶
func (b *BitMEXBroker) GetOrder(symbol string, id string) (result Order, err error)
func (*BitMEXBroker) GetOrderBook ¶
func (b *BitMEXBroker) GetOrderBook(symbol string, depth int) (result OrderBook, err error)
func (*BitMEXBroker) GetPosition ¶
func (b *BitMEXBroker) GetPosition(symbol string) (result Position, err error)
func (*BitMEXBroker) GetRecords ¶ added in v0.9.8
func (*BitMEXBroker) PlaceOrder ¶
func (*BitMEXBroker) RunEventLoopOnce ¶
func (b *BitMEXBroker) RunEventLoopOnce() (err error)
func (*BitMEXBroker) SetContractType ¶
func (b *BitMEXBroker) SetContractType(currencyPair string, contractType string) (err error)
func (*BitMEXBroker) SetLeverRate ¶
func (b *BitMEXBroker) SetLeverRate(value float64) (err error)
func (*BitMEXBroker) Subscribe ¶
func (b *BitMEXBroker) Subscribe(event string, param string, listener interface{})
Click to show internal directories.
Click to hide internal directories.