From 78d628fac07d6aea32e5b45d3b651485206b219d Mon Sep 17 00:00:00 2001 From: ujfjhz Date: Fri, 11 Aug 2017 16:35:32 +0800 Subject: [PATCH] shcifco data api: use natural day instead of trading day --- vnpy/data/shcifco/vnshcifco.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vnpy/data/shcifco/vnshcifco.py b/vnpy/data/shcifco/vnshcifco.py index d72ded9a..34ae549d 100644 --- a/vnpy/data/shcifco/vnshcifco.py +++ b/vnpy/data/shcifco/vnshcifco.py @@ -132,14 +132,15 @@ class ShcifcoApi(object): barData = barStr.split(',') d = { 'symbol': barData[0], - 'date': barData[1], + # 'date': barData[1], # trading day 'time': barData[2], 'open': float(barData[3]), 'high': float(barData[4]), 'low': float(barData[5]), 'close': float(barData[6]), 'volume': int(barData[7]), - 'openInterest': int(barData[8]) + 'openInterest': int(barData[8]), + 'date': barData[9] # natural day } barList.append(d)