question

Upvotes
Accepted
646 6 13 25

.NET Time Series API date range

Is there a way to setup from/to interval in this example ?

private void Request()
{
    _request = _timeSeries.SetupDataRequest("EUR=")
        .WithView("BID")
        .WithAllFields()
        .WithInterval(CommonInterval.Daily)
        .WithNumberOfPoints(5)
        .OnDataReceived(DataReceivedCallback)
        .CreateAndSend();
}
eikoneikon-data-apieikon-com-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
39.2k 75 11 27

Yes. Remove WithNumberOfPoints and add From(System.DateTime?) and To(System.DateTime?). Out of WithNumberOfPoints, From and To methods of ITimeSeriesDataRequestSetup interface any two can be used together to set up the request. E.g. you can use From and To, or you can use From and WithNumberOfPoints, but you cannot use all 3 in the same request. For details about the signature and behavior of these methods see their description in the Object Browser in Visual Studio.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Thanks. This is what I was looking for.

Btw, is there any pdf or another document except this page https://developers.refinitiv.com/en/api-catalog/eikon/-net-apis-for-use-in-custom-applications/tutorials

There's no pdf. The SDK is self-documented in the XML files included with the assemblies. This documentation is best viewed through the Object Browser in Visual Studio.
https://developers.refinitiv.com/en/api-catalog/eikon/-net-apis-for-use-in-custom-applications/documentation#sdk-reference

Understood. Thank you.

Click below to post an Idea Post Idea