add lastUpdate to candle and max

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-18 16:06:31 +08:00
parent bd504831c3
commit 460ccc07e4

2
maX.go
View File

@ -37,7 +37,7 @@ type WillMX struct {
func (mx MaX) SetToKey(cr *Core) ([]interface{}, error) {
// fmt.Println(utils.GetFuncName(), " step1 ", mx.InstID, " ", mx.Period)
mx.Timestamp, _ = Int64ToTime(mx.Ts)
// mx.Timestamp, _ = Int64ToTime(mx.Ts)
cstr := strconv.Itoa(mx.Count)
tss := strconv.FormatInt(mx.Ts, 10)
//校验时间戳是否合法