开云体育

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

Re: No Security definition has been found for the request when running cpp sample code


 

开云体育

reqRealTimeBars is served by the historical data server. But IBKR does not maintain ‘last price’ historical data for forex pairs. So you will never get realtime bars for any forex pair, if you have WhatToShow=”TRADES”: you’ll just get this error message 420:

?

Invalid Real-time Query:No historical market data for EUR/CASH@FXSUBPIP Last 0

?

But if you set WhatToShow=”MIDPOINT”, it works fine:

?

20241203 09:49:47.068? id=131072 time=20241203-09:49:40 open=0.829655 high=0.829655 low=0.82962 close=0.82964 volume=-1 WAP=-1 count=-1

20241203 09:49:50.362? id=131072 time=20241203-09:49:45 open=0.82964 high=0.82968 low=0.82964 close=0.829665 volume=-1 WAP=-1 count=-1

20241203 09:49:55.533? id=131072 time=20241203-09:49:50 open=0.829665 high=0.829665 low=0.82962 close=0.82962 volume=-1 WAP=-1 count=-1

?

Richard

?

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