add lastUpdate to candle and maX

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-18 13:45:27 +08:00
parent 7f4df7402a
commit 8f3a5af32f
4 changed files with 5 additions and 5 deletions

2
go.mod
View File

@ -6,7 +6,7 @@ go 1.21
require (
github.com/go-redis/redis v6.15.9+incompatible
github.com/phyer/core v0.1.31
github.com/phyer/core v0.1.32
github.com/sirupsen/logrus v1.9.3
)

4
go.sum
View File

@ -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.30 h1:CGBS7ysvw6MolGitqzMQK6ai+z3pjYiavknrn7Qb15E=
github.com/phyer/core v0.1.30/go.mod h1:XZdniJiiZPzOU8+QHPFRQWdvJa6m5Ilj5VClWWI0OQg=
github.com/phyer/core v0.1.32 h1:SwKk/I0o+YPuGWxECSa7CSKZx4NYeNMa0DhBHNGEZqc=
github.com/phyer/core v0.1.32/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=

View File

@ -140,7 +140,7 @@ func (mcd MyCandle) GetSetCandleInfo(cr *core.Core, newPeriod string, ts int64)
if len(str) > 0 {
err := json.Unmarshal([]byte(str), &odata)
if err != nil {
logrus.Panic(GetFuncName(), " str:", str, " err:", err)
logrus.Panic(GetFuncName(), " str2:", str, " err:", err)
} else {
founded = true
}

View File

@ -227,7 +227,7 @@ func GetRangeCandleSortedSet(cr *core.Core, setName string, count int, from time
return &cdl, err
}
for _, str := range keyAry {
fmt.Println("str:", str)
fmt.Println("str1:", str)
if str == nil {
continue
}