☰
Login
Signup
Home
›
API clients
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
13.8K
All Categories
0
Incidents
152
Node JS client
39
Go client
791
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
992
Java client
1.1K
API clients
402
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
August 2017
tonystark
September 2017
mastertrader21
August 2017
sujith
How to get current holding & total investment
mastertrader21
August 2017
in
API clients
pfa of image for clarification of my doubt
holding.PNG
42K
sujith
August 2017
Hi
@mastertrader21
,
Total investment is sum of (quantity * average_cost) and current value is (quantity * last price)
mastertrader21
August 2017
how to get net chg. percent in above screen
tonystark
August 2017
Hi
@mastertrader21
,
Individual net change percentage = ((quantity * ltp) - (quantity * average_cost)) / (quantity * average_cost) * 100
Total net change percentage = (currentvalue - totalinvestment) / totalinvestment * 100
mastertrader21
August 2017
Dear sujith
I want individual current value you had gave me the formula current value = (quantity * last price).
Example for above screen considering the first row (14*755.15)=10572.1 but the value shown on screen is 13592.70.
Please guide me for the same.
tonystark
August 2017
Hi
@mastertrader21
,
You forgot to add T1 quantity 4
mastertrader21
September 2017
Dear sir,
I need to know the calculation behind chg. in open position module. please refer the below image
NetPostionChgDobt.PNG
45.6K
mastertrader21
September 2017
I used the above mention formula by you ((quantity * ltp) - (quantity * average_cost)) / (quantity * average_cost) * 100 is it correct
This discussion has been closed.
Total investment is sum of (quantity * average_cost) and current value is (quantity * last price)
Individual net change percentage = ((quantity * ltp) - (quantity * average_cost)) / (quantity * average_cost) * 100
Total net change percentage = (currentvalue - totalinvestment) / totalinvestment * 100
I want individual current value you had gave me the formula current value = (quantity * last price).
Example for above screen considering the first row (14*755.15)=10572.1 but the value shown on screen is 13592.70.
Please guide me for the same.
You forgot to add T1 quantity 4
I need to know the calculation behind chg. in open position module. please refer the below image