mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
增加Trades生成Kline的单数字段,当天数据才有效
This commit is contained in:
@@ -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++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user