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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 1 0 1

Can we request historical data through TR or get_data for derived fields like daily percent change on volume?

An example query:

TR("IBM.N","TR.VolumePctChg1D","SDate:2018-02-12 EDate:2018-03-15 Frq:D CURN:USD")

The above query returns a single result but if I swap out for TR.Volume daily values display correctly. Am I doing something wrong, or is historical data on derived fields like this not supported. Thanks!

eikoneikon-data-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikonfields
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
Accepted
39.3k 76 11 27

@adrianwebb.78

The description provided in Data Item Browser for this fields reads "The percent change between volume on the latest tradable day and the volume one day prior". The Parameters tab displays neither the "Series" checkbox allowing to set the time period for the series nor the "As of" drop-down allowing to select a single date from history. This tells that history is not available for this field and SDate/EDate parameters are not applicable.
In Excel you can apply PERCENT_CHG function to TR.Volume field to have volume percent change history returned:
=TR("IBM.N","TR.Volume.date;PERCENT_CHG(TR.Volume, lag=-1D)","Sdate=2018-02-12 Edate=2018-03-15 CH=Fd RH=IN")
This functionality is not yet supported through Eikon Data APIs though. If you try to submit the same request using get_data method you'll get "Backend error. 400 Bad Request" response.

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.

Thanks for the clarification!

Upvotes
3 1 0 1

After some review in the data item browser it looks like these are just static fields, so the dates don't matter.

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.