I placed NRML order using kiteconnect api (python client). I know that a market order must be placed with the same quantity and opposite transaction type in order to close the position using api. But when I exit a position manually using zerodha's dashboard/position, I don't receive any feedback neither on my postback_url nor @ on_order_update(ws, data) in my ticker, about position being closed, which is understandable, since I'm not placing exit order using api.
My query is, how will my script know that I've manually closed a position from Zerodha Dashboard/positions? Is there any way to get instant postback for exit orders placed via dashboard?
Surely there must be a better way than checking whether 'day_buy_quantity' and 'day_sell_quantity' in positions api are different, every few seconds.