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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
11 1 0 0

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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
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
39.2k 75 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 5.0 MiB each and 10.0 MiB total.

Upvotes
11 1 0 0

Thanks for the hint @Alex Putkov.!

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