This commit is contained in:
vn.py 2018-05-07 22:39:25 +08:00
parent 5438df5c45
commit 00f9da4c68

View File

@ -50,7 +50,12 @@ def generateVtBar(row):
bar.symbol = symbol
bar.exchange = exchangeMapReverse[exchange]
if bar.exchange in ['SSE', 'SZSE']:
bar.vtSymbol = '.'.join([bar.symbol, bar.exchange])
else:
bar.vtSymbol = bar.symbol
bar.open = row['open']
bar.high = row['high']
bar.low = row['low']