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
13 1 1 2

How to get history from COIRTARGET

Hi ,

I am trying to retrieve history for COIRTARGET. I have tried this to methods but they didn't work.


TASA_BANREP = rdp.get_historical_price_summaries(universe = 'COIRTARGET=',

start = start_date,

end = end_date,

interval = rdp.Intervals.DAILY,

fields = ['MID_PRICE'])



start_date = "2000-12-12"

end_date = "2021-03-24"


TASA_BANREP= ['COIRTARGET=']



ts,e = ek.get_data(TASA_BANREP,

["TR.MIDPRICE.date","TR.MIDPRICE"],

{'SDate':start_date,'EDate':end_date,'Frq':'D'})



Please note that I am not using get_timeseries since I need a long history.

Any help is appreciated.

Thanks!

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.

Upvotes
Accepted
39.4k 77 11 27

@andrgome

The only field name available for COIRTARGET= when retrieving timeseries using rdp.get_historical_price_summaries is TRDPRC_1. When you're not sure which field name to use with rdp.get_historical_price_summaries method, you can omit the fields kwarg altogether. In this case the method will retrieve all fields available for the instrument. Try

rdp.get_historical_price_summaries('COIRTARGET=', 
                                   start = '2000-12-12', 
                                   end = '2021-03-24')
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
13 1 1 2

Thanks for the hint @Alex Putkov.!

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.