By using df = ek.get_data(list1, ['TR.FIAccruedInterest']), I am able to get AI for most of the bonds. however, it looks like it doesnt work for those that do not have a RIC code assigned to them as it throws a NaN error. See the below example.
list1=['000416T80','004284D85','004284ZN8', '005158UN8', '19648EAF4', '791698AF0']
df = ek.get_data(list1, ['TR.FIAccruedInterest'])
print(df)
Output
( Instrument Accrued Interest
0 000416T80 1.889
1 004284D85 1.889
2 004284ZN8 1.511
3 005158UN8 1.017
4 19648EAF4 NaN
5 791698AF0 NaN, None)
Additionally, 'TR.AccruedAmountAnalytics' provide the below erroneous results
df2=ek.get_data(list1,'TR.AccruedAmountAnalytics',{'SettlementDate':'20200610'})
print(df2)
Output
0 000416T80 0.0
1 004284D85 0.0
2 004284ZN8 0.0
3 005158UN8 NaN
4 19648EAF4 NaN
5 791698AF0 NaN,
Regards
Sergio