Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Market Data type not modified #439

Closed
djangodissilent opened this issue Feb 8, 2022 · 2 comments
Closed

Market Data type not modified #439

djangodissilent opened this issue Feb 8, 2022 · 2 comments

Comments

@djangodissilent
Copy link

djangodissilent commented Feb 8, 2022

Hi erdwit,

I'm trying to request some type 4 tick data from IB using the ib.reqMarketDataType(4) function, however, I receive nan values which indicate that IB never sent the data, But when debugging I found out that the market data type is 1!

image
image

Thanks in advance

@forna
Copy link

forna commented Apr 1, 2022

I have the same issue. I have set the marketDataType=2 (frozen) to receive the last price also when the market is closed but the result with the reqMktData method is always nan. Debugging the code I noticed the marketDataType is actually set to 1.
image
image

@erdewit
Copy link
Owner

erdewit commented Apr 28, 2022

It turns out that the wrapper.marketDataType callback can receive a different value than what is specified in the ib.reqMarketDataType request. This is IBKR's doing so nothing can be done about that on this side.

From experimenting with it, it seems that it's not possible to request delayed data when there's a data subscription for that data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants