different stuff coming back from eikon.get_data() vs. refinitiv.data.get_data() ... why oh why?
I'd really like to move on from eikon as it is very temperamental ... (400, 500 errors randomly).
But, first thing i want to move away from, getting contents from portfolios, any which way i try, i cannot get the CF_CURR or CURRENCY back from refinitiv.data when downloading my portfolios (or watchlists).
All packages up to date, H2 is 4.x ... all fine
Here are the fields I want back:
('TR.CompanyReportCurrency','CF_CURR','TR.PortfolioShares','TR.PriceClose(SDate=' + datum + ')','TR.PriceClose(SDate=' + datum + ', CURN=' + thisPortCCY + ')','TR.PortfolioWeight')
Works fine in eikon.get_data()
Simply ignores CF_CURR (or CURRENCY) in refinitiv.data
Found no other alternative in DIB
Any clue anybody?
Cheers
Alfred
Best Answer
-
Thank you for reaching out to us.
You can enable logging in the RD library to verify the behavior by using the following code.
import refinitiv.data as rd
rd.get_config()["logs.level"] = "debug"
rd.get_config()["logs.transports.file.enabled"] = True
rd.get_config()["logs.transports.file.name"] = "refinitiv-data-lib.log"
rd.open_session()The RD.get_data method sends a request to the http://localhost:9060/api/udf endpoint to get the data for TR.xxx fields but it sends a request to ws://localhost:9060/api/rdp/streaming/pricing/v1/WebSocket to get the data for CF_CURR.
You may not have permission to access those items via WebSocket.
The RD library log shows the following error. I don't have permission to access this item.
[2023-08-03T11:46:52.925311+07:00] - [sessions.desktop.workspace.0] - [DEBUG] - [63312 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [_universe_streams] - [_on_stream_complete] - [MixedStreams id=6 universe=['GE.N']] on_complete ({'ID': 11, 'Type': 'Status', 'Key': {'Service': 'IDN_FD3', 'Name': 'GE.N'}, 'State': {'Stream': 'Closed', 'Data': 'Suspect', 'Code': 'NotEntitled', 'Text': 'Access Denied: User req to PE(62)'}},)
However, the ek.get_data method sends a request to the http://localhost:9060/api/udf endpoint to get the data for both TR.xxx fields and real-time fields (CF_CURR).
With the RD library, you can use this TR.PriceClose.Currency instead, as mentioned in this discussion.
0
Answers
-
great, thanks, that works!
Now ... had I found TR.PriceClose.Currency in DIB ... or what am i doing wrong there?
On that matter, is it possible to request from two endpoints simultaneously?
I really, really don't want to engage in a trial an error hunt for the correct data reference as DIB doesn't seem to find what i need.
Cheers
Alfred
0 -
0
-
Now i know!
Thx a million!
Think I am getting there. Wrestling with data from funds. Guess that needs its own loop.
Thx again
Alfred
0 -
Hi Jirapongse
I am struggling with moving everything from Eikon to refinitiv.data.
RD seems very temperamental (lots of arbitrary time outs) and I cannot seem to find adequate documentation.Most annoying, and maybe you can give me some pointers, is the rd.get_history call.
Questions:
Is there still a data limit of 10,000 datapoints?
How can i catch and log errors like in environments (i.e. except rd.errors.RDError as e:)
Here are my two calls, old and new.
dfTimeSeriesCoreChunk = ek.get_timeseries(list(theseRICSchunk), start_date=str(thisStartDate), end_date=str(tsClosingDate), interval='daily', fields = fieldsToReturnEK)
dfTimeSeriesCoreChunk = rd.get_history(universe=list(theseRICSchunk),fields=fieldsToReturnRD, interval='daily', start=str(thisStartDate), end=str(tsClosingDate) )Any pointers would be greatly appreciated ... i am not doing this for a living, i actually want to get my analysis of the ground
;-)
Cheers
Alfred
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 中文论坛