Question about rdp news api

Get a couple of questions and will be great if you can enlighten me. FYI I am operating it in Python environment.

  1. What is the difference between refinitiv.data, refinitiv.dataplatform and eikon
  2. I can use the service quite freely when I have my Refinitiv Workplace logged on, however, how can I use them WITHOUT LOGGING ON the workspace?

a. For refinitiv.data, are there any sample code can show me how to pass in the credentials?

b. For refinitiv.dataplatform, I used sample code as below, wonder for the username and pw is it the same as my workspace id and pw (or I need the machine key?); and for the app key I feel like I can generate unlimited app key in the app, is that it does not really matter as long as I see the owner value the same as my registered email?

import refinitiv.dataplatform as rdp

#Open the session

#Create and open a Platform session to connect directly to the Refinitiv Data Platform

rdp.open_platform_session(

'YOUR APP KEY',

rdp.GrantPassword(

username = 'YOUR RDP UID',

password = 'YOUR RDP PWD'

)

)

c. For eikon, I only see in the sample code that the app key is required via ek.set_app_key. How can I pass in my user credential or if it is not necessary at all?

3. FYI I fail to connect any if my refinitiv workspace is not running. I share the error code I see below, will be great if you can help.

Trying rd

1699597887772.png


Trying rdp

1699597906426.png


Trying eikon and it also have error like "no proxy address identified" etc. I'm not able to upload any more pics.

Thanks team for the help/

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • aramyan.h
    aramyan.h admin
    Answer ✓

    Hi @Julian.Bai ,


    Thank you for your questions. Let me answer these one by one:

    1. What is the difference between refinitiv.data, refinitiv.dataplatform and eikon

    Eikon Data API is a Python library which gives access to wide range of data through Desktop session, meaning that you would need to login Eikon/Workspace as it uses the proxy to get the data. Refinitiv Data Platform is a set of endpoints which you can use to access our data both through Desktop and Platform connections/sessions (where you don't need Eikon/Workspace running). RD libraries is our latest library which sits on top of Refinitiv Data Platform and offers ease of use functions to access the data. The latter also offers Desktop and Platform connections. My colleague @jonathan.legrand created a great article on these APIs/libraries and others which explains these in greater detail. You may have a look at it here.

    2. I can use the service quite freely when I have my Refinitiv Workplace logged on, however, how can I use them WITHOUT LOGGING ON the workspace?

    That is the main difference between Desktop and Platform connections. If you are connected through a Desktop session using desktop licence (with your API key) you need to have Eikon/Workspace running on the background, whereas in Platform session under enterprise license (when you get a Machine ID as well) you can get the data without logging into Eikon/Workspace.

    a. For refinitiv.data, are there any sample code can show me how to pass in the credentials?

    You can find examples for configuring and requesting data via rd libraries in our GitHub repo. Generally to connect refinitiv.data via desktop session you would need to import the library and run rd.open_session(). You don't need to pass API key (which you should in case of Eikon) as it will fetch directly from Eikon/Workspace running on the background.

    b. For refinitiv.dataplatform, I used sample code as below, wonder for the username and pw ...

    The username and password for the example above are the Machine ID and password which you will get if you have enterprise license with us. You can talk to your account manager if you need one.

    c. For eikon, I only see in the sample code that the app key is required via ek.set_app_key. How can I pass in my user credential or if it is not necessary at all?

    To use Eikon you need the API key only

    3. FYI I fail to connect any if my refinitiv workspace is not running. I share the error code I see below, will be great if you can help.

    As you could infer from my answers above you can't access the libraries in desktop session without Eikon/Workspace running on the background.


    Hope this provides an answer to your question, please let me know should you have any further questions.


    Best regards,

    Haykaz

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.