From 058e87b9be4a1d496529760ad399c1f011b60a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E7=BA=AF=E5=87=80?= <1113655791@qq.com> Date: Mon, 17 Feb 2025 23:39:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=B8=AA=E8=82=A1=E5=92=8C?= =?UTF-8?q?=E6=8C=87=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocol/model_kline.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocol/model_kline.go b/protocol/model_kline.go index f076860..5f09adb 100644 --- a/protocol/model_kline.go +++ b/protocol/model_kline.go @@ -158,7 +158,9 @@ func (kline) Decode(bs []byte, Type uint8) (*KlineResp, error) { } k.Amount = Price(getVolume(Uint32(bs[4:8])) * 100) //从元转为分,并去除多余的小数 + //指数和股票的差别bs[12:] bs = bs[8:] + resp.List = append(resp.List, k) }