Hello,
I would like to translate the code below to R in order to get the data in R
import eikon as ek
EK_KEY = key
ek.set_app_key(EK_KEY)
ls = ['PETZ3.SA', 'QUAL3.SA']
start_dat = '2010-01-01'
df_price, err_price = ek.get_data(
instruments=ls,
fields=['TR.CLOSEPRICE',
'TR.CLOSEPRICE.date'
],
parameters=
{
'SDate': start_dat,
'EDate': '0D',
'Frq': 'D',
'Curn': 'BRL'
}
)
Could you help me?
Thanks in advance