what function is equivalent to refinitiv-dataplatform's rdp.open_platform_session in refinitiv-datap

Please can you let me know what is refinitiv.data equivalent for rdp.open_platform_session in refinitiv.dataplatform.

More specifically, the equivalent function for below:

rdp.open_platform_session(
'key******************************************',
rdp.GrantPassword(
'username',
'Password'
)
)

Best Answer

  • Hi @lisa.mcentee

    The syntax looks like this::

    session = rd.session.platform.Definition(
    app_key = APP_KEY,
    grant = rd.session.platform.GrantPassword(
    username = RDP_LOGIN,
    password = RDP_PASSWORD
    )
    ).get_session()

    You can find the different ways to create a session within the Example Package.

Answers