I am an academic researcher using the lseg.data Python library to extract historical M&A data (SCREEN).
Currently, I use the Workspace Screener to identify the variables I need. However, the Excel export only provides the "Data Item Name" (e.g., Premium Paid - 4 Weeks Prior to Announcement, Target Primary Ticker Symbol), whereas the Python API requires the exact "Data Item Code" (e.g., TR.MnAPrem4Weeks, TR.MnATargetTicker).
I have dozens of fields I need to map. I tried using ld.discovery.search(view="IndicatorQuotes", query="<Item Name>") to programmatically fetch the codes and definitions. While it works for some basic fields, it fails or returns incorrect matches for many others. Manually searching for each item in the Data Item Browser (DIB) is not scalable for my research pipeline.
My questions are:
- Is there a specific API function or search parameter in
lseg.data that reliably and exactly maps a "Screener Column Name" to its corresponding "TR Code" and Definition? - Alternatively, is there a downloadable Master Data Dictionary file (CSV/Excel) available that provides a complete mapping table of all Screener Names to their TR Codes and Definitions?
Any guidance or documentation links would be greatly appreciated.
Thank you,