question

Upvotes
Accepted
7 4 5 8

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

Hello @jerome

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

Hello @jerome

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,
AHS

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

Upvotes
7 4 5 8

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

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.