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 /
avatar image
Question by Nate.Kim · Sep 11, 2019 at 04:18 PM · pythonpython apiyieldbond bid yieldbond yield

Python API - Bond Yield Data

/Hi,

Is there a way to download the yield data using Python API for a specific date? For example, if I'm trying to download '075887BX6=FINR' bond's yield as of 8/22/2019 (which is 3.57%), what would be the python syntax?

Thank you.

1.png (259.8 KiB)
2.png (152.5 KiB)

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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by James.Perkins · Sep 11, 2019 at 05:44 PM

The default bond time series field in Eikon DAPI for contributed pricing sources is price, not yield... i.e. currently the yield field for =FINR RICs is not available as a time series (although you can snap individual values as Pedro mentioned in previous response).

However, for composite RICs the defalut field is in fact yield, so while not exactly the same; since it's a composite pricing source rather than from FINRA (TRACE) it will provide a historical yield trail.

ts = ek.get_timeseries(['075887BX6=FINR'], fields = ['CLOSE'], start_date = "2019-08-06", end_date = "'2019-09-06", interval="daily") 
ts1 = ek.get_timeseries(['075887BX6='], fields = ['CLOSE'], start_date = "2019-08-06", end_date = "'2019-09-06", interval="daily")


screen-shot-2019-09-11-at-53305-pm.jpg (137.8 KiB)
screen-shot-2019-09-11-at-54147-pm.jpg (109.2 KiB)
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.

avatar image
REFINITIV
Answer by Pedro.Alexandre · Sep 11, 2019 at 05:32 PM

Hi @Nate.Kim,


You can use the APP, DIB (Data item browser) to find the syntax for different information and syntax on Eikon.

The code would be:

yield0, err = ek.get_data(['075887BX6=FINR'],
                          ['TR.CLOSEYIELD(SDate=2019-08-22)'])
print(yield0)
d,

capture.png (77.0 KiB)
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 >
9 People are following this question.

Related Questions

Get Instruments by exchange or country?

Why does Eikon Python API return empty fields on certain names?

What is the field COUNT and what does it mean when it is assigned with -1?

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

python can not get the "TR.MIDPRICE" data of “AUDQM3AB3Y=”,however the excel can do it

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges