How to get price & fundamental data for members of constituent lists into R?
hi Refinitiv-team, I want to download price and fundamental data for all single stocks in a specific country. My aim is to cover all historically available stocks (so that there is no survivorship bias in the data). For example for Australia I want to use the lists WSCOPEAU, FAUS, DEADAU (cp. Schmidt et al (2019)*), but I cannot access these using the Eikon api (which establishes a connection to R). My questions are: 1. Are there more complete lists available in order to cover all stocks (active, dead, delisted etc.) within a country than the one I proposed? 2. What is the best way to get this data into R? I can only use the Eikon API but do not have access to DSWS. 3. I want the time-series fields "P", "PA", "RI", "PTBV", "NOSH", "DPS", "EPS", "VO" and static fields "MNEM", "DSCD", "TYPE", "RIC". Is my only option to Create a Request Table in Excel and then load the data into R? Many thanks for your help
*Schmidt, Peter S., et al. "Common risk factors in international stock markets." Financial Markets and Portfolio Management 33.3 (2019): 213-241.
Best Answer
-
To add to the response by @jonathan.legrand, I'm not sure why you say you do not have access to DSWS, since your Eikon subscription includes access to DSWS. But if indeed for whatever reason you cannot use DSWS, you should be able to retrieve the data you're interested in using Eikon Data APIs. To construct the list of stocks you're interested in, you may want to use Screener. See the article titled Find Your Right Companies with SCREENER. To find the field names and parameters for the data items you're interested in, you can use CodeCreator app in Eikon, which allows you to search for the field names or browse available field names by category, then select the parameters applicable to the field name selected. At the end of this CodeCreator produces a Python code snippet for the data retrieval call, which you can copy & paste into your IDE, and then modify it for the syntax that Eikon Data APIs library for R requires.
0
Answers
-
Hi,
1. You can search for indices on Workspace and pick the one that best fits your needs:
Then you can look into constituents:
2. Once you have your constituents, I'd suggest simply using the DSWS R library that was created by the Dev. Community:
https://github.com/CharlesCara/DatastreamDSWS2R
You can use this in a similar way to what I did in this article:
3. When you create a Request Table in Excel, does the data come up with Excel code in a single cell? If so, would you mind sharing it here? We might be able to reproduce it in R
0 -
Many thanks @jonathan.legrand and @Alex Putkov
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 中文论坛