Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by etudiant1 · Feb 03, 2021 at 08:37 PM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonbonds

Is it possible to get historical coupon payments (amount + date) of a Fixed-rate Corporate Bond ?

Dear Developers community,

I want to retrieve historical transaction data of coupon payments (amount + date) of a Fixed-rate Corporate Bonds.

So far, I manage to gather coupon data of the amount and frequency with "'TR.ADF_COUPON', and 'TR.FiCouponFrequency'. But these fields are the current (latest, not historical) ones, with no specific date of payment.

I am looking to create a a data frame with a panel structure of j bonds and t months.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov.1 · Feb 04, 2021 at 01:44 AM

Here's a quick example using RDP Library to access IPA Financial Contracts service on RDP

bond_ric = "34540TVB5="
start_date = "2020-01-01"
end_date = "2022-01-01"
df = pd.DataFrame(columns=['Coupon Date','Coupon Value'])
while start_date<end_date:
    calc_params = rdp.ipa.bond.CalculationParams(valuation_date=start_date)
    tmp_df = rdp.get_bond_analytics(bond_ric,
                                    ["NextCouponDate","NextCouponValue"],
                                   calc_params)
    start_date=tmp_df.iloc[0,0]
    df = df.append({'Coupon Date':start_date, 
                    'Coupon Value':tmp_df.iloc[0,1]}, 
                   ignore_index=True)
df
Comment
etudiant1

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by etudiant1 · Feb 04, 2021 at 06:16 PM

Thank you @AlexPutkov, your code worked just fine! I am getting closer to what I need.

But sometimes, I get the error:


File "<ipython-input-165-ddf031214609>", line 10, in <module>

start_date=tmp_df.iloc[0,0]

AttributeError: 'NoneType' object has no attribute 'iloc'


I managed to do a request for a list of bonds constituents in the following way:


 for i in consitutents.index:
    bond_isin = iboxx_isin['ISIN'][i]
    start_date = iboxx_isin['Issue Date'][i]
    end_date = "2021-01-01"
    while start_date<end_date:
        calc_params = rdp.ipa.bond.CalculationParams(valuation_date=start_date)
        tmp_df = rdp.get_bond_analytics(bond_isin,["NextCouponDate","NextCouponValue"], calc_params)
        start_date=tmp_df.iloc[0,0]
        df_coupon = df_coupon.append({"ISIN":bond_isin,'Coupon Date':start_date, 'Coupon Value':tmp_df.iloc[0,1]}, ignore_index=True)  
concate= pd.concat([df_coupon], ignore_index=True)

Here, a snapshot of the constituents list:


ISINIssue DateXS19071207912018-12-06XS11963800312015-03-09XS16298664322017-06-21XS20513620722019-09-11XS20513623122019-09-11




But I got the following errors:


File "/Users/mc/opt/anaconda3/lib/python3.8/site-packages/refinitiv/dataplatform/content/ipa/contracts/_financial_contracts.py", line 37, in _get_instrument_analytics

result = self.session._loop.run_until_complete(

event_list = self._selector.select(timeout)

kev_list = self._selector.control(None, max_ev, timeout)


Maybe I need to chunk the request in smaller sizes?


Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
etudiant1 · Feb 04, 2021 at 06:17 PM 0
Share

Here is the structure of the constituents

screen-shot-2021-02-04-at-71712-pm.png (36.2 KiB)
avatar image
REFINITIV
Answer by Alex Putkov.1 · Feb 05, 2021 at 12:19 AM

@etudiant1

I haven't been able to reproduce the issue on my end using a sample of ISINs you provided.
"AttributeError: 'NoneType' object has no attribute 'iloc'" indicates that rdp.get_bond_analytics function returned None instead of a dataframe. Have you tried isolating the issue? Does it happen randomly or does it always happen with the same ISIN(s)?
When the exception is raised, try calling rdp.get_last_status() to see the status of the last request. Using Fiddler to capture HTTP requests and see if the request corresponding to rdp.get_bond_analytics function that returned None fails would be very helpful too.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

Fetching Underwriters with Valuation Date and PermID for a Bond

Credit Ratings

How to dynamically get a list of bonds from Eikon Python API or Pydatastream

How do i extract cash flow schedules for a bond given an ISIN in python?

Is there a way to get AI for bonds with no RIC assigned by using Python API?

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges