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
- 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 中文论坛