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 lorenzo.cerreta · Oct 23, 2020 at 06:03 PM · timeserieseikon python apirefinitivtreasury bill

Get 3 months treasury bill rate timeseries

I need to get the timseries of the close price for the 3 months treasury bill for these countries

['Australia', 'Austria', 'Belgium', 'Bermuda', 'Brazil', 'Canada', 'Cayman Islands', 'Chile', 'China (Mainland)', 'Colombia', 'Denmark', 'Finland', 'France', 'Germany', 'Hong Kong', 'India', 'Italy', 'Japan', 'Lithuania', 'Luxembourg', 'Mexico', 'Morocco', 'Netherlands',       'New Zealand', 'Nigeria', 'Norway', 'Peru', 'Philippines', 'Portugal',       'Singapore', 'South Africa', 'South Korea', 'Spain', 'Sweden', 'Switzerland', 'Taiwan', 'Thailand', 'Turkey', 'United Arab Emirates', 'United Kingdom', 'United States']

I tried to use the following snippet for the USA:

stock_prices, err = ek.get_data(
    'US3MT=RR',
    ['CF_CLOSE.Date', 'CF_CLOSE'],
    {'SDate': starting_date,
     'EDate': ending_date})

but I get only the last value and no timeseries. On DIB, I am unable to find any closing value with historical data. Could you point me to the right variable?

And can I get all countries 3 months treasury bill by replacing the first 2 letters of 'US3MT=RR' with each country abbreviation?

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 chavalit.jintamalit · Oct 27, 2020 at 08:13 AM

Hi @lorenzo.cerreta

The first part of your question is how to get RIC list for each country from your list.

This forum is not the best place to ask about content questions.
For an authoritative answer to any content questions, the best resource is the Refinitiv Content Helpdesk.
This forum is dedicated to things specific to the use of Eikon APIs.
The moderators here do not have deep expertise in every type of content available through Eikon.
The Refinitiv Content Helpdesk can be reached using Contact Us capability in your Eikon application.
Or by calling the Helpdesk number in your country.
Or at https://my.refinitiv.com/


And can I get all countries 3 months treasury bill by replacing the first 2 letters of 'US3MT=RR' with each country abbreviation?

I tried some countries work, some countries do not work.

So it is best to clarify with helpdesk.

The second part of your question is how to get timeseries data.

Assuming that when you have a full list of the RICs.

You can follow this sample code to get its timeseries data:


ahs.png (31.6 KiB)
Comment
jonathan.legrand

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
REFINITIV
Answer by jonathan.legrand · Oct 27, 2020 at 08:39 AM

Hi @Lorenzo, You may filter the fields displayed in the Data Item Browzer (DIB) to only show what you're looking for; bellow I tried it for the same instrument for France:



Doing so myself, I was able to find some fields that you may be looking for. For e.g.: assuming that Prices don't change from Close to Open, you may want to use TR.OPENPRICE, or maybe TR.MIDPRICE, or you may want to compute the yield implied price from the TR.MIDYIELD in a similar fashion to in this article (note that the workflow in that article uses Zero-Coupon Bonds).


Alternatively, you may want to look into Datastream, where bond data is also available.


1603787515033.png (106.5 KiB)
Comment
lorenzo.cerreta

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.

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 >
11 People are following this question.

Related Questions

Why is get_timeseries using Eikon API not pulling the full price history?

Get Relevant Stock Index

Server Error: {"code":500,"message":"read ECONNRESET","statusMessage":"Internal Server Error"}: After weeks of functioning we suddenly get this error at random point in our timeseries requests. No settings have been changed. How to fix this?

500 Internal Server Error

Get benchmark risk free returns

  • 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