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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
9 1 0 5

How to get the python equivalent for getting basis,last and contract

Excel is giving the results with RHistory


I am getting basis using python with GET_TIMESERIES and GET_DATA.

But I am unable to get the results for Contract month and last price. I doubt i am passing a wrong field name.

Looking in the data item browser also not helping



Seems like the get_timeseries don't have the data.

But I don't have the right field names for get_data.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
eikon12.jpg (54.3 KiB)
python.jpg (86.0 KiB)
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
9.7k 49 38 60

Hi @bibin.jose,

To help you understand what you are able to do today with the Eikon Data API is to filter the fields that support your requirements within the Data Item Browser. For example, in the screenshot below, I'm selecting only those fields that have historical values captured:

The historical contract month and last price fields are not available.


ahs.png (51.0 KiB)
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
39.2k 75 11 27

I'm afraid Eikon Data APIs are not yet on par with data retrieval capabilities available through Excel or legacy Eikon APIs. At the moment the only Eikon APIs that are capable of retrieving the data you're after are legacy Eikon .NET APIs and RHistory library of Eikon COM APIs (the latter can only be used in Excel VBA).

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