Documentation ¶
Index ¶
- func AdaptCurrencyPairToSymbol(pair CurrencyPair, contract string) string
- func AdaptWsSymbol(symbol string) (pair CurrencyPair, contract string)
- func New(config *APIConfig) *bitmex
- type BitmexOrder
- type SubscribeOp
- type SwapWs
- func (s *SwapWs) DepthCallback(f func(depth *Depth))
- func (s *SwapWs) SubscribeDepth(pair CurrencyPair, contractType string) error
- func (s *SwapWs) SubscribeTicker(pair CurrencyPair, contractType string) error
- func (s *SwapWs) SubscribeTrade(pair CurrencyPair, contractType string) error
- func (s *SwapWs) TickerCallback(f func(ticker *FutureTicker))
- func (s *SwapWs) TradeCallback(f func(trade *Trade, contract string))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptCurrencyPairToSymbol ¶ added in v1.3.2
func AdaptWsSymbol ¶ added in v1.3.2
Types ¶
type BitmexOrder ¶ added in v1.0.2
type BitmexOrder struct { Symbol string `json:"symbol"` OrderID string `json:"OrderID"` ClOrdID string `json:"clOrdID"` Price float64 `json:"price,omitempty"` OrderQty int `json:"orderQty"` CumQty int `json:"cumQty"` AvgPx float64 `json:"avgPx"` OrdType string `json:"ordType"` Text string `json:"text"` TimeInForce string `json:"timeInForce,omitempty"` Side string `json:"side"` OrdStatus string `json:"ordStatus"` Timestamp time.Time `json:"timestamp"` }
type SubscribeOp ¶ added in v1.3.2
type SwapWs ¶ added in v1.3.2
type SwapWs struct {
// contains filtered or unexported fields
}
func (*SwapWs) DepthCallback ¶ added in v1.3.2
func (s *SwapWs) DepthCallback(f func(depth *Depth))
func (*SwapWs) SubscribeDepth ¶ added in v1.3.2
func (*SwapWs) SubscribeTicker ¶ added in v1.3.2
func (*SwapWs) SubscribeTrade ¶ added in v1.3.2
func (*SwapWs) TickerCallback ¶ added in v1.3.2
func (s *SwapWs) TickerCallback(f func(ticker *FutureTicker))
func (*SwapWs) TradeCallback ¶ added in v1.3.2
Click to show internal directories.
Click to hide internal directories.