It looks like you're new here. If you want to get involved, click one of these buttons!
Clarify the difference between 'unfilled_quantity' and 'pending_quantity which we get on order update.
What are the use cases of on_message callback while using websocket?
So i wanted to know use cases of on_message.
unfilled_quantity, is an legacy field, and will be removed in the next release.
It's for receiving order updates, the same as postback. For a multi-user public platform, postback is designed to be used and you can find more details on its usage here. However, for individuals, it is recommended to use websocket order update and you can find more information on this here."
But https://kite.trade/docs/pykiteconnect/v4/#kiteconnect.KiteTicker states:
on_message(ws, payload, is_binary) - Triggered when message is received from the server.
payload - Raw response from the server (either text or binary).
is_binary - Bool to check if response is binary type.
this is separate from :
on_order_update(ws, data) - Triggered when there is an order update for the connected user.
So i wanted to know use cases of on_message. when i enable it in my code, i just see some hex string like: b'\x00\x02\x00,\x00\x01\xda\x01\x00$KE\x00\x00\x00\x01\x00$KE\x00\x00\x00\x04\x00\x00\x00h\x00\x00\x01\xe2\x00$KE\x00$KE\x00$KE\x00$KE\x00,\x00\x01\xbd\x01\x00\x00y\xe0\x00\x00\x01\xcd\x00\x00y\xe0\x00\x00\x0c\xca\x0