Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

Can this formula =RHistory("31283H5T8=RRPS","NDA_RAW.Nda_ask_price") translated to get data api.

the specail is the asset is MBS. And the field is all NDA_RAW.Nda =====

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-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.

@huachong.li

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

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

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
18.2k 21 13 21

Hi @huachong.li

You have to use .NET API.

You can follow this .NET API tutorial.

Here is the sample request code:

request = timeSeries.SetupDataRequest("31283H5T8=RRPS")
     .WithView("NDA_RAW")
     .WithAllFields()
     .WithInterval(CommonInterval.Daily)
     .WithNumberOfPoints(10)
     .OnDataReceived(DataReceivedCallback)
     .OnStatusUpdated(StatusUpdatedCallback)
     .CreateAndSend();

Here is the sample DataReceivedCallback code:

foreach (IData data in chunk.Records.ToList())
 {
     object closeObject;
     DateTime? date = null;
     double? ask = null;
     if (data.TryGetValue("NDA_DATE", out closeObject))
         date = (DateTime)closeObject;
     if (data.TryGetValue("NDA_ASK_PRICE", out closeObject))
         ask = (double)closeObject;
     Console.WriteLine(date + " " + ask);
 }

This is the output:


ahs.png (84.1 KiB)
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.