Update dataService.py

修改bar.date为date,而非原来的trade_date。
This commit is contained in:
huqinghua109 2018-02-09 18:19:28 +08:00 committed by GitHub
parent 0fed1d01ad
commit 4c7e91b605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ def generateVtBar(row):
bar.close = row['close']
bar.volume = row['volume']
bar.date = str(row['trade_date'])
bar.date = str(row['date'])
bar.time = str(row['time']).rjust(6, '0')
#将bar的时间改成提前一分钟