Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Candle ¶
type Candle struct { O float64 H float64 L float64 C float64 Vol float64 VolCcy float64 TS okx.JSONTime }
func (*Candle) UnmarshalJSON ¶
type Candlesticks ¶
type Candlesticks struct { TS okx.JSONTime O float64 H float64 L float64 C float64 Vol float64 VolCcy float64 VolCcyQuote float64 Confirm int64 }
func (*Candlesticks) UnmarshalJSON ¶
func (c *Candlesticks) UnmarshalJSON(buf []byte) error
type Component ¶
type Component struct { Exch string `json:"exch"` Symbol string `json:"symbol"` SymPx okx.JSONFloat64 `json:"symPx"` Wgt okx.JSONFloat64 `json:"wgt"` CnvPx okx.JSONFloat64 `json:"cnvPx"` }
type IndexCandle ¶
func (*IndexCandle) UnmarshalJSON ¶
func (c *IndexCandle) UnmarshalJSON(buf []byte) error
type IndexComponent ¶
type IndexTicker ¶
type IndexTicker struct { InstID string `json:"instId"` IdxPx okx.JSONFloat64 `json:"idxPx"` High24h okx.JSONFloat64 `json:"high24h"` Low24h okx.JSONFloat64 `json:"low24h"` Open24h okx.JSONFloat64 `json:"open24h"` SodUtc0 okx.JSONFloat64 `json:"sodUtc0"` SodUtc8 okx.JSONFloat64 `json:"sodUtc8"` TS okx.JSONTime `json:"ts"` }
type OrderBook ¶
type OrderBook struct { Asks []*OrderBookEntity `json:"asks"` Bids []*OrderBookEntity `json:"bids"` TS okx.JSONTime `json:"ts"` }
type OrderBookEntity ¶
type OrderBookEntity struct { DepthPrice float64 Size float64 LiquidatedOrder int OrderNumbers int }
func (*OrderBookEntity) UnmarshalJSON ¶
func (o *OrderBookEntity) UnmarshalJSON(buf []byte) error
type OrderBookWs ¶
type OrderBookWs struct { Asks []*OrderBookEntity `json:"asks"` Bids []*OrderBookEntity `json:"bids"` Checksum int32 `json:"checksum"` TS okx.JSONTime `json:"ts"` PrevSeqID int64 `json:"prevSeqId"` SeqID int64 `json:"seqId"` }
type Ticker ¶
type Ticker struct { InstID string `json:"instId"` Last okx.JSONFloat64 `json:"last"` LastSz okx.JSONFloat64 `json:"lastSz"` AskPx okx.JSONFloat64 `json:"askPx"` AskSz okx.JSONFloat64 `json:"askSz"` BidPx okx.JSONFloat64 `json:"bidPx"` BidSz okx.JSONFloat64 `json:"bidSz"` Open24h okx.JSONFloat64 `json:"open24h"` High24h okx.JSONFloat64 `json:"high24h"` Low24h okx.JSONFloat64 `json:"low24h"` VolCcy24h okx.JSONFloat64 `json:"volCcy24h"` Vol24h okx.JSONFloat64 `json:"vol24h"` SodUtc0 okx.JSONFloat64 `json:"sodUtc0"` SodUtc8 okx.JSONFloat64 `json:"sodUtc8"` InstType okx.InstrumentType `json:"instType"` TS okx.JSONTime `json:"ts"` }
type TotalVolume24H ¶
type TotalVolume24H struct { VolUsd okx.JSONFloat64 `json:"volUsd"` VolCny okx.JSONFloat64 `json:"volCny"` TS okx.JSONTime `json:"ts"` }
type Trade ¶
type Trade struct { InstID string `json:"instId"` TradeID okx.JSONFloat64 `json:"tradeId"` Px okx.JSONFloat64 `json:"px"` Sz okx.JSONFloat64 `json:"sz"` Side okx.TradeSide `json:"side"` TS okx.JSONTime `json:"ts"` }
Click to show internal directories.
Click to hide internal directories.