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:

  1. Code Review: Shared the problematic code snippet with the support team.
  2. Environment: Confirmed that the issue occurs on a Linux system.
  3. API Connection: Verified that the API connection is functional for other data fields.
  4. 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

Answers

  • Hi @Alessandro Di Stefano ,

    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.

  • 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,
    Alessandro

  • Alessandro Di Stefano
    edited March 21

    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.

  • Hi @Alessandro Di Stefano ,

    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.