open_platform_session

I am new in the Eikon API world, I apologize in advance if I am posting a duplicate question but I did not find the answer I was looking for.
I have been working with python and Eikon API for a few day, connceting the script with a desktop session in order to create my analysis. I would like to enhance the script using a platform session in order to avoid to open every time The Refinitiv platform. I am using Example.RDPLibrary.Python guideline but running the code
rdp.open_platform_session(
APP_KEY,
rdp.GrantPassword(
username = RDP_LOGIN,
password = RDP_PASSWORD
)
)
I receive an error:
2020-10-02 11:16:31,727 - Session session.platform - Thread 9940 | MainThread
EDP Authentication failed. Error code -1 | TypeError("Expected object of type bytes or bytearray, got: ")
I tried to define APP_KEY, RDP_LOGIN and RDP_PASSWORD both as variables and call them from another script.
Can anyone suggest on this?
thank you very much in advance
Best Answer
-
The Machine ID represents the account/username required to consume data programmatically from the Refinitiv Data Platform and therefore you will need to wait until the Refinitiv Account team has issued your organisation with a trial or full licence.
In the meantime, you can use the RDP library with a Desktop session connecting to your Eikon or Refinitiv Workspace and continue your development. Assuming the data you require is available on the Platform, you should be able to port the code to the platform, by just changing your code to create a Platform Session rather than Desktop session - once you get your MachineID.
You may find the following article useful
0
Answers
-
Firstly can you confirm you have valid Refinitiv Data Platform credentials i.e. a MachineID which would look something like GE-A-011234567-3-3456 ?
The Machine ID would have been received in a 'Welcome to Refinitiv - Your New Account' type email which would have also contained a link to set your RDP password
If you do have a MachineID, have set your password - as well created an AppKey which has EDP API access enabled e.g.
then please initially try and test using one of the examples included at https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.Python
Note that for the above Github examples, there is a credentials.ipynb file in which you need to set your MachineID, Password and AppKey.
If you try one of the above examples at it does not work - please post the output and mention which example you tried.
If you do not have an RDP Machine ID please let me know and I can try and reach out to your Refinitiv Account contact or you can contact them directly.
0 -
Hi,
Are you sure that the platform session is really opened ?
You can check this with following code :
session = rdp.open_platform_session( APP_KEY, rdp.GrantPassword( username = RDP_LOGIN, password = RDP_PASSWORD ) )
print(session.get_open_state()0 -
@tanja.baccega have you read the quick start guide for a platform session. Its different from an Eikon session in that you need an RDP Username and Password. Can you log into the RDP API playground with your RDP Credentials?
Also what version of the RDP libs are you using? You should definitely be above v1.0.0a6.
0 -
@umer.nalla I think the problem is that I do not have the MachineID as I just joined this team and they provided me with a temporary license given with the pandemic. Do you think is it possible to retrieve the MachineID even with this kind of setting? otherwise I will wait as they are dealing with the cstomer service to buy licenses for the new joiners0
-
I Can log into the RDP API playground0
-
You can try to log with your Eikon login/pwd.
If you don't have a valid App Key, and if a colleague created an App Key, you should be able to reuse it with your login/pwd if he can share it with you (because it isn't linked to user account).
Just verify with him that it was enabled for EDP API.
0 -
The API playground relies on a username/user account - which is typically your email address and password which you would use to log into MyRefinitiv.
However, for programmatic access using RDP Library you need to use a Machine ID i.e. Machine Account.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛