question

Upvotes
Accepted
11 0 0 3

BNDC Alternatives

Hi,

Every month in early days I need to get this “Dirty Price” from the BNDC for the last business day from past month and for several bonds.

Today I’m doing one by one in the BNDC, is there a way to access this price through the EIKON API or some way to automatize this job?

1685991607380.png

Thanks in advance,

Sylvio Campos Neto

eikoneikon-data-api#contentbonds
1685991607380.png (135.5 KiB)
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.

1 Answer

· Write an Answer
Upvotes
Accepted
1.4k 5 3 6

Hi @sylvio.campos

You can use the latest refinitiv-data library to get that. You can use a loop to go through your list and retrieve the results you want.

import refinitiv.data as rd
from refinitiv.data.content.ipa.financial_contracts import bond
rd.open_session() 
response = bond.Definition( 
    instrument_code='XS2525253436', 
    fields=['DirtyPrice'], 
    pricing_parameters=bond.PricingParameters( 
        trade_date="2023-05-31")).get_data() 
response.data.raw


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.

Works like a charm, thank you!

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.