Unable to open session with my workstation browser access

acelee
acelee Newcomer
edited April 2 in Eikon Data APIs

  1. Can I assume that its rdp login ? and that i dont have eikon access ?

2. Do you have any sample code to show me how to open a connection ? and access the news ?

3, I am confused about the statement from one of your advisor "They need RDP login if they want platform session or establish connection to the Data Platform on Cloud."

alterntively , you can call me anytime for greater clarity

tq

Tagged:

Answers

  • Hi @acelee ,

    You can connect to the data platform by 3 access points as below

    • Platform access point - RDP account
    • Desktop access point - LSEG Workspace application (as a data API proxy)
    • Real-Time Platform access point - Through the RTDS
    image.png

    Example code can be found at https://github.com/LSEG-API-Samples/Example.DataLibrary.Python/tree/lseg-data-examples/Examples

    ld.open_session() is used to open the session, it will take information of which session to be used and its credentials from the configuration file, which is located in the same directory as the Python script file, or the code below can be used to specify the directory of the conf file

    import os
    os.environ["LD_LIB_CONFIG_PATH"] = "../../Configuration"
  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @acelee

    I assume that you have a LSEG Workspace account and you are using the LSEG Workspace Web version.

    To retrieve data via the LSEG Data Library for Python, you have the following options:

    1. Run the LSEG Workspace Desktop version and use the desktop session with the LSEG Data Library for Python. It requires an application key to connect to the desktop session.

     "desktop": {
    "workspace": {
    "app-key": "YOUR APP KEY GOES HERE!"
    }
    }

    2. Use the platform session with the LSEG Data Library for Python to connect to the Data Platform on Cloud. It requires a username, password, and application key to connect to the Data Platform on Cloud.

     "platform": {
    "ldp": {
    "app-key": "YOUR APP KEY GOES HERE!",
    "username": "YOUR LDP LOGIN OR MACHINE GOES HERE!",
    "password": "YOUR LDP PASSWORD GOES HERE!"
    },

    Application keys can be generated from the App Key Generator (APPKEY) application.

    image.png

    You can check if you account can access the Data Platform on Cloud by visiting the API Playground. In the Playground, you can access news from the /data/news/v1/headlines endpoint.

    image.png