get_timeseries with extra parameters

Hello, presuming get_timeseries mimics the functionality of RHistory Excel function I would like to use the TSREPEAT parameter. I would like to download time series data that is not available in the TR function so I'm guessing not available via get_data in the API.I am trying to download similar data for seven rics and don't want to have to line up all the dates afterwards.

In Excel using RHistory with TSREPEAT=Y works just fine, but I notice that this field is not available as a function param in the API. I have tried using SendJSONRequest with same request string but injecting "tsrepeat":"Y" but it seems to be ignored.

Interesting that this TR help page: https://customers.reuters.com/rph/tremo/sliver.aspx?topic=RHistory states that the default is TSREPEAT = Y but get_timeseries default behaviour appears to be N.

There are other params like DAY and NULL which would be good to also have added if possible.

Thanks in advance.

Richard

Best Answer

  • Zhenya Kovalyov
    Answer ✓

    @richard.fell

    Apologies for the delay, there is no way to organise this out of the box. I guess you can load the API response into some data frame structure like deedle. There is also a bulk timeseries request i developed for a hackathon that you can use as a starting point.

    bulkdatarequestcs.zip

    Here is the init routine:

    new BulkDataRequestSetup()
    .WithRics("AAA1YCD=R", "AA1YCD=R", "A1YCD=R", "BBB1YCD=R", "BBCD1Y=R", "B1YCD=R", "CCC1YCD=R")
    .WithFields("CLOSE", "TIMESTAMP")
    .WithInterval(new Interval(IntervalType.Daily, 1))
    .WithNumberOfPoints(100)
    .OnDataReceived(DataReceivedCallback)
    .OnStatusUpdated(StatusUpdatedCallback)
    .CreateAndSend();

    And the callbacks signature:

    private static void DataReceivedCallback(Dictionary<string, List<double>> dictionary)
    private static void StatusUpdatedCallback(Dictionary<string, IRequestStatus> requestStatuses)

Answers