I AM RUNNING A CODE IN COLAB FOR NIFTY OPTION , HOWEVER THE FOLLOWING ERROR IS COMING WHILE TRYING TO GET LTP OF OPTION Error getting LTP for NIFTY2580724700PE: 'NSE:NIFTY2580724700PE' WHAT COULD BE ISSUE ?
The issue arises due to the use of an incorrect exchange segment while fetching the LTP. Since NIFTY options are part of the derivatives segment, the correct format should be NFO:NIFTY2580724700PE instead of using the NSE segment.