☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
11.9K
All Categories
85
Node JS client
30
Go client
685
.Net API client
330
Kite Publisher
524
.Net / VBA / Excel (3rd party)
393
Algorithms and Strategies
891
Java client
903
API clients
383
PHP client
3.3K
Python client
310
Mobile and Desktop apps
1.2K
Market data (WebSockets)
2.9K
General
In this Discussion
March 3
rakeshr
How to fetch realized and unrealized profit separately using kite connect API
KN5981
March 2
in
Python client
Hi
@admin
I need to fetch the realized and unrealized profit separately. Right now I used below formula, but it returns the P&L. I want to fetch the realized and unrealized separately. Kindly help me to solve this issue.
pnl = (sellValue - buyValue) + (netQuantity * lastPrice * multiplier);
rakeshr
March 3
The formula remains the same for both, just for realized p&l you need to replace lastPrice with the sold price/sell price.
This article
explains more.
Sign In
or
Register
to comment.