How can i avoid to get OSError: [Errno 9] Bad file descriptor using ibapi?

前端 未结 1 1015
野性不改
野性不改 2021-01-24 08:57

In the following code i am collecting data to pandas dataframe called ohlcv as a function and running the app throw to the ib server:

from ibapi.client import EC         


        
相关标签:
1条回答
  • 2021-01-24 09:41

    The ibapi package disconnects from the socket but the reader is still trying to read from the socket. The source code has been modified to just trap the error but it hasn't made it into a release yet. You can modify your source code like is suggested here. https://groups.io/g/twsapi/message/42580 .

    0 讨论(0)
提交回复
热议问题