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 erickmiller · Sep 01, 2016 at 11:52 PM · eikoneikon-data-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikonfundamental-data

API Returns Wrong Data: get_data returns Annual data when 'FRQ': 'FQ' is specified

The Eikon Python API looks awesome and the data available from the data grid looks very extensive which is great.  


Unfortunately, on literally my very first test after installation, I tried to get some quarterly fundamental data, but it seems the API is returning only annualized data when I request quarterly data (duplicating the annual data across quarters) am I missing something here?   It's entirely possible I am doing something wrong but I think the call I'm making is correct:

Here is the API call I'm making.  I've tried versions of this command that only send the paramaters via the field and that only send the parameters via the paramaters option.  They have all consistently returned the same duplicated annualized data as shown:

df, err = ek.get_data(instruments=[ 'AMZN.O' ],
                      fields=[ ('TR.TotalRevenue', {'SDate':0,'EDate':-4,'Period':'FY0','FRQ':'FQ','Scale':6}) ],
                      parameters={'SDate': 0, 'EDate': -4, 'Period': 'FY0', 'FRQ': 'FQ', 'Scale': 6},
                      debug=True )

Debug output is:

Request: {"Entity": {"E": "DataGrid", "W": {"instruments": ["AMZN.O"], "parameters": {"SDate": 0, "Scale": 6, "EDate": -4, "Period": "FY0", "FRQ": "FQ"}, "fields": [{"name": "TR.TotalRevenue", "parameters": {"SDate": 0, "Scale": 6, "EDate": -4, "Period": "FY0", "FRQ": "FQ"}}]}}}


HTTP Response: 200 - {"columnHeadersCount":1,"data":[["AMZN.O",107006],["AMZN.O",107006],["AMZN.O",107006],["AMZN.O",88988],["AMZN.O",88988]],"headerOrientation":"horizontal","headers":[[{"displayName":"Instrument"},{"displayName":"Total Revenue","field":"TR.TOTALREVENUE(EDate=-4,FRQ=FQ,Period=FY0,SDate=0,Scale=6)"}]],"rowHeadersCount":1,"totalColumnsCount":2,"totalRowsCount":6}


The weird thing is that it looks like the query is getting sent by the python API properly via the HTTP request as seen in the debug information printed out above but unfortunately the results returned by the API are not correct:


  Instrument  Total Revenue
0     AMZN.O         107006
1     AMZN.O         107006
2     AMZN.O         107006
3     AMZN.O          88988
4     AMZN.O          88988

As you can see, these are clearly not quarterly revenue figures, these are annual revenues somehow duplicated across quarters.   

If you feel the need, you can fact check the revenue numbers on an independent source (marketwatch) just to make sure:

Annual Revenue is the first field (Sales/Revenue):
http://www.marketwatch.com/investing/stock/amzn/financials/income/annual

Quarterly Revenue is the first field (Sales/Revenue):
http://www.marketwatch.com/investing/stock/amzn/financials/income/quarter

Please help, thanks!





People who like this

0 Show 2
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.

avatar image
REFINITIV
chavalit-jintamalit ♦♦ · Sep 14, 2016 at 01:03 AM 1
Share

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such. Thanks, AHS

avatar image
erickmiller · Sep 02, 2016 at 12:30 AM 0
Share

Oh, also, I'm running EikonScriptingProxy-0.9.3-linux-x64 if it helps anyone who is looking at this. Thanks

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Jirapongse · Sep 02, 2016 at 04:24 AM

I assume that you want to get these values.

I can get these data after changing Period to FQ0. The following is the result from Eikon Excel.


quarterly.png (5.0 KiB)
eikon.png (14.8 KiB)
Comment
erickmiller

People who like this

1 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
erickmiller · Sep 17, 2016 at 04:20 AM 0
Share

Thank you. The issue was that the Data Item Browser in Eikon web version was telling me to use these values to query - might be something for the Eikon web team to fix -- but thanks for your help. Meant to reply to this sooner but got busy. Thanks

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

Related Questions

Company trees don't match in Eikon online tool and the Eikon Proxy API

What other parameters can be used with the statement pertaining to Corporate Actions data such as Stock Splits?

Trying to fetch Close Bid Price for CMO tranche from Python

How to get all investors for a list of stocks, historically with the python API

Retrieve Commodity Flows data 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
  • FX Venues
    • FX Trading – RFQ Maker
  • 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
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges