From ce81a83eebaf313c405e55d2057e6291aac1d04b Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Mon, 23 Dec 2024 14:39:28 +0800 Subject: [PATCH] tickerInfo id --- go.mod | 2 +- go.sum | 4 ++-- modules/tickerInfo.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 815448e..dd5574b 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ go 1.21 require ( github.com/go-redis/redis v6.15.9+incompatible - github.com/phyer/core v0.1.65 + github.com/phyer/core v0.1.67 github.com/sirupsen/logrus v1.9.3 ) diff --git a/go.sum b/go.sum index 7ecbe22..ad825c9 100644 --- a/go.sum +++ b/go.sum @@ -49,8 +49,8 @@ github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1y github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE= github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= -github.com/phyer/core v0.1.65 h1:QWYqfyP4B1JrgC+MnKierIXJUWA/BVySZ8/+B+2gKoI= -github.com/phyer/core v0.1.65/go.mod h1:XZdniJiiZPzOU8+QHPFRQWdvJa6m5Ilj5VClWWI0OQg= +github.com/phyer/core v0.1.67 h1:Z0RUgszGVVmjRqvsbD+VqW+2e5AkMRZdpvDeuo7839Q= +github.com/phyer/core v0.1.67/go.mod h1:XZdniJiiZPzOU8+QHPFRQWdvJa6m5Ilj5VClWWI0OQg= github.com/phyer/texus v0.0.0-20241207132635-0e7fb63f8196 h1:P1sxgCsS0VIL38ufZzgUuZLLyY/B+po6kSY7ziNZT7E= github.com/phyer/texus v0.0.0-20241207132635-0e7fb63f8196/go.mod h1:iZexs5agdApNlp8HW/FqKgma4Ij1x8/o+ZLcMvY3f80= github.com/phyer/v5sdkgo v0.1.4 h1:mAxxjPJVTYGuGDarqOcFGkzj5AgqbbzJGsnYmmsbapU= diff --git a/modules/tickerInfo.go b/modules/tickerInfo.go index 675010f..448484a 100644 --- a/modules/tickerInfo.go +++ b/modules/tickerInfo.go @@ -63,7 +63,7 @@ func (mti *MyTickerInfo) ConvertToCandle(cr *core.Core, period string) *core.Can tmi := ti.Ts tmi = tmi - tmi%60000 cd := core.Candle{ - InstID: ti.InstId, + InstID: ti.InstID, Period: period, Data: []interface{}{ strconv.FormatInt(tmi, 10), //开始时间,Unix时间戳的毫秒数格式,如 1597026383085