It looks like you're new here. If you want to get involved, click one of these buttons!
def on_order_update(ws, data):
token = []
token.append(data['instrument_token'])
ws.subscribe(token)
ws.set_mode(kws.MODE_FULL, token)
this is not getting me any error, not I'm getting on_tick
on_order_update
.Your python code for subscribing token in on_order_update method is correct.
Are you assigning all the callbacks properly? Can you paste complete Websocket code here.
You can subscribe to any trading instrument for Websocket streaming using it's instrument_token.Get complete trading instrument_token list here.
I'm assigning these callbacks
As instrument subscription is done in on_order_update,then what operations are you performing in on_connect method?
not doing anything in on_connect.
we have is_connected() method to check if it is connected in any method
I would suggest just comment all the logic and keep only connect logic and add a print statement in on_order_update callback. Place an order which will eventually get rejected and you should see an order update.
I'm getting order_update callback.
problem is when I subscribe to the futures token
data['instrument_token']
, I'm not getting on_tick callbackit's working for equity though.
subscribe logic is same for both
I'm sending number only
data['instrument_token']
I could able to get it working
some mismatch in my code
we can close this thread