question

Upvotes
Accepted
12 3 3 6

How to download all rdp.get_bond_analytics 's fields via Python Eikon data API

df = rdp.get_bond_analytics(


universe = universe,


fields = ["InstrumentCode",

"NotionalCcy",

"PositionInDealCcy",

"InterestPaymentFrequency",

"CashFlowDatesArray",

"CashFlowInterestAmountsInDealCcyArray",

"CashFlowCapitalAmountsInDealCcyArray"

]

)


Above are from sample code of cash flow sample. Just want to download more array related field but don't know how to do so. Any link or code to download all field universe? Many thanks.

rdp-apirefinitiv-data-platformbondsipaapi-playground
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
39.3k 76 11 27

See the list of output fields available on Refinitiv Data Platform APIs page on Refinitiv Developer Portal under Documentation - Manuals & Guides - IPA Financial Contracts - Bond Contracts - Output Fields Description.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks Alex. It is what I look for.
Upvotes
24.7k 86 10 22

hi @sunny.to@refinitiv.com

In terms of code, just drop the fields list e.g.

df = rdp.get_bond_analytics(
    universe = ['US10YT=RR']
)

The above returns a DF with 287 columns (fields) - Note that many of them are blank - if a particular field is not relevant to the instrument type...


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks Umer, it works as well.