I need to get the timseries of the close price for the 3 months treasury bill for these countries
['Australia', 'Austria', 'Belgium', 'Bermuda', 'Brazil', 'Canada', 'Cayman Islands', 'Chile', 'China (Mainland)', 'Colombia', 'Denmark', 'Finland', 'France', 'Germany', 'Hong Kong', 'India', 'Italy', 'Japan', 'Lithuania', 'Luxembourg', 'Mexico', 'Morocco', 'Netherlands', 'New Zealand', 'Nigeria', 'Norway', 'Peru', 'Philippines', 'Portugal', 'Singapore', 'South Africa', 'South Korea', 'Spain', 'Sweden', 'Switzerland', 'Taiwan', 'Thailand', 'Turkey', 'United Arab Emirates', 'United Kingdom', 'United States']
I tried to use the following snippet for the USA:
stock_prices, err = ek.get_data(
'US3MT=RR',
['CF_CLOSE.Date', 'CF_CLOSE'],
{'SDate': starting_date,
'EDate': ending_date})
but I get only the last value and no timeseries. On DIB, I am unable to find any closing value with historical data. Could you point me to the right variable?
And can I get all countries 3 months treasury bill by replacing the first 2 letters of 'US3MT=RR' with each country abbreviation?