For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 2

open_platform_session

Dear all, 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
eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
20.3k 73 10 20

Hi @tanja.baccega

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

https://developers.refinitiv.com/en/article-catalog/article/discover-our-refinitiv-data-platform-library-part-1


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

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.

Upvotes
20.3k 73 10 20

Hi @tanja.baccega

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.



1601631770431.png (13.7 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
4.3k 2 4 5

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()


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
6.7k 8 6 7

@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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 1 2
@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 joiners
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 1 2
I Can log into the RDP API playground
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Hi @tanja.baccega

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.


Click below to post an Idea Post Idea