☰
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.7K
All Categories
0
Incidents
144
Node JS client
38
Go client
786
.Net API client
375
Kite Publisher
537
.Net / VBA / Excel (3rd party)
452
Algorithms and Strategies
986
Java client
1.1K
API clients
402
PHP client
3.9K
Python client
343
Mobile and Desktop apps
1.3K
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