I am reading FINNIFTY current index ltp with the following sd.trigger_symbol_instance_dict['FINNIFTY SERVICES'].ltp But I am receiving Invalid trigger symbol: NIFTY FIN SERV
You need to include exchange and tradingsymbol. You can check out documentation here for LTP API. You can find the correct tradingsymbol and exchange for all instruments in the instruments master dump. The instruments master dump is a huge file which gets changed everyday, so it is advised to fetch it once a day, cache it and use that copy as the source for the whole day.
The instruments master dump is a huge file which gets changed everyday, so it is advised to fetch it once a day, cache it and use that copy as the source for the whole day.