Thread: Historical Price Data for D1

Results 1 to 4 of 4

  1. #1

    Default Historical Price Data for D1

    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

    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.
  2. #2

    Default

    Could you please specify which connection do you use when this happens?
  3. #3

    Default

    Good day,

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

    Default

    We will inform the team responsible for supporting the server about the issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts