Historical fundamental data with EIkon Python API

I am looking to extract fundametnal data for a ferw companies. I am using the following code:
start_date = '2015-01-01'
end_date = '2019-01-01'
field = ['TR.TotalRevenue','TR.TotalRevenue.date','TR.TotalRevenue.periodenddate','TR.BSOriginalAnnouncementDate']
ric = ['AAPL.O','MSFT.O','BA']
params = parameters={'SDate': start_date, 'EDate': end_date,'Frq': 'FQ','Period': 'FQ0'}
data,err = ek.get_data(ric,field,params)
I currently use the paramtenrs Frq and Per but I am confused on the reason why I need both to get the results I am looking for, in that case quarterly data. Could you provide me with details explanation of the role of each parameters and whether the query is correct?
Best Answer
-
Hello @Tulkkas,
On your Eikon Excel, by going into menu ThomsonReuters->Help, you can access Eikon Excel Help, that describes the content accessible via Eikon Data API.
Searching for a parameter pulls up the description:
TR Parameters :
FRQ:
FQ: Fiscal Quarter
Period:
FQ0: Last Fiscal Quarter, i.e. you adding last fiscal quarter by using this parameter.
In my understanding, as developer, you need Frq:FQ to derive quarterly frequency. Period, in addition to Start and End dates, allows to add last quarters to the interval.
It may be helpful, to ascertain that what you get is optimal for your requirement, to remove a parameter from query and to compare the resulting output
For in-depth understanding of parameters that originate with Eikon Excel and then were implemented in Eikon Data API, as a customer, you can tap into deeper content expertise with Eikon Helpdesk, either via Eikon desktop-> Help menu or via Refinitiv Helpdesk Online and select Eikon as product.
0
Answers
-
thx for the answer. Indeed i need all those paramters to get quarterly data. But it is still not clear why with only the frequency paramters, i can't get them? Any thought about it?
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.8K Refinitiv Data Platform
- 625 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 83 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛