question

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

@Ranbor.li which API are you using?

1 Answer

Upvotes
Accepted
47.3k 111 44 60

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