[Fix]Close #792
This commit is contained in:
parent
5438df5c45
commit
00f9da4c68
@ -50,7 +50,12 @@ def generateVtBar(row):
|
||||
|
||||
bar.symbol = symbol
|
||||
bar.exchange = exchangeMapReverse[exchange]
|
||||
bar.vtSymbol = '.'.join([bar.symbol, bar.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']
|
||||
|
Loading…
Reference in New Issue
Block a user