Multiple output for the same date
Hi,
I am trying to get some balance sheet data from Eikon API on Python using eikon.get_data for a list of companies throughout the period 2000-2022. I encounter four types of problems (in different instances). I will refer to the total assets of company AU000000TEN8 in USD in the examples I make:
1. it assigns the same value for two consecutive years, even if the real values on the desktop app are not the same, (e.g. 1,090.6 USD for both 2004 and 2005 even if this is the true value only for 2004)
2. it returns multiple rows of the same year and observation, (e.g. 2016 for 8 times)
3. it returns values which are different from what can be seen on the desktop app, (e.g. 885.9 rather than 845.0 in 2000)
4. it returns statement dates which differ from revenue dates even in the year (2003 vs 2004) so I am not sure which one to follow. (e.g. 998.2 with statement date 1004-08-31 but revenue date 2003-08-31, with the last being the correct one)
However, let me stress I need to download a big amount of data and therefore I need to use the API rather than the desktop app.
Thanks a lot!
Best Answer
-
Thank you for the update.
I also got multiple output for the same date when using Eikon Excel with the following formula.
=@TR("AU000000TEN8","TR.F.StatementDate;TR.F.TotRevenue;TR.F.TotRevenue.Date","SDate=2000-01-01 EDate=2023-12-14 CH=Fd RH=IN FRQ=Y",C5)
Therefore, it shouldn't be the problem in the Eikon Data API. Please contact the Eikon Excel support team direclty via MyRefinitiv to verify the content and formula.
0
Answers
-
@marco.castelluccio.20 Can you please paste the API call code (excluding any credentials) you are using so we can replicate? Thanks in advance.
0 -
Here it is, thanks!
import eikon as ek
ek.set_app_key('xxx')
fields_financials_new = ["TR.CommonName", "TR.OrganizationID", "TR.SucceededBy", "TR.RegistrationCountry", 'TR.RegCountryCode', "TR.HeadquartersCountry", "TR.HQCountryCode","TR.F.StatementDate","TR.F.TotRevenue","TR.F.GrossTotRevBizActiv","TR.F.TotAssets","TR.F.TotCurrAssets","TR.F.IntangAssets","TR.F.EmpAvg","TR.F.LaborRelExpnTot","TR.F.EBIT","TR.F.EBITDAMargPct","TR.F.TotAssets.currency", 'TR.Revenue.date']
parameter_dict = parameters ={'Sdate':'2000-01-01','Edate':'2023-01-01','FRQ':"Y", 'Curn':'USD'}
data_PermID, error_PermID = ek.get_data(instruments='AU000000TEN8', fields=fields_financials_new, parameters=parameter_dict)
print(data_PermID)
0 -
Thanks! Here it is
fields_financials_new = ["TR.CommonName", "TR.OrganizationID", "TR.SucceededBy", "TR.RegistrationCountry", 'TR.RegCountryCode', "TR.HeadquartersCountry", "TR.HQCountryCode","TR.F.StatementDate","TR.F.TotRevenue","TR.F.GrossTotRevBizActiv","TR.F.TotAssets","TR.F.TotCurrAssets","TR.F.IntangAssets","TR.F.EmpAvg","TR.F.LaborRelExpnTot","TR.F.EBIT","TR.F.EBITDAMargPct","TR.F.TotAssets.currency", 'TR.Revenue.date']
parameter_dict = parameters ={'Sdate':'2000-01-01','Edate':'2023-01-01','FRQ':"Y", 'Curn':'USD'}
data_PermID, error_PermID = ek.get_data(instruments='AU000000TEN8', fields=fields_financials_new, parameters=parameter_dict)
print(data_PermID)0 -
Thanks! Here it is @jason.ramchandani01
fields_financials_new = ["TR.CommonName", "TR.OrganizationID", "TR.SucceededBy", "TR.RegistrationCountry", 'TR.RegCountryCode', "TR.HeadquartersCountry", "TR.HQCountryCode","TR.F.StatementDate","TR.F.TotRevenue","TR.F.GrossTotRevBizActiv","TR.F.TotAssets","TR.F.TotCurrAssets","TR.F.IntangAssets","TR.F.EmpAvg","TR.F.LaborRelExpnTot","TR.F.EBIT","TR.F.EBITDAMargPct","TR.F.TotAssets.currency", 'TR.Revenue.date']
parameter_dict = parameters ={'Sdate':'2000-01-01','Edate':'2023-01-01','FRQ':"Y", 'Curn':'USD'}
data_PermID, error_PermID = ek.get_data(instruments='AU000000TEN8', fields=fields_financials_new, parameters=parameter_dict)
print(data_PermID)0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛