¿ªÔÆÌåÓý

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

Match tickerId (or reqId) to contract after a bust event


 

In my application 5 second real time bars are requested by

?

Application.controller().reqRealTimeBars(contract, WhatToShow.TRADES, rthOnly, handler);

?

where the ¡°handler¡± class implements IRealTimeBarHandler. I have about 10 data subscriptions running at the same time. After a bust event TWS sends an error message like:?

?

10001234 10225 Bust event occurred, current subscription is deactivated¡­

?

The second number is the error code and the first number is the tickerId (or reqId?). However, I do not know which contract (i.e., which symbol) this tickerId refers to and which data subscription I actually need to restart. The id number is assigned in the background somehow. Is there a way to match a tickerId to the associated contract? (code is in Java, API version 9.72.18) Thanks.

?

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