Closed syedasif11 closed 1 year ago
print('Subscribing to NIFTY Index token') nifty_token = 26000 n_inst_token = [{"instrument_token": str(nifty_token), "exchange_segment": "Index"}] client.subscribe(instrument_tokens=n_inst_token, isIndex=True)
print('Subscribing to NIFTY Index token')
nifty_token = 26000
n_inst_token = [{"instrument_token": str(nifty_token), "exchange_segment": "Index"}]
client.subscribe(instrument_tokens=n_inst_token, isIndex=True)
This is not working. Can you check what is wrong. Equity and FNO works fine.
In place of token you have to pass Index Name, have updated this in the documentation, thanks for the feedback :)
print('Subscribing to NIFTY Index token')
nifty_token = 26000
n_inst_token = [{"instrument_token": str(nifty_token), "exchange_segment": "Index"}]
client.subscribe(instrument_tokens=n_inst_token, isIndex=True)
This is not working. Can you check what is wrong. Equity and FNO works fine.