add lastUpdate to candle and max

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-19 20:01:47 +08:00
parent b835d2c040
commit fa18553b9c

2
maX.go
View File

@ -95,7 +95,7 @@ func Int64ToTime(ts int64) (time.Time, error) {
func (mx *MaX) PushToWriteLogChan(cr *Core) error {
s := strconv.FormatFloat(float64(mx.Ts), 'f', 0, 64)
did := mx.InstID + mx.Period + s
logrus.Error("did of max:", did)
logrus.Debug("did of max:", did)
mx0 := MaX{}
mx0.InstID = mx.InstID
mx0.Period = mx.Period