I used the positions API to get the net positons. Currently I had 2 trades which were closed with net loss of 1230. In net positions it showed me Why is it showing these numbers in unrealised instead of realised as the trades are closed and profit/loss booked.
I need both the realised PnL (trades closed and Profit/loss booked) and unrealized profit for currently open trades based on ltp.
You may refer to the similar discussion here.
Why is it showing these numbers in unrealised instead of realised as the trades are closed and profit/loss booked.
I need both the realised PnL (trades closed and Profit/loss booked) and unrealized profit for currently open trades based on ltp.
Please suggest.
Regards
Vivek