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 AdaptWsSymbol ¶
Types ¶
type BitmexOrder ¶
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 ¶
type SwapWs ¶
type SwapWs struct {
// contains filtered or unexported fields
}
func (*SwapWs) DepthCallback ¶
func (s *SwapWs) DepthCallback(f func(depth *Depth))
func (*SwapWs) SubscribeDepth ¶
func (*SwapWs) SubscribeTicker ¶
func (*SwapWs) SubscribeTrade ¶
func (*SwapWs) TickerCallback ¶
func (s *SwapWs) TickerCallback(f func(ticker *FutureTicker))
func (*SwapWs) TradeCallback ¶
Click to show internal directories.
Click to hide internal directories.