Historical fundamental data with multiple periods
I am trying to make a request for quarterly historical actual revenue, and return the full fundamental backhistory for each calcdate.
below the request for the current and previous fiscal quarter data works, but adding any further relative quarters does not work.
I would also like to know how I could make the call to request all of the previous fundamental data, e.g. FQ0,FQ-1,FQ-2,...,FQ-N for all N quarters available.
# FQ0, FQ-1 WORKS
raw_ids, err = ek.get_data(
['EYE.OQ'],
['TR.RevenueActValue', 'TR.RevenueActValue.calcdate','TR.RevenueActValue.date','TR.RevenueActValue.fperiod','TR.RevenueActValue.periodenddate','TR.RevenueActValue.announcedate'
],
{
'SDate':'2000-01-01',
'EDate':'2022-01-01',
'Period':'FQ0,FQ-1',# pull past quarters data
'Frq':'FQ'
}
)
# FQ0,FQ-1,FQ-2 DOES NOT WORK
raw_ids, err = ek.get_data(
['EYE.OQ'],
['TR.RevenueActValue', 'TR.RevenueActValue.calcdate','TR.RevenueActValue.date','TR.RevenueActValue.fperiod','TR.RevenueActValue.periodenddate','TR.RevenueActValue.announcedate'
],
{
'SDate':'2000-01-01',
'EDate':'2022-01-01',
'Period':'FQ0,FQ-1,FQ-2',# pull past quarters data
'Frq':'FQ'
}
)
Best Answer
-
I can't say I quite understand what you're looking to achieve. Nevertheless, the notation "FQ0,FQ-n" for the Period parameter is interpreted as the range of quarters between FQ0 and FQ-n. So, try 'Period':'FQ0,FQ-4' for example. Does it give you what you're looking for? If not, could you please elaborate on what you're trying to achieve? It strikes me as rather odd to combine in the same request a range of fiscal quarters using Period parameter and a range of dates (using SDate and EDate).
0
Answers
-
Thanks, that is helpful.
To clarify, let's say a company has had 16 quarters. They restated their financials once after 4 quarters, and again after 10 quarters. I want to pull the full backhistory of fundamentals on each announce date.
Ideally there would be something like Period:'All', so I don't need to specify 'FQ0,FQ-16'. Is there something like this that I can pass in?
Otherwise, what is the maximum relative quarter you can pass in, e.g. Period: 'FQ0,FQ-36'?0 -
I see. There's no 'Period':'All' parameter. I also don't believe there's a max value for n in FQ-n. I just tried FQ-256, which presumably is more than what you'd ever need in practice for this use case, and it worked. There's a downside to using a large value of n like 256, which is the increased retrieval time because of additional processing on the backend and lots of empty rows returned in the result set.
0
Categories
- All Categories
- 6 AHS
- 39 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛