用以下语句可以成功的获得c,o,h,l.但同样都是浮点型想增加获取bid_volume1等字段为何失败显示: File “Collect VOLs.py”, line 34, in <module>
quotesC=ks[s][i][“bid_price1”]
KeyError: ‘bid_price1’
api.wait_update()
if api.is_changing(ks[s][i], ‘close’):
while i<=-1:
for s in SYMS:
quotesC=ks[s][i][“close”]
quotesO=ks[s][i][“open”]