question

Upvotes
Accepted
16 3 6 9

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.4k 77 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
25.3k 87 12 25

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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