How can I connect LSEG Workspace API on an Jupyter notebook not in Workspace

looking to pull data from LSEG workspace application into VS code for the development of downstream generic/parametrized, user-driven ingestion using the following code to establish connection,

session = rd.session.platform.Definition(
    app_key="YOUR_APP_KEY",
    grant="password",               # or "client_credentials" for service accounts
    username="YOUR_USERNAME",       # required for "password" grant
    password="YOUR_PASSWORD",
    take_signon_control=True
)
 
rd.open_session(session)

We attempted to establish connection using the info below yesterday, but not successful. Can you please advise if and how

  1. we can perhaps request client credentials using service accounts to establish such connection between LSEG workspace application & VS code?
  2. we can perhaps request such info (app_key, username & password) from an alternative source such as the Refinitiv Developer portal?

Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    Hello @pat_brady5

    There is a bit of confusion in your message - you are describing the Platform session which connects to RDP, and not to LSEG Workspace.

    A few comments in this regards -

    1. Client credentials is only available for real time and related endpoints. Password grant has to be used for other services.
    2. Dev Portal only hosts tutorials and documentation and Q/A forums. The credentials are requested and managed from the product/account team.
    3. LD Library is the one that is recommended for use.
    4. It can be used in VS Code or any other IDE. Start with one of the iPython samples

    If your connection is not successful, then either your credentials are incorrect, or there is a network issue at your end. You haven't included what the error message is.

Answers