It looks like you're new here. If you want to get involved, click one of these buttons!
Node JS client
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
The Positions API is not providing the pnl for the active leg if same instrument is traded twice
The Positions API is not providing the pNL for the current active leg separately, in case that is the second or nth trade. This averages the pnl with the earlier trades of the day. Is there a solution for this?
If you place order for same scrip with same product type then new trades are added to same position.
You can place couple of orders and check on kite for behavior. It is complicated to explain everything here.