Hello - I want to pull a historic yield time series for at least US10YT=RR, but I'd like to include other RICs too (for instance US1YT=RR). I've tried many variations of the following and I can't successfully pull any yields. Should I prefer get_data to get_timeseries? Does it matter if I want to pull for more than one RIC? Here are examples of my failing codes. The equivalent codes in Excel do pull data.
import eikon as ek
ek.set_app_key('xxx')
df1, err = ek.get_data('US10YT=RR', 'B_YLD_1', {'SDate':'2020-01-01','Frq':'D','EDate':'2022-01-31'})
print(df1)
df2, err = ek.get_timeseries('US10YT=RR', 'B_YLD_1', start_date='2020-01-01', end_date='2022-01-31')
print(df2)