Specifying time interval for receiving price data feed

Specifying time interval for receiving price data feed

Best Answer

  • Jirapongse
    Answer ✓

    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.

Answers