bug fix
This commit is contained in:
parent
68e9df08e4
commit
911e9bf317
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user