From 2e862caeaa77294d08c0968003f6fc82e0028abe Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Fri, 20 Dec 2024 12:51:10 +0800 Subject: [PATCH] =?UTF-8?q?candle=20=E5=92=8C=20max=E9=87=8C=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=9C=A8json=E5=BA=8F=E5=88=97=E5=8C=96?= =?UTF-8?q?=E6=97=B6=E7=BB=9F=E4=B8=80=E4=BA=86=E5=AD=97=E6=AE=B5=E5=90=8D?= =?UTF-8?q?=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- candle.go | 20 ++++++++++---------- maX.go | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/candle.go b/candle.go index 3a75fcb..2ca2ac0 100644 --- a/candle.go +++ b/candle.go @@ -21,18 +21,18 @@ import ( type Candle struct { Id string `json:"_id"` core *Core - InstID string - Period string + InstID string `json:"instId"` + Period string `json:"period"` Data []interface{} - From string - Timestamp time.Time + From string `json:"from"` + Timestamp time.Time `json:""` LastUpdate time.Time `json:"lastUpdate"` - Open float64 - High float64 - Low float64 - Close float64 - VolCcy float64 - Confirm bool + Open float64 `json:"open"` + High float64 `json:"higth"` + Low float64 `json:"low"` + Close float64 `json:"close"` + VolCcy float64 `json:"volCcy"` + Confirm bool `json:"confirm"` } type Sample interface { SetToKey(cr *Core) ([]interface{}, error) diff --git a/maX.go b/maX.go index 8920894..fef2c17 100644 --- a/maX.go +++ b/maX.go @@ -21,7 +21,7 @@ type MaX struct { Id string `json:"_id"` InstID string `json:"instID"` Period string `json:"period"` - Timestamp time.Time `json:"Timestamp"` + Timestamp time.Time `json:"timestamp"` LastUpdate time.Time `json:"lastUpdate"` KeyName string `json:"keyName"` Data []interface{} `json:"data"`