From d3c99b32f23c10d0a8bc546d075c8fb8b3127899 Mon Sep 17 00:00:00 2001 From: zhangkun Date: Mon, 23 Dec 2024 14:28:03 +0800 Subject: [PATCH] tickerInfo Id chagne --- ticker.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ticker.go b/ticker.go index 2a7d672..e04f686 100644 --- a/ticker.go +++ b/ticker.go @@ -9,7 +9,7 @@ import ( type TickerInfo struct { Id string `json:"_id"` - InstId string `json:"instId"` + InstID string `json:"instId"` Last float64 `json:"last"` InstType string `json:"instType"` VolCcy24h float64 `json:"volCcy24h"` @@ -17,7 +17,7 @@ type TickerInfo struct { } type TickerInfoResp struct { - InstId string `json:"instId"` + InstID string `json:"instId"` Last string `json:"last"` InstType string `json:"instType"` VolCcy24h string `json:"volCcy24h"` @@ -26,8 +26,8 @@ type TickerInfoResp struct { func (tir *TickerInfoResp) Convert() TickerInfo { ti := TickerInfo{ - Id: HashString(tir.InstId + tir.Ts), - InstId: tir.InstId, + Id: HashString(tir.InstID + tir.Ts), + InstID: tir.InstID, InstType: tir.InstType, Last: ToFloat64(tir.Last), VolCcy24h: ToFloat64(tir.VolCcy24h),