[Fix]Close #646
This commit is contained in:
parent
d98163f034
commit
b486658fb0
@ -56,6 +56,9 @@ def generateVtBar(row):
|
||||
bar.volume = row['volume']
|
||||
|
||||
bar.date = str(row['trade_date'])
|
||||
if row['time'] == 0:
|
||||
bar.time = '00:00:00'
|
||||
else:
|
||||
bar.time = str(row['time'])
|
||||
bar.datetime = datetime.strptime(' '.join([bar.date, bar.time]), '%Y%m%d %H%M%S')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user