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 nyks · Oct 23, 2019 at 10:35 AM · python apithomson eikoncpi

How do I get the countries CPI values from Thomson Reuters Eikon api via python/spyder? or excel?

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 Gurpreet · Oct 23, 2019 at 01:19 PM

When you type in Economic Indicators in Eikon search bar, it will bring up the app where you can choose the country and CPI from the dropdown list. This will get you a RIC which can be used in the get timeseries call shown by @chavalit.jintamalit. See example showing Poland and Russia.



>>> ek.get_timeseries('PLGDPY=ECI', start_date='2003-01-01', end_date='2020-01-01', interval='yearly')
PLGDPY=ECI  VALUE
Date
2003-12-31    3.6
2004-12-31    5.1
2005-12-31    3.5
2006-12-31    6.2
2007-12-31    7.0
2008-12-31    4.2
2009-12-31    2.8
2010-12-31    3.6
2011-12-31    5.0
2012-12-31    1.6
2013-12-31    1.4
2014-12-31    3.3
2015-12-31    3.8
2016-12-31    3.1
2017-12-31    4.8
2018-12-31    5.1
>>> ek.get_timeseries('RUBUD=ECI', start_date='2003-01-01', end_date='2020-01-01', interval='yearly')
RUBUD=ECI      VALUE
Date
2003-12-31  2.616667
2004-12-31  5.025000
2005-12-31  9.866667
2006-12-31  9.533333
2007-12-31  7.400000
2008-12-31  8.066667
2009-12-31 -1.800000
2010-12-31 -2.066667
2011-12-31  2.241667
2012-12-31  0.300000
2013-12-31  0.066667
2014-12-31  2.091667
2015-12-31 -3.133333
2016-12-31 -2.233333
2017-12-31 -1.008333
2018-12-31  2.491667
2019-12-31  3.266667

ahs.png (56.3 KiB)
Comment
nyks

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 chavalit.jintamalit · Oct 23, 2019 at 12:15 PM

Hi @selenbb

1. Find a RIC code.

Type in "Turkey CPI" in the Eikon Search bar and select from there.


2. Use Python to retrieve the data.


ahs.png (118.1 KiB)
ahs2.png (16.9 KiB)
Comment
nyks

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 nyks · Oct 23, 2019 at 12:24 PM

I tried that but all coming Nan for other countries 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

Get Instruments by exchange or country?

Python API return different results from Excel

I have specific request in the ek.get.timeseries() function. I would like to see if its possible to expand this field to see 2 hours,3 hours,4 hours,etc data bars instead of just tick,second,minute,hour ..

Request Average Price over a period of time.

Is it possible to call up the Attribution Analysis (Brinson Style Attribution in Portfolio Analysis) via Python?

  • 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