Ticks for two stocks or indexes

ahsan
def on_tick(tick, ws):
print tick

# Callback for successful connection.
def on_connect(ws):
# Subscribe to a list of instrument_tokens (RELIANCE and ACC here).
ws.subscribe([738561, 5633])

# Set RELIANCE to tick in `full` mode.
ws.set_mode(ws.MODE_FULL, [738561])

#------------------------------------------------------------------------------------
Q: How can I get for both RELIANCE and ACC ? If I changed as
ws.set_mode(ws.MODE_FULL, [738561, 5633]])

then only getting tick for RELIANCE.

Please suggest me to get tick for both stocks.

Thanks

Ahsan

This discussion has been closed.