Update dataService.py
修改bar.date为date,而非原来的trade_date。
This commit is contained in:
parent
0fed1d01ad
commit
4c7e91b605
@ -57,7 +57,7 @@ def generateVtBar(row):
|
|||||||
bar.close = row['close']
|
bar.close = row['close']
|
||||||
bar.volume = row['volume']
|
bar.volume = row['volume']
|
||||||
|
|
||||||
bar.date = str(row['trade_date'])
|
bar.date = str(row['date'])
|
||||||
bar.time = str(row['time']).rjust(6, '0')
|
bar.time = str(row['time']).rjust(6, '0')
|
||||||
|
|
||||||
#将bar的时间改成提前一分钟
|
#将bar的时间改成提前一分钟
|
||||||
|
Loading…
Reference in New Issue
Block a user