增加Trades生成Kline的单数字段,当天数据才有效

This commit is contained in:
injoyai
2025-11-17 11:05:35 +08:00
parent 5fd492e881
commit 8eeab6f533
3 changed files with 7 additions and 1 deletions

View File

@@ -175,6 +175,7 @@ func (this Trades) Kline(t time.Time, last Price) *Kline {
}
k.Close = v.Price
k.Volume += int64(v.Volume)
k.Order += v.Number
k.Amount += v.Price * Price(v.Volume) * 100
first++
}