LSEG Data Warning: You open a platform session using the default value of the signon_control paramet

Can you help me troubleshoot a run time problem when calling an open session with an APP_Key. This is my first time using the API.
ld.open_session(app_key = APP_KEY)
here is the output:
C:\Users\mvyvo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\lseg\data_access_layer\session.py:72:FutureWarning:
You open a platform session using the default value of the signon_control parameter (signon_control=True).
In future library version v2.0, this default will be changed to False.
If you want to keep the same behavior as today, you will need to set the signon_control parameter to True either in the library configuration file
({'sessions':{'platform':{'your_session_name':{'signon_control':true}}}}) or in your code where you create the Platform Session.
These alternative options are already supported in the current version of the library.
Best Answers
-
If you would like to use the platform.ldp session, you can set the "signon_control" to true, as shown below.
"platform": {
"ldp": {
"app-key": "<appkey>",
"username": "<username>",
"password": "<password>",
"signon_control":true
}
},To use the open the default session, you can run the ld.open_session() without passing any parameters.
1 -
Hi @mvyvoda ,
Please let me add that The Data Library's configuration "signon_control" is use for setting the Data Platform session (RDP Authentication Service) "takeExclusiveSignOnControl" parameter. If you set it to true, it overrides any previous session you logged on i.e. force sign-out this ID from other applications and sign-in here.
This setting make your account single sign-on with the library, but reduce a change to encounter "Session quota is reached." issue.
I hope this information helps
1
Answers
-
Thank you for reaching out to us.
First, you need to check if you would like to use the desktop.workspace or platform.ldp session.
The desktop.workspace session retrieves data through the LSEG Workspace application running on the same machine and it requires only an application key.
The platform.ldp session retrieves data from the cloud platform and it requires an username, password, and application key to connect to the platform.
I assume that you have the lseg-data.config.json file.
"sessions": { "default": "platform.ldp", "platform": { "ldp": { "app-key": "<appkey>", "username": "<username>", "password": "<password>", "signon_control":true } }, "desktop": { "workspace": { "app-key": "<appkey>" } } }
You need to set the sessions.default configuration to the correct session (platform.ldp or desktop.workspace).
1 -
Thank you. I previously updated this config file for use with the default of "platform.ldp".
{
"logs": {
"level": "debug",
"transports": {
"console": {
"enabled": false
},
"file": {
"enabled": false,
"name": "lseg-data-lib.log"
}
}
},
"sessions": {
"default": "platform.ldp",
"platform": {
"ldp": {
"app-key": "xxxxxxxx", # I entered my KEY here, but have this blank for this post
"username": "xxxxx@xxxx.com", # I entered my USERNAME here, but have this blank for this post
"password": "xxxxxx" # I entered my PASSWORD here, but have this blank for this post
},
"deployed": {
"app-key": "YOUR APP KEY GOES HERE!",
"realtime-distribution-system": {
"url" : "YOUR DEPLOYED HOST:PORT GOES HERE!",
"dacs" : {
"username" : "YOUR DACS ID GOES HERE!",
"application-id" : 256,
"position" : ""
}
}
}
},
"desktop": {
"workspace": {
"app-key": "xxxxxxxx", # I entered my KEY here, but have this blank for this post
}
}
}
}I placed this in the directory I am running my Python Script.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛