market

package
v1.0.51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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     okex.JSONTime
}

func (*Candle) UnmarshalJSON

func (c *Candle) UnmarshalJSON(buf []byte) error

type Component

type Component struct {
	Exch   string           `json:"exch"`
	Symbol string           `json:"symbol"`
	SymPx  okex.JSONFloat64 `json:"symPx"`
	Wgt    okex.JSONFloat64 `json:"wgt"`
	CnvPx  okex.JSONFloat64 `json:"cnvPx"`
}

type IndexCandle

type IndexCandle struct {
	O  float64
	H  float64
	L  float64
	C  float64
	TS okex.JSONTime
}

func (*IndexCandle) UnmarshalJSON

func (c *IndexCandle) UnmarshalJSON(buf []byte) error

type IndexComponent

type IndexComponent struct {
	Index      string           `json:"index"`
	Last       okex.JSONFloat64 `json:"last"`
	Components []*Component     `json:"components"`
	TS         okex.JSONTime    `json:"ts"`
}

type IndexTicker

type IndexTicker struct {
	InstID  string           `json:"instId"`
	IdxPx   okex.JSONFloat64 `json:"idxPx"`
	High24h okex.JSONFloat64 `json:"high24h"`
	Low24h  okex.JSONFloat64 `json:"low24h"`
	Open24h okex.JSONFloat64 `json:"open24h"`
	SodUtc0 okex.JSONFloat64 `json:"sodUtc0"`
	SodUtc8 okex.JSONFloat64 `json:"sodUtc8"`
	TS      okex.JSONTime    `json:"ts"`
}

type OrderBook

type OrderBook struct {
	Asks []*OrderBookEntity `json:"asks"`
	Bids []*OrderBookEntity `json:"bids"`
	TS   okex.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 int                `json:"checksum,string"`
	TS       okex.JSONTime      `json:"ts"`
}

type Ticker

type Ticker struct {
	InstID    string              `json:"instId"`
	Last      okex.JSONFloat64    `json:"last"`
	LastSz    okex.JSONFloat64    `json:"lastSz"`
	AskPx     okex.JSONFloat64    `json:"askPx"`
	AskSz     okex.JSONFloat64    `json:"askSz"`
	BidPx     okex.JSONFloat64    `json:"bidPx"`
	BidSz     okex.JSONFloat64    `json:"bidSz"`
	Open24h   okex.JSONFloat64    `json:"open24h"`
	High24h   okex.JSONFloat64    `json:"high24h"`
	Low24h    okex.JSONFloat64    `json:"low24h"`
	VolCcy24h okex.JSONFloat64    `json:"volCcy24h"`
	Vol24h    okex.JSONFloat64    `json:"vol24h"`
	SodUtc0   okex.JSONFloat64    `json:"sodUtc0"`
	SodUtc8   okex.JSONFloat64    `json:"sodUtc8"`
	InstType  okex.InstrumentType `json:"instType"`
	TS        okex.JSONTime       `json:"ts"`
}

type TotalVolume24H

type TotalVolume24H struct {
	VolUsd okex.JSONFloat64 `json:"volUsd"`
	VolCny okex.JSONFloat64 `json:"volCny"`
	TS     okex.JSONTime    `json:"ts"`
}

type Trade

type Trade struct {
	InstID  string           `json:"instId"`
	TradeID okex.JSONFloat64 `json:"tradeId"`
	Px      okex.JSONFloat64 `json:"px"`
	Sz      okex.JSONFloat64 `json:"sz"`
	Side    okex.TradeSide   `json:"side,string"`
	TS      okex.JSONTime    `json:"ts"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL