question

Upvotes
Accepted
1 0 0 2

Specifying time interval for receiving price data feed

eikondataeikon-app-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.

@Ranbor.li which API are you using?

1 Answer

Upvotes
Accepted
38.1k 71 35 53

For App Studio .NET SDK, the application can specify time interval when using Time Series service. The following example shows how to make a request for the 5 latest data points for EUR= (Euro) BID quote Daily history.

private void Request()
{
    _request = _timeSeries.SetupDataRequest("EUR=")
        .WithView("BID")
        .WithAllFields()
        .WithInterval(CommonInterval.Daily)
        .WithNumberOfPoints(5)
        .OnDataReceived(DataReceivedCallback)
        .CreateAndSend();
}

For more information, please refer to the Data API - Time series tutorial.

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.

Click below to post an Idea Post Idea