Hello,
I'm trying to migrate my scripts from refinitiv-data api so the LSEG-data api.
I'm trying to create a plateform session, using a lseg-data.config.json file.
I first read that config file, using
ld.open_session(config_name = "lseg-data.config.json")
.
But when trying to test my connection using a simple API call, like
ld.get_history("AAPL.O")
I get
LDError: No data to return, please check errors: ERROR: No successful response.(401, Authorization header is missing)
Here is my config file :
{
"http": {
"request-timeout": 60
},
"logs": {
"level": "debug",
"transports": {
"console": {
"enabled": false
},
"file": {
"enabled": false,
"name": "lseg-data-lib.log"
}
}
},
"sessions": {
"default": "platform.ldp",
"platform": {
"ldp": {
"app-key": "appkey",
"username": "username",
"password": "password",
"signon_control": true
},
"deployed": {
"app-key": "appkey",
"realtime-distribution-system": {
"url": "ws://ADS1:15000",
"dacs": {
"username": "username",
"application-id": id,
"position": ""
}
}
}
},
"desktop": {
"workspace": {
"app-key": "appkey"
}
}
}
}
Anyone has an idea of what i'm missing ?
Thank you.