Hi
I am trying to reload data for fixed income etc bonds in pycharm. Specifically, i would like to retrieve historical data for the bid and ask prices with daily or minute interval. I used the following code :
start_date = datetime.datetime(2023, 3, 1)
end_date = datetime.datetime(2023, 3, 10)
df, err = ek.get_data(
instruments=['NL188254462='],
fields=['ASK', 'ASK_YIELD', 'BID_YIELD', 'BID'],
start_date= 'start_date',
end_date= 'end_date',
interval='daily')
however it does not work.
Either when i used this one :
start_date = datetime.datetime(2023, 3, 1)
end_date = datetime.datetime(2023, 3, 10)
df = ek.get_timeseries(['NL188254462='],
fields = [ 'ASK', 'BID', 'ASK_YIELD', 'BID_YIELD'],
start_date=datetime.timedelta(-20),
end_date=datetime.timedelta(0),
interval='daily')
The output returns N/A values.
How should i fix this ?
Thank you in advance,
Best,
Kyriakos