I've been working with the lseg.data
API in Python and encountered an issue where I need to add my ID to the code. Despite collaborating with the Product Specialist, the problem persists. The API connection works for other fields like TR.TotAssets
, but fails when retrieving data for TR.EventStartDate
for specific instruments like AAPL.O
.
The error message that I obtain reads as follows:
Error processing Data for permID 4296416132: Error code 221 | The access to field(s) denied. Requested universes: ['4296416132']. Requested fields: ['TR.EventType', 'TR.EventTitle', 'TR.EventStartDate', 'TR.EventLastUpdate']
Since I am working with Linux, I am connecting to API using the config file using ldpv1auth.
ld.open_session(name="platform.ldpv1auth", config_name="/home/alessandro/Dropbox/Coco bonds/Data/Eikon/Configuration/lseg-data.config.json")
Note that other variables can be obtained, so connection to the API is working.
Steps Taken:
- Code Review: Shared the problematic code snippet with the support team.
- Environment: Confirmed that the issue occurs on a Linux system.
- API Connection: Verified that the API connection is functional for other data fields.
- Error Isolation: Identified that the error occurs specifically when retrieving
TR.EventStartDate
.
Code Snippet:
params = {'SDate': '2005-01-01', 'EventType': 'ALL', 'EDate': '2025-03-17'}
response, err = fundamental_and_reference.Definition( ["AAPL.O"], "TR.EventStartDate", params).get_data()
Next Steps:
I have been advised by the support team to reach out to the Developer Team via the LSEG Developer Community for further assistance.
Request:
If anyone has encountered a similar issue or has insights into resolving this, please share your experiences or suggestions.
Additional Information:
- Operating System: Linux
- API Fields Tested:
TR.TotAssets
(works), TR.EventStartDate
(fails) - Support Case Reference: Case 14555990
Thank you for your assistance!
Best regards,
Alessandro