修改DataRecorder的分钟线时间戳为不带second和microsecond

This commit is contained in:
vn.py 2017-07-15 18:11:16 +08:00
parent 828d4eca7e
commit 0e9eaa2e1e

View File

@ -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线