Instrument Token id

ahsan
Hi,

How can I get instrument token for stocks and indexes ?
I want to use it in the following function

def on_connect(ws):

instrument_token = ??????

ws.subscribe([instrument_token])
ws.set_mode(ws.MODE_FULL, [instrument_token])

Thanks
This discussion has been closed.