const ticker = new KiteTicker({ api_key, access_token, }); ticker.connect(); ticker.on('order_update', (odr) => { /** * This will recieve all order update of user associated by access_token */ console.log('order_updated', odr); }); ticker.on('connect', () => { console.log('TICKER CONNECTED'); });
I am not getting updates right now maybe because it's not trading hours? To test I tried to place a GTT order and then modify it, thought it might trigger order_updated?
https://github.com/zerodha/kiteconnectjs#getting-started-websocket-client
Yes,you will be notified for every order,placed from either web/app/API if you use on_order_update.
So for example below logic will work I am not getting updates right now maybe because it's not trading hours? To test I tried to place a GTT order and then modify it, thought it might trigger order_updated?