From 86d63a3318c18e77592d8937260889376de3b5a9 Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Mon, 13 Jan 2025 16:39:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E5=9C=A8=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E6=97=B6=E8=A1=A5=E9=BD=90=E7=BC=BA=E5=B0=91=E7=9A=84candle?= =?UTF-8?q?=E5=BA=8F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/extent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/extent.go b/modules/extent.go index 1018077..843f1cf 100644 --- a/modules/extent.go +++ b/modules/extent.go @@ -218,6 +218,7 @@ func InvokeCandle(cr *core.Core, candleName string, period string, from int64, t restQ := core.RestQueue{ InstId: candleName, Bar: period, + WithWs: false, Limit: strconv.Itoa(candleCount), // 动态计算limit After: from, } @@ -290,7 +291,6 @@ func GetRangeCandleSortedSet(cr *core.Core, setName string, count int, from time go func() { parts := strings.Split(setName, "|") instId := parts[1] - // 定义正则表达式,匹配 maX 或 candle 后面的内容直到第一个竖线 period, _ := extractString(setName) InvokeCandle(cr, instId, period, fromt, sti) }()