¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: TWS API | Options market data request issue.


 

On Fri, Dec 11, 2020 at 05:41 PM, rtx wrote:
Are there different recommendations to ensure proper disconnect/reconnect cycles?
Your message contains an 8 step overview. I would like to emphasize that step #5 must contain two activities:
5a. cancel market data subscription for the tickerID: cancelMktData(1)
5b. disconnect socket connection: eDisconnect()
Unsubscribing from all that you were subscribed to before closing the connection is necessary to ensure that IB's servers understand your intentions, and that the used tickerID values are released and can be re-used.

Having said that, I sometimes also get a error "10197? ?No market data during competing live session". However, I don't use a paper trading account. Instead, I receive this in my live trading account, even though there is only one account active. Thus far this error message has not affected my automated trading, so I simply ignore it.

Join [email protected] to automatically receive all group messages.