question

Upvotes
Accepted
646 21 31 40

.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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 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 512.0 KiB each and 1.0 MiB total.

Thanks. This is what I was looking for.

Btw, is there any pdf or another document except this page https://developers.thomsonreuters.com/eikon-apis/net-apis-use-custom-applications/learning ?

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.thomsonreuters.com/eikon-apis/net-apis-use-custom-applications/docs?content=9259&type=documentation_item

Understood. Thank you.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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