Documentation ¶
Index ¶
- Constants
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) Login() error
- func (c *Conn) Ping() error
- func (c *Conn) Recv() (interface{}, error)
- func (c *Conn) RecvRaw() ([]byte, error)
- func (c *Conn) Subscribe(channel string, market ...string) error
- func (c *Conn) Unsubscribe(channel string, market ...string) error
- type Error
- type Fills
- type General
- type OrderBook
- type Orders
- type Pong
- type Ticker
- type Time
- type Trade
Constants ¶
View Source
const ( ChannelOrderBook = "orderbook" ChannelTrades = "trades" ChannelTicker = "ticker" ChannelFills = "fills" ChannelOrders = "orders" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fills ¶
type Fills struct { Type string `json:"type"` Channel string `json:"channel"` Data struct { Fee float64 `json:"fee"` FeeRate float64 `json:"feeRate"` Future string `json:"future"` ID int `json:"id"` Liquidity string `json:"liquidity"` Market string `json:"market"` OrderID int `json:"orderId"` TradeID int `json:"tradeId"` Price float64 `json:"price"` Side string `json:"side"` Size float64 `json:"size"` Time time.Time `json:"time"` Type string `json:"type"` } `json:"data"` }
type Orders ¶
type Orders struct { Type string `json:"type"` Channel string `json:"channel"` Data struct { ID int `json:"id"` ClientID string `json:"clientId"` Market string `json:"market"` Type string `json:"type"` Side string `json:"side"` Size float64 `json:"size"` Price float64 `json:"price"` ReduceOnly bool `json:"reduceOnly"` IOC bool `json:"ioc"` PostOnly bool `json:"postOnly"` Status string `json:"status"` FilledSize float64 `json:"filledSize"` RemainingSize float64 `json:"remainingSize"` AvgFillPrice float64 `json:"avgFillPrice"` } `json:"data"` }
type Time ¶
func (*Time) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.