I have some option trade let's say 40500 ce/pe buy sell multiple times. Now I have to find out the unrealized profit/loss running and the realized profit/loss which is already booked in that. In GetPosition() we see overall MTM(realized and Unrealized) but i need both of them separately.
PS: On Kite Connect, there is not relation between an order and a position. You will have to figure out how to link position and an executed/completed order at your end.