package market import ( "github.com/shopspring/decimal" "wss-pool/pkg/model/base" ) type SubscribeCandlestickResponse struct { base base.WebSocketResponseBase Channel string `json:"ch"` Timestamp int64 `json:"ts"` Tick *Tick Data []Tick } type Tick struct { Id int64 `json:"id"` // unix时间,同时作为K线ID Amount decimal.Decimal `json:"amount"` // 成交量 Count int `json:"count"` // 成交笔数 Open decimal.Decimal `json:"open"` // 开盘价 Close decimal.Decimal `json:"close"` // 收盘价(当K线为最晚的一根时,是最新成交价) Low decimal.Decimal `json:"low"` // 最低价 High decimal.Decimal `json:"high"` // 最高价 Vol decimal.Decimal `json:"vol"` // 成交额, 即 sum(每一笔成交价 * 该笔的成交量) IsBa int `json:"is_ba"` //是否 币安 2 }