Can someone please help me in fixing the code below to get historical data for RIC = 'ECBDF=ECBF'
df1, err = ek.get_data(instruments = ['ECBDF=ECBF'], fields = ['VALUE_DT1','PRIMACT_1'], parameters = {'SDate':'2022-01-01', 'EDate': str(datetime.date.today())[:10], 'FRQ': 'D'})
I also tried get_timeseries, as shown below, without success.
df1, err = ek.get_timeseries(['ECBDF=ECBF'], ['VALUE_DT1','PRIMACT_1'], start_date = "2022-01-01", end_date = "2022-05-04", interval = "daily" )
I would be happy if either get_data or get_timeseries works.
Thanks.