Documentation ¶
Index ¶
- type BitMEX
- func (b *BitMEX) AmendOrder(symbol string, id string, price float64, size float64, opts ...OrderOption) (result *Order, err error)
- func (b *BitMEX) CancelAllOrders(symbol string, opts ...OrderOption) (err error)
- func (b *BitMEX) CancelOrder(symbol string, id string, opts ...OrderOption) (result *Order, err error)
- func (b *BitMEX) CloseLong(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)
- func (b *BitMEX) CloseShort(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)
- func (b *BitMEX) GetBalance(currency string) (result *Balance, err error)
- func (b *BitMEX) GetContractID() (symbol string, err error)
- func (b *BitMEX) GetName() (name string)
- func (b *BitMEX) GetOpenOrders(symbol string, opts ...OrderOption) (result []*Order, err error)
- func (b *BitMEX) GetOrder(symbol string, id string, opts ...OrderOption) (result *Order, err error)
- func (b *BitMEX) GetOrderBook(symbol string, depth int) (result *OrderBook, err error)
- func (b *BitMEX) GetPositions(symbol string) (result []*Position, err error)
- func (b *BitMEX) GetRecords(symbol string, period string, from int64, end int64, limit int) (records []*Record, err error)
- func (b *BitMEX) GetTime() (tm int64, err error)
- func (b *BitMEX) OpenLong(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)
- func (b *BitMEX) OpenShort(symbol string, orderType OrderType, price float64, size float64) (result *Order, err error)
- func (b *BitMEX) PlaceOrder(symbol string, direction Direction, orderType OrderType, price float64, ...) (result *Order, err error)
- func (b *BitMEX) SetContractType(currencyPair string, contractType string) (err error)
- func (b *BitMEX) SetLeverRate(value float64) (err error)
- func (b *BitMEX) SubscribeLevel2Snapshots(market Market, callback func(ob *OrderBook)) error
- func (b *BitMEX) SubscribeOrders(market Market, callback func(orders []*Order)) error
- func (b *BitMEX) SubscribePositions(market Market, callback func(positions []*Position)) error
- func (b *BitMEX) SubscribeTrades(market Market, callback func(trades []*Trade)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitMEX ¶
type BitMEX struct {
// contains filtered or unexported fields
}
BitMEX the BitMEX exchange
func (*BitMEX) AmendOrder ¶
func (*BitMEX) CancelAllOrders ¶
func (*BitMEX) CancelOrder ¶
func (*BitMEX) CloseShort ¶ added in v1.1.3
func (*BitMEX) GetBalance ¶
func (*BitMEX) GetContractID ¶
func (*BitMEX) GetOpenOrders ¶
func (*BitMEX) GetOrderBook ¶
func (*BitMEX) GetPositions ¶
func (*BitMEX) GetRecords ¶
func (*BitMEX) PlaceOrder ¶
func (*BitMEX) SetContractType ¶
func (*BitMEX) SetLeverRate ¶
func (*BitMEX) SubscribeLevel2Snapshots ¶
func (*BitMEX) SubscribeOrders ¶
func (*BitMEX) SubscribePositions ¶
func (*BitMEX) SubscribeTrades ¶
Click to show internal directories.
Click to hide internal directories.