rd.get_data queeps sending back annoying errors for real time requests 'Failure sending request'
Hi,
When using the code below, I keep getting 'Failure sending request with <class 'refinitiv.data._data.content.fundamental.fundamental_and_reference.Definition'>' error messages, even though I get the data that I'm after:
rd.get_data(
['GBP=', 'EUR=', 'JPY='],
['BID', 'ASK'])
The issue is that I have this in a loop, so for every data frame returned, I have many error messages to scroll through, be it in Jupyter or other IDEs...
I tried to ignore warnings, but that's bad practice and it didn't work anyway:
import warnings
warnings.filterwarnings("ignore")
Why are we getting this? why are we getting error messages for a field I didn't request?
Best Answer
-
I reached out to the development team and they confirmed the issue has been resolved in an upcoming release. The fix will be targeted in the release: 1.0.0b20 due to come out next Friday.
0
Answers
-
Hi @danieluphromes
Can you provide the version of the 'refinitiv.data' library? The behavior is not expected and I will report to the development team.
0 -
The get_data method is a high-level function.
rd.get_data(
['GBP=', 'EUR=', 'JPY='],
['BID', 'ASK'])When running the code above, first, it will connect to the https://api.refinitiv.com/data/datagrid/beta1/ to convert the requested instruments to RICs. The get_data mothod can support other instrument types.
[2022-08-05 12:53:45,392] - [sessions.platform.rdp.0] - [DEBUG] - [31644 - MainThread] - [_data_provider] - [send] - headers : {'Content-Type': 'application/json'}
body : {'universe': ['GBP=', 'EUR=', 'JPY='], 'fields': ['TR.RIC']}
[2022-08-05 12:53:45,392] - [sessions.platform.rdp.0] - [DEBUG] - [31644 - MainThread] - [http_service] - [build_request] - Request to https://api.refinitiv.com/data/datagrid/beta1/
method = POSTThen, it connects to the real-time streaming service to retrieve real-time fields (BID, and ADK).
The error message indicates that the account doesn't have permission to access the https://api.refinitiv.com/data/datagrid/beta1/ endpoint.
To get real-time fields, you can use the EX-2.02.01-Pricing-Snapshot.ipynb example instead.
This method does not use the https://api.refinitiv.com/data/datagrid/beta1/ endpoint to get RICs (TR.RIC).
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 中文论坛