How much did I leave on the table?

enliyo
I was wondering if we could calculate from net positions how much amount was left on the table after closing the position. I could not find anything in positions response to arrive at that value.

If its not possible to calculate from positions alone, I am think I will have to parse orders and calculate that amount. To arrive at how much extra could have made, it is important to know what was the original trade direction. That can be done by parsing orders and will work fine in most of the cases.
e.g. If trade opened was long, total left on the table = (LTP - avg. buy price) * quantity.
Similarly for long trade, that would be (LTP - avg. sell price) * quantity.

Any thoughts on this?
Sign In or Register to comment.