晴之 wrote:
Traceback (most recent call last):
File "/usr/local/Homebrew/Library/Taps/homebrew/vnpy/examples/vn_trader/ibtest_20200704.py", line 31, in <module>
engine.main_engine.subscribe(req1,"IB")gateway.subscribe(req)
File "/anaconda3/lib/python3.7/site-packages/vnpy/gateway/ib/ib_gateway.py", line 191, in subscribe
self.api.subscribe(req)
File "/anaconda3/lib/python3.7/site-packages/vnpy/gateway/ib/ib_gateway.py", line 663, in subscribe
if req.vt_symbol in self.subscrbied:
AttributeError: 'IbApi' object has no attribute 'subscrbied'您好,这个订阅行情这里报错呢,请教下呢如何解决呢
有部份字句错了,打开ib_gateway.py,搜"subscrbied",应该有两处,都改成"subscribed"即可