PDA

View Full Version : Historical Price Data for D1



AldPokel
08-03-2016,
Good day,

Seems like there is some problem with fetching historical price data for D1 time frame for specific instruments, this problem seems to have started since the last weekend.
I follow the steps from:
http://www.fxcorporate.com/help/CPlu...rices_cpp.html (http://www.fxcorporate.com/help/CPlusPlus/web-content.html#hist_prices_cpp.html)

I need the last 300 bars for several timeframes. The code I use is similar to:
IO2GRequestFactory * factory = mSession->getRequestFactory();
IO2GTimeframeCollection * timeFrames = factory->getTimeFrameCollection();
IO2GTimeframe * timeFrame = timeFrames->get("D1");
IO2GRequest *request = factory->createMarketDataSnapshotRequestInstrument("EUR/USD", timeFrame, 300);
factory->fillMarketDataSnapshotRequestTime(request, 0, 0);

For all other timeframes, I get 300 bars. For some specific instrument (EUR/USD, etc.) for timeframe D1, I get only 18 bars, one for each day starting 01-Nov-2015 until the current date. This code was working previously and I was getting 300 bars.

Grateful if a fix/workaround can be provided.

AnthonyNiz
08-05-2016,
Could you please specify which connection do you use when this happens?

AlmoSl
08-05-2016,
Good day,

Looks like the problem is only with the Real connection. When I use the Demo connection, I get 300 bars.

AndrewMr
08-06-2016,
We will inform the team responsible for supporting the server about the issue.