add lastUpdate to candle and max

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-18 12:25:43 +08:00
parent 06a3db9d19
commit 9e9ff51894
2 changed files with 24 additions and 22 deletions

View File

@ -26,6 +26,7 @@ type Candle struct {
Data []interface{} Data []interface{}
From string From string
Timestamp time.Time Timestamp time.Time
LastUpdate time.Time `json:"lastUpdate"`
Open float64 Open float64
High float64 High float64
Low float64 Low float64

1
maX.go
View File

@ -21,6 +21,7 @@ type MaX struct {
InstID string `json:"instID"` InstID string `json:"instID"`
Period string `json:"period"` Period string `json:"period"`
Timestamp time.Time `json:"timestamp"` Timestamp time.Time `json:"timestamp"`
LastUpdate time.Time `json:"lastUpdate"`
KeyName string `json:"keyName"` KeyName string `json:"keyName"`
Data []interface{} `json:"data"` Data []interface{} `json:"data"`
Count int `json:"count,number"` Count int `json:"count,number"`