-
Notifications
You must be signed in to change notification settings - Fork 31
Historical data via WebSocket: 5 streams limitation #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hey @art1c0 thanks for these questions - did you try contacting IBKR support regarding this? My understanding is that 5 is the total limit of connections you can have at a time, but I never verified this. In general the market history websocket doesn't make sense to me, I'd probably suggest using the market data one instead. |
Hi @Voyz, yes I'm currently in touch with IBKR on this matter, it's a bit confusing so far but I don't lose my hope :) Actually I expected historical websocket to be equivalent of TWS reqHistoricalData, but it doesn't seem to be like that. For instance, I need trade volume and I calculate it summarising last size amounts, but it seems to be incorrect as this sum is much larger than volume found in bars returned by reqHistoricalData. Do you have any experience with that by the way? |
Ok, don't quote me on this but I remember talking to IBKR about this one day and they've mentioned something along the lines of: Market Data is sending partial data as it arrives, then once every now and then it sends a 'complete' update. Therefore, these incomplete messages are more like 'correction', while the message with all fields present is more like a full message. Try filtering based on this condition and only sum up 'full' messages, see if the volumes match then? As always, probably talking to them about this would be a good idea 👍 |
Well, there's some update: after a few iterations finally I got this message from IBKR support: |
This is more of a question than an issue, feel free to remove if it's not useful.
At the time of working with IBKR WebSocket I've found that there's a limit of 5 simultaneous streams of historical data. However it's not completely clear: 5 per single connection, or 5 separate connections in total (one stream per connection)?
For instance, for market data it's possible to subscribe for a few streams using single connection.
It does not seem to be the case for historical though... When I subscribe to a second stream, data for the first one stops arriving. So I'm just wondering: is it by design or I'm doing something wrong?
Also is this limit of 5 hard or also depends on market data lines as other subscription types?
And if I'd like to get both market and historical data - I have to open 2 WebSocket connections?
The same goes for other topics such as account summary, live orders, etc.
Please share your experience in this field.
The text was updated successfully, but these errors were encountered: