question

Upvotes
Accepted
7 2 2 6

.NET API getting NDA_RAW data

Hi,

If I run:

            request = timeSeries.SetupDataRequest("EUR=")
                .WithView("BID")
                //.WithAllFields()
		.WithFields("TIMESTAMP","CLOSE")
                .WithInterval(CommonInterval.Intraday30Minutes)
                .WithNumberOfPoints(10)
                .OnDataReceived(DataReceivedCallback)
                .CreateAndSend();

the code moves to the DataReceivedCall() function

However, if I replace WithView("BID") with WithView("NDA_RAW") it never gets there and the program does not finish:

            request = timeSeries.SetupDataRequest("EUR=")
                .WithView("NDA_RAW")
                //.WithAllFields()
		.WithFields("TIMESTAMP","CLOSE")
                .WithInterval(CommonInterval.Intraday60Minutes)
                .WithNumberOfPoints(10)
                .OnDataReceived(DataReceivedCallback)
                .CreateAndSend();

What am I doing wrong please?

Thank you very much

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.

Upvotes
Accepted
39.2k 75 11 27

NDA_RAW view is incompatible with intraday intervals. You can trap the error using OnStatusUpdated event. For this request IRequestStatus.Error returned into OnStatusUpdated event callback will have "NoSuchInterval". Check out Views and Intervals section in this tutorial for more info.

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.

Upvotes
7 2 2 6

Thank you + my field names were incorrect as well.. All solved now. Thanks vvm Alex!!

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