-
Notifications
You must be signed in to change notification settings - Fork 34
/
symbolTickerResponse.go
29 lines (27 loc) · 1.32 KB
/
symbolTickerResponse.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package futuresusdt
// SymbolTickerResponse json parser
type SymbolTickerResponse struct {
EventType string `json:"e"` // Event type
EventTime int64 `json:"E"` // Event time stamp
Symbol string `json:"s"` // Symbol
PriceChange string `json:"p"` // Price change
PriceChangePercent string `json:"P"` // Price change percent
AverageWeighted string `json:"w"` // Weighted average price
LastPrice string `json:"c"` // Last price
LastQuantity string `json:"Q"` // Last quantity
OpenPrice string `json:"o"` // Open price
HighPrice string `json:"h"` // Highest price
LowPrice string `json:"l"` // Lowest price
BaseVolume string `json:"v"` // Total traded base asset volume
QuoteVolume string `json:"q"` // Total traded quote asset volume
OpenTime int64 `json:"O"` // Statistics open time
CloseTime int64 `json:"C"` // Statistics close time
FirstTradeID int64 `json:"F"` // First trade id
LastTradeID int64 `json:"L"` // Last trade id
TotalTrades int64 `json:"n"` // Total number of trades
}
// SymbolTickerCombinedResponse json parser
type SymbolTickerCombinedResponse struct {
StreamName string `json:"stream"` // Stream Name
Data SymbolTickerResponse `json:"data"` // data
}