Refinitiv-Data vs Refinitiv-Dataplatform
Hi I'd like to know the difference between these libraries:
https://pypi.org/project/refinitiv-data/
https://pypi.org/project/refinitiv-dataplatform/
Is refinitiv-data a library that includes all the features of dataplatform? I'm also having trouble creating a session with refinitiv-data.
Thanks,
Best Answer
-
Hi @cmarks
refinitiv-data is the replacement for refinitiv-data-platform
refinitiv-data-platform was an alpha release and refinitiv-data is a beta release.
We will be publishing tutorials and examples soon for refinitiv-data
The RD Library product owner will also be issuing a statement in the near future explaining the differences in terms of positioning, support etc
1
Answers
-
Hi @cmarks
Hopefully towards the end of next week - for both the above...
0 -
Ok that's great. I'd like to begin using refinitiv-data if possible, it has a simple async function for data in fundamental_and_reference.Definition. I'm still having trouble connecting. This is my attempt to open a desktop session, but any endpoint would do.
import refinitiv.data as rd
import refinitiv.data.session as sess
sess.desktop.Definition(app_key='your_app_key').get_session()
rd.open_session(app_key='your_app_key')0 -
An error occurred while requesting URL('http://127.0.0.1:9060/api/status').
ConnectError('[WinError 1225] The remote computer refused the network connection')
[2021-11-12 10:20:42,320] - [INFO] - [sessions.desktop.default-session.0] - [28932] | MainThread
Warning: file .portInUse was not found. Try to fallback to default port number.
[2021-11-12 10:20:42,320] - [INFO] - [sessions.desktop.default-session.0] - [28932] | MainThread
Try defaulting to port 9000...
[2021-11-12 10:20:42,323] - [INFO] - [sessions.desktop.default-session.0] - [28932] | MainThread
Checking port 9000 response : 404 - <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/status</pre>
</body>
</html>
Try to handshake on url http://localhost:9000/api/handshake...
[2021-11-12 10:20:44,371] - [INFO] - [sessions.desktop.default-session.0] - [28932] | MainThread
Response : 404 - <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/handshake</pre>
</body>
</html>0 -
Hi @cmarks
Assuming you have Eikon or Workspace running, the following works fine for me with the latest beta release - refinitiv-data · PyPI v1.0.0b4
import refinitiv.data as rd
from refinitiv.data import session
APP_KEY = '<my app key>'
rd.open_session(app_key = APP_KEY)# outputs
<refinitiv.data.session._desktop_session.Definition object at 0x278feee7 {name='default-session'}>
Is that what you are after?
0 -
My Eikon is running and my app key is enabled. I was using an older version, just updated but its still not working. This is the session object I get
<refinitiv.data.session._desktop_session.Definition object at 0x23a52f3d430 {name='default'}>
And it says there was a response on port 9000, then it chooses a non working port?
[2021-11-12 11:28:56,760] - [INFO] - [sessions.desktop.default.0] - [9252] | MainThread
Try defaulting to port 9000...
[2021-11-12 11:28:58,816] - [INFO] - [sessions.desktop.default.0] - [9252] | MainThread
Default proxy port 9000 was successfully checked
[2021-11-12 11:33:44,657] - [INFO] - [sessions.desktop.default.0] - [27984] | MainThread
Try defaulting to port 36036...
[2021-11-12 11:33:48,750] - [ERROR] - [sessions.desktop.default.0] - [27984] | MainThread
An error occurred while requesting URL('http://localhost:36036/api/status').
ConnectError('[WinError 1225] The remote computer refused the network connection')I get this error when trying to query data:
res=fr.Definition(['AAPL.O'],['TR.CompanyName']).get_data()
print(res.data.raw)refinitiv.data._data.errors.RDError: Error code 404 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/udf</pre>
</body>
</html>0 -
Figured it out, my desktop app didn't have APIPROXY service running. Platform sessions work fine.
0 -
Hi @cmarks
FYI - we have pushed the first beta release of tutorials and examples to GitHub - Refinitiv-API-Samples/Example.DataLibrary.Python: Example projects and Tutorials demonstrating access to the Refinitiv Data Platform using the Refinitiv Data Library for Python (github.com)
They have been tested with refinitiv-data · PyPI v1.0.0b6
NOTE: The links on the README pages for the Dev Portal tutorials/Quick Start etc won't work as we have not published those yet - hopefully be there next week or in the New Year....
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 中文论坛