Merge pull request #441 from ujfjhz/dev

shcifco data api: use natural day instead of trading day
This commit is contained in:
vn.py 2017-08-16 09:20:53 +08:00 committed by GitHub
commit 68a65828d7

View File

@ -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)