erdewit / ib_insync

Python sync/async framework for Interactive Brokers API
BSD 2-Clause "Simplified" License
2.8k stars 744 forks source link

Qualifycontracts() not working since last update #257

Closed tradefish closed 4 years ago

tradefish commented 4 years ago

Hi Ewald, my TWS has made an update today and the instruction Qualifycontracts() is not working anymore. For example:

spx = Index('SPX', 'CBOE') ib.qualifyContracts(spx)

Decode failed Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\ib_insync\client.py", line 279, in _onSocketHasData self._decode(fields) File "C:\ProgramData\Anaconda3\lib\site-packages\ib_insync\client.py", line 380, in _decode self.decoder.interpret(fields) File "C:\ProgramData\Anaconda3\lib\site-packages\ibapi\decoder.py", line 1425, in interpret handleInfo.processMeth(self, iter(fields)) File "C:\ProgramData\Anaconda3\lib\site-packages\ibapi\decoder.py", line 526, in processContractDataMsg contract.timeZoneId = decode(str, fields) File "C:\ProgramData\Anaconda3\lib\site-packages\ibapi\utils.py", line 72, in decode return s.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 13: invalid continuation byte Unknown contract: Index(symbol='SPX', exchange='CBOE')

I've also tried with stocks, and it's the same....

Thank you,

Raul

tradefish commented 4 years ago

Hi again Ewald, it seems that the problem is only with the TWS, if I tray with de IB Gateway, everything is correct, so it seems it must be something related with the latest TWS update.... I'll check later again with the TWS, to see if the problem is still there.....

erdewit commented 4 years ago

The error comes from the bowels of ibapi, which is not used any more in ib_insync. You might want to update ib_inysnc to a newer version.

tradefish commented 4 years ago

Ok, thank you!!


From: Ewald de Wit notifications@github.com Sent: Sunday, May 31, 2020 4:14 PM To: erdewit/ib_insync ib_insync@noreply.github.com Cc: tradefish rram3133@hotmail.com; Author author@noreply.github.com Subject: Re: [erdewit/ib_insync] Qualifycontracts() not working since last update (#257)

The error comes from the bowels of ibapi, which is not used any more in ib_insync. You might want to update ib_inysnc to a newer version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/erdewit/ib_insync/issues/257#issuecomment-636477030, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL4IRO6ZLBQFKEVDBN57XCDRUJQ3JANCNFSM4NN6OIMQ.