Kotak-Neo / kotak-neo-api

108 stars 96 forks source link

NIFTY 50 Index quote #26

Closed syedasif11 closed 1 year ago

syedasif11 commented 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)

This is not working. Can you check what is wrong. Equity and FNO works fine.

Kotak-Neo commented 1 year ago

In place of token you have to pass Index Name, have updated this in the documentation, thanks for the feedback :)