Can't get data with Python Sample App
Hi All. I'm trying to pull data back with the Access Example app from https://github.com/Refinitiv-API-Samples/Example.DataLibrary.python, file GetData.ipynb, using VS Code.
I created an app key, and can open the session, but
rd.get_data(['LSEG.L', 'VOD.L'])
Gives error
Failure retrieving snapshot form <refinitiv.data.content.pricing.Stream object at 0x1b929f5e320 {name='['LSEG.L', 'VOD.L']'}>
File "...\get_data.py", line 253, in _get_snapshot
stream.open(with_updates=False)
File "\stream.py", line 104, in open state = self._stream.open(with_updates=with_updates)
...
IndexError: list index out of range
I assume the index is out of range b/c no data is being returned, but there's no better error msg. Can someone give tips on troubleshooting? Thanks!
Best Answer
-
Hi @cockcron
Have you been through the RD Library Quick Start Quick Start | Refinitiv Developers ?
Once you have worked through it if you are still having problems please refer to the basic troubleshooting section towards the bottom - which has instructions on generating log output.
You can attach the log output here - after removing any credentials etc, as well as your refinitiv-data.config.json file with dummy appkey / other credentials replaced with dummy ones.
Also, please advise which type of session you are using - Desktop, Platform or Deployed? and if using a Desktop session - do you have Eikon or Workspace running on the same PC?
1
Answers
-
Thank you! I'll follow your instructions and continue to troubleshoot.
I'm trying to use Platform. When I click on the App Key link in the doc, I'm taken to an Eikon login screen. I log in (I have an Eikon support account), then can choose:
Eikon Data API,Side by Side API, EDP API
I don't want Eikon, so I choose EDP. Is this right for Platform? Thanks!
0 -
Hi @cockcron
Do you have an RDP (EDP) platform account and credentials i.e. a MachineID etc? You would have received a Welcome email which would have a Machine ID / Machine Account details e.g. something like GE-A-01234567-4-1234 and the email would have a link to set a long password also?
If not, selecting EDP API will not help you - if your only source of data is an Eikon desktop product.
Note that you can tick EDP API and Eikon Data API - to create a multipurpose App Key - I have done the same for my setup - so I can use the same App Key with Eikon or the Platform - I do still need to supply my platform credentials if I want to connect to the platform.
0 -
Thanks again. I don't have a MachineID or welcome email that I can find. Do you know the best way to get one? I'll try the Eikon route, but our app needs to be able to run without it, so need to switch to platform eventually.
0 -
Hi @cockcron
You would need to contact your Refinitiv Account representative to arrange an RTP Trial and/or full account credentials.
That should then generate the welcome email - allowing you to use the RD Library with a Platform session - i..e without a local Eikon desktop installation.
Please let me know if you don't know your Account team - I can try and dig around...
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 中文论坛