Hello, all,
Are we able to extract the time-series of this data as below from EIkon API? Is there a way to extract the historical data as well?
I need to extract every rows and column of it.
Please advise. Appreciate it.
Thanks.
@stan.85 So to populate the list you could also try using RDP Search API - for example:
rdp.search('RECYR01*')
So you could try it that way for each year and for the spot - probably you still need some processing.
Regarding the field names you can use the Data Item Browser (type DIB into eikon search bar) or Code Creator App (type CodeCR into eikon search bar) which can help find any field you want and also you can check the relevant parameters. DIB is great because if you put an instrument in, it also returns values for each field - so its easier to zero in on what you want. Code Creator goes one step further and can actually create the python code for you once you have selected the fields and parameters you want. I tend to use DIB as i want to check values most of the time. I hope this can help.
Hi @stan.85
@stan.85 Please try the following:
df3,err = ek.get_data(['RECSPOT=HVBS','RECYR01=HVBS','RECYR02=HVBS','RECYR03=HVBS','RECYR04=HVBS','RECYR05=HVBS','STCSPOT=HVBS','STCM1=HVBS','STCM2=HVBS','STCM3=HVBS','STCM4=HVBS','STCM5=HVBS','STCM6=HVBS','STCM7=HVBS','STCM8=HVBS','STCM9=HVBS','STCM10=HVBS','STCM11=HVBS','STCM12=HVBS','VEECSPOT=HVBS','VEECM1=HVBS','VEECM2=HVBS','VEECM2=HVBS','VEECM4=HVBS','VEECM5=HVBS','VEECM6=HVBS','VEECM7=HVBS','VEECM8=HVBS','VEECM9=HVBS','VEECM10=HVBS','VEECM11=HVBS','VEECM12=HVBS','NSWESCSPOT=HVBS','NSWESCM1=HVBS','NSWESCM2=HVBS','NSWESCM3=HVBS','NSWESCM4=HVBS','NSWESCM5=HVBS','NSWESCM6=HVBS','NSWESCM7=HVBS','NSWESCM8=HVBS','NSWESCM9=HVBS','NSWESCM10=HVBS','NSWESCM11=HVBS','NSWESCM12=HVBS'],['DEALT_VL1','PRIMACT_1','SEC_ACT_1','SEC_VOL1','VALUE_TS1','VALUE_DT1'])df3
For the history I would try either the Historical Pricing service from our RDP APIs or our timeseries- which you can access using an eikon app key. I hope this can help.
jason.ramchandani ,
Thanks for the help. Just a few questions:
StartDate = '2021.06.20'EndDate = str(datetime.date.today())data = rdp.get_historical_price_summaries(universe = ?, fields = fields, interval = rdp.Intervals.DAILY, start=StartDate, end= EndDate)
Hi, @jason.ramchandani01
Thanks for the info. Hmm, guess there is no other way to get that historical pricing. Yeap, I was referring to those ric, would have thought we might have an easier way to populate the list.
Probably a last question (might be a silly one), was wondering where do we find the respective variable: 'DEALT_VL1','PRIMACT_1','SEC_ACT_1','SEC_VOL1','VALUE_TS1','VALUE_DT1' ?