修改DataRecorder的分钟线时间戳为不带second和microsecond
This commit is contained in:
parent
828d4eca7e
commit
0e9eaa2e1e
@ -247,7 +247,7 @@ class DrEngine(object):
|
|||||||
|
|
||||||
bar.date = tick.date
|
bar.date = tick.date
|
||||||
bar.time = tick.time
|
bar.time = tick.time
|
||||||
bar.datetime = tick.datetime
|
bar.datetime = tick.datetime.replace(second=0, microsecond=0)
|
||||||
bar.volume = tick.volume
|
bar.volume = tick.volume
|
||||||
bar.openInterest = tick.openInterest
|
bar.openInterest = tick.openInterest
|
||||||
# 否则继续累加新的K线
|
# 否则继续累加新的K线
|
||||||
|
Loading…
Reference in New Issue
Block a user