开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: reqMktData callbacks are missing data with gateway 10.30 and 10.31 sporadically, works fine with 10.19 and older gateways/TWS


 

Hi AJ,?

I connect via TWS and my TWS version is 10.30.1s, whereas the version of my CSharpAPI.dll is?10.15.2.0.?

"I didn't receive all of ["bid", "ask", "last", "volume", "last_timestamp", "high", "low"]"

?I think this might be the difference. I only request snapshots every few seconds.?

E.g. in C#: client.reqMktData(reqId, contractObject, string.Empty, true, false, null);

As said, 50.000+ requests per day and working fine. Of?course, I only get 'the last Last' snapshot, for my app that's fine.

Hope it helps,
Daniel.


On Thu, Dec 19, 2024 at 5:53?PM ajn via <andrei.jefremov=[email protected]> wrote:
In the attached zip I have the app. It is now only 250 lines including all the IB connection and argument parsing. The working function are all the same as before (described earlier) I just deleted everything else. I do agree, as a standalone app it gets much more readable
?
Program_get_bid.py -f symbols.csv -m REALTIME --data-lines 75 --loops 5 --port 4001
?
As an added bonus this app can be run from anywhere, not just from python samples folder. so long your python environment has 10.30 installed
?
AJ



--
Daniel

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