Issues downloading Economic Indicator history and even fields
Hi,
i've got an issue downloading historic data for economic indicators. my code is this:
df = rd.get_history(
universe=['aUSSPDIVY'],
interval="monthly",
start="1924-03-01"
)
print(df)
aUSSPDIVY VALUE
Date
2022-05-31 1.567599
2022-06-30 1.641982
2022-07-31 1.64768
2022-08-31 1.560287
2022-09-30 1.69635
2022-10-31 1.767346
2022-11-30 1.694609
2022-12-31 1.710467
2023-01-31 1.700476
2023-02-28 1.661403
2023-03-31 1.71876
2023-04-30 1.659037
2023-05-31 1.653171
2023-06-30 1.581222
2023-07-31 1.528613
2023-08-31 1.550517
2023-09-30 1.572049
2023-10-31 1.63122
2023-11-30 1.56889
2023-12-31 1.500596
which gives me history back to 2022-05-31.
however, i can clearly see in Eikon that history exists until 1871 (though chart only shows 1924):
what do i do wrong?
apart from the above issue, which btw. only responds with Date and Value, i thought, based on DIB for the item, i should be able to get back the following fields:
actually all of the fields, but for this issue i just focus on the two in the red box.
but when trying to query those:
df = rd.get_history(
universe=['USJOB=ECI'],
fields=["ECON_ACT", "ECON_PRIOR"],
interval="monthly",
start="1924-03-01"
)
print(df)
i am greeted with an error message:
RDError: Error code -1 | No data to return, please check errors: ERROR: No successful response.
(TSCC.Economics.UserRequestError.96104, The universe does not support the following fields: [ECON_ACT, ECON_PRIOR])
so, i clearly do something wrong again. can you please let me know what that is?
thanks,
Andreas
Best Answer
-
Hi @andreas01 ,
Thank you for your patience, if you know the RIC of each polls/forecasts, you can simply put them in the universe parameter in the get_history function as a Python array as below.
df = rd.get_history(
universe=['aUSSPDIVY', 'USJOB=ECIX'],
interval="monthly",
start="1924-03-01",
end="2024-03-12"
)
dfHowever, to get the RIC of forecasts/polls you're interested (if you cannot find it using the Workspace search bar) as the moderators
on this forum are expertise on Refinitiv APIs usage. Hence, they do not have
deep expertise in every type of content available through Refinitiv products.
Such expertise is available through Refinitiv Helpdesk, which can be reached
via MyRefinitiv then the content support team is going to contact you soon to assist with this.Hope this helps
and please let me know in case you have any further questions0
Answers
-
Hi @andreas01 ,
First, to get the historical data, please assign parameters start and end to see data in the date range, for example,
df = rd.get_history(
universe=['aUSSPDIVY'],
interval="monthly",
start="1871-03-01",
end="2024-03-12"
)
dfHowever, the fields without the TR prefix are real-time fields which can't provide historical data when using the get_data method. Hence get_history will be used instead.
df = rd.get_history(
universe=['USJOB=ECIX'],
interval="monthly",
start="1924-03-01",
end="2024-03-12"
)
dfHope this helps and please let me know in case you have any further questions.
0 -
thank you for that. can you tell me how i get the historical data for the different forecasts and polls?
thanks
Andreas0 -
hey @raksina.samasiri , any comment regarding the history for the polls / forecasts?
0 -
seriously?
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 中文论坛