This commit is contained in:
msincenselee 2018-05-14 08:46:59 +08:00
parent 68e9df08e4
commit 911e9bf317

View File

@ -413,7 +413,7 @@ class CtpMdApi(MdApi):
tick.tradingDay = data['TradingDay']
# 先根据交易日期,生成时间
tick.datetime = datetime.strptime(tick.date + ' ' + tick.time, '%Y-%m-%d %H:%M:%S')
tick.datetime = datetime.strptime(tick.date + ' ' + tick.time, '%Y%m%d %H:%M:%S.%f')
# 修正时间
if tick.datetime.hour >= 20:
if tick.datetime.isoweekday() == 1: