It looks like you're new here. If you want to get involved, click one of these buttons!
can you help with an example ?
average_price, you will have to iterate whole order book, filter required order_id(eg: 210504003918028 here) and extract
average_pricefrom the same. Or you can use order trades APIs(this takes order_id as input) to fetch all trades for required order_id and extract
average_pricefor the same.
I'm finding it difficult to write a code for the get request to fetch the trades of a particular order_id.
can you please help me with this ?
use kite.order_history(orderid), if individual fetch suffices.
If you use websockets and store all your trades, then use kite.orders() and collate with your local storage. if any mismatch, add them to your storage and update your positionbook accordingly with user interrupt, for cross-verification.
I got it.