From 4c7e91b605afd9b07572100c7661ed94fdd06c8f Mon Sep 17 00:00:00 2001 From: huqinghua109 <109niuniu@163.com> Date: Fri, 9 Feb 2018 18:19:28 +0800 Subject: [PATCH] Update dataService.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改bar.date为date,而非原来的trade_date。 --- examples/QuantosDataService/dataService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/QuantosDataService/dataService.py b/examples/QuantosDataService/dataService.py index 4246f6d8..fa60045d 100644 --- a/examples/QuantosDataService/dataService.py +++ b/examples/QuantosDataService/dataService.py @@ -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的时间改成提前一分钟