Closed renjithsasidharan closed 11 months ago
I believe isIndex
should be False
.
This worked for me .. please try it out
client.quotes(instrument_tokens=[{"instrument_token": str(token) , "exchange_segment": 'nse_fo'}] , quote_type='', isIndex=False, session_token=session_token, sid=sid, server_id=serverid)
Please put isIndex = False, and then it should work. :)
I am trying to get LTP for
BANKNIFTY2381745000PE
inst_tokens = [{"instrument_token": '39040', "exchange_segment": 'nse_fo'}] self.api.quotes(instrument_tokens=inst_tokens, quote_type='ltp', isIndex=True)
This returns
{}
. I have this problem only for FO not for CM