Issue with obtaining EventDate in lseg.data API Python Code

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
Best Answer
-
If you use the desktop.workspace session, you should be able to retrieve the data.
As far as I know, for some fields, you will get the "The access to field(s) denied." error when using the platform.ldp session. I got the same error when using the platform.ldp session.
You can contact your LSEG account representative to check your account's entitlement.
1
Answers
-
Thank you for participating in the forum.
The error indicates that your account isn't entitled to retrieve this data. Could you please check with your LSEG account representative to check your account's entitlement.
I Hope this helps and please let me know in case you have any further questions.
0 -
Dear @raksina.samasiri
Thank you for your respone.
What is strange that I can access the "AdvEvents" in the workspace app, as well as see the TR.EventStartDate in the DIB. When I set an instrument, I can even see the values that correspond to these variables. Hence, I assume that I do have access to this data.
Best,
Alessandro0 -
Dear @Jirapongse
Thank you for your response. I am using Linux as my main operating system, that's why I am trying to use the platform ldp session.
However, I will try to obtain this data using a windows machine, since it is very important for my project. Will update you once I checked it.EDIT: You are indeed correct. Thank you! I could download the data using workspace session on Windows… However, this is very bad news for paying subscribers using Linux, which cannot use this…
However, to me it still does not make sense, why I cannot access the data using the ldp platform.
0 -
I'm truly sorry for any inconvenients caused. I've contacted your LSEG account manager to check the entitlement of this field on your RDP account, will keep you posted.
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 中文论坛