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 davidk · Aug 16, 2019 at 06:29 PM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonhistorical

AF.N^I17 giving Invalid RIC for get_timeseries, works on get_data

Odd behavior for one particular historical RIC in the Eikon Data API. If I use get_data, I can get the correct last data for this, valid as of 2017-09-29:

In [55]: eikon.get_data('AF^I17', ['TR.Close', 'TR.Volume'])
Out[55]:
(  Instrument  Price Close    Volume
 0     AF^I17         21.5  16922941, [])

However if I use get_timeseries to get the full history, I receive an exception saying Invalid RIC when requesting the same security:

In [56]: eikon.get_timeseries(['AF^I17'], start_date='2000-01-01', end_date='2017-10-02')
2019-08-16 18:26:24 pyeikon WARNING> Error with AF^I17: Invalid RIC
2019-08-16 18:26:24 pyeikon ERROR> AF^I17: Invalid RIC |
---------------------------------------------------------------------------
EikonError                                Traceback (most recent call last)
<ipython-input-56-bc986d533278> in <module>()
----> 1 eikon.get_timeseries(['AF^I17'], start_date='2000-01-01', end_date='2017-10-02')

C:\Miniconda3\envs\prod\lib\site-packages\eikon\time_series.pyc in get_timeseries(rics, fields, start_date, end_date, interval, count, calendar, corax, normalize, raw_output, debug)
    195     if len(ts_status_errors)==len(ts_timeserie_data):
    196         logger.error(ts_error_messages)
--> 197         raise EikonError(-1, message=ts_error_messages)
    198
    199     if raw_output: return ts_result


EikonError: Error code -1 | AF^I17: Invalid RIC |

This doesn't make any sense. I have tried many other historical RICs and by and large they work just fine with get_timeseries. This issue appears to be limited to AF^I17 and AF.N^I17.

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.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by chavalit-jintamalit · Aug 18, 2019 at 08:26 PM

Hi @davidk

The RIC for "AF^I17" is "AF^J17", please see picture below:

Another problem in your API call is that there is a limitation on number of records return.

Please refer to this document.

So, querying data for 17 years would not work.


ahs.png (71.5 KiB)
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
davidk · Aug 19, 2019 at 09:20 AM 0
Share

Interesting. Unusual for such a RIC AF^I17 to return data at all under get_data when the proper RIC is AF^J17, but makes sense.

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

Trying to fetch Close Bid Price for CMO tranche from Python

Find or calculate intraday volatility.

Historical fundamental data

How to get Instruments for NYSE, AMEX and NASDAQ from 2007 until today?

How to get the TR.PE at a historical date?

  • 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