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{
KeyName: keyName,
InstID: cl.InstID,
Period: cl.Period,
From: cl.From,
Count: count,
Ts: tsi,
AvgVal: avgLast,
KeyName: keyName,
InstID: cl.InstID,
Period: cl.Period,
From: cl.From,
Count: count,
Ts: tsi,
AvgVal: avgLast,
Timestamp: cl.Timestamp,
}
// MaX的Data里包含三个有效信息时间戳平均值计算平均值所采用的数列长度
dt := []interface{}{}