For one of our clients, I am preparing Python sample scripts to access Real-Time Platform access point of LSEG Data Library (LSEG Data Library for Python | Devportal). I found the following sample Python code on GitHub.
Example.DataLibrary.Python/Examples/4-Session/EX-4.01.01-Sessions.ipynb at lseg-data-examples · LSEG-API-Samples/Example.DataLibrary.Python · GitHub
Can the client access Real-Time Platform access point of LSEG Data Library by using the scripts in Cells 3 and 19 of the sample code?
Cell 3
APP_KEY = 'YOUR APP KEY GOES HERE!'
RDP_LOGIN = 'YOUR RDP LOGIN OR MACHINE GOES HERE!'
RDP_PASSWORD = 'YOUR RDP PASSWORD GOES HERE!'
REALTIME_DISTRIBUTION_SERVICE_HOST = 'ADS IP'
REALTIME_DISTRIBUTION_SERVICE_USER_NAME = 'DACS USER NAME'
Cell 19
session = ld.session.platform.Definition(
app_key = APP_KEY,
grant = ld.session.platform.GrantPassword(
username = RDP_LOGIN,
password = RDP_PASSWORD
),
deployed_platform_host = REALTIME_DISTRIBUTION_SERVICE_HOST,
deployed_platform_username = REALTIME_DISTRIBUTION_SERVICE_USER_NAME
).get_session()