How to get the status of Trade

vikasdawar
When i am using getTrades() in kite connect java api I get the list of all the trades (live as well as the ones I have exited from). I do not see any attribute telling the status of the trade. Need this to distinguish between live trades and trades from where I have already exited.
This discussion has been closed.