add lastUpdate to candle and maX

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-18 16:12:19 +08:00
parent b144131770
commit 41e90a2fc5

View File

@ -315,13 +315,14 @@ func MakeMaX(cr *core.Core, cl *core.Candle, count int) (error, int) {
} }
mx := core.MaX{ mx := core.MaX{
KeyName: keyName, KeyName: keyName,
InstID: cl.InstID, InstID: cl.InstID,
Period: cl.Period, Period: cl.Period,
From: cl.From, From: cl.From,
Count: count, Count: count,
Ts: tsi, Ts: tsi,
AvgVal: avgLast, AvgVal: avgLast,
Timestamp: cl.Timestamp,
} }
// MaX的Data里包含三个有效信息时间戳平均值计算平均值所采用的数列长度 // MaX的Data里包含三个有效信息时间戳平均值计算平均值所采用的数列长度
dt := []interface{}{} dt := []interface{}{}