Sometimes this code throws an error and sometimes it runs fineCode:
Error:
@rishav.jindal
Thank you for reaching out to us.
The Eikon Data API is quite old. We recommend to use the LSEG Data Library for Python instead. The examples are on GitHub. You can also refer to this Essential Guide to the Data Libraries - Generations of Python library (EDAPI, RDP, RD, LD) article.
Moreover, you may need to check this Eikon Data API and Refinitiv Data Library - Troubleshooting article to make sure the Data API Proxy in Workspace is running properly.
ok I will check and let you know if that works