☰
Login
Signup
Home
›
PHP 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
13.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
July 2020
sujith
July 2020
nsarup
positions data not updating
nsarup
July 2020
in
PHP client
Hi, using PHP Client Version 3
print_r($kite->getPositions());
Fetches data, but it is not updating ..
whereas
print_r($kite->getQuote(["NSE:INFY", "NSE:SBIN"]));
in the same script is fetching the latest quote data..
what could I be doing wrong?
nsarup
July 2020
even
curl "
https://api.kite.trade/portfolio/positions
" \
-H "X-Kite-Version: 3" \
-H "Authorization: token api_key:access_token"
returns data , but the data is not updating .. same data showing trying multiple times in last few minutes
sujith
July 2020
@nsarup
,
You can refer to this
thread
.
Please create a new thread for new query, it might help others who are searching for the same.
nsarup
July 2020
The thread you pointed to has issue " When i call GetPositions its always giving me value 10 -15 second old data."
In my case data is not updating at all. even the last_price coming is not updating.. So how do i solve this?
nsarup
July 2020
@sujith
please help
sujith
July 2020
@nsarup
,
It is not recommended to poll positions to calculate P&L. You need to calculate P&L using the last price received on Quote API or Websockets API.
nsarup
July 2020
Got it . Thanks
This discussion has been closed.
curl "https://api.kite.trade/portfolio/positions" \
-H "X-Kite-Version: 3" \
-H "Authorization: token api_key:access_token"
returns data , but the data is not updating .. same data showing trying multiple times in last few minutes
You can refer to this thread.
Please create a new thread for new query, it might help others who are searching for the same.
In my case data is not updating at all. even the last_price coming is not updating.. So how do i solve this?
It is not recommended to poll positions to calculate P&L. You need to calculate P&L using the last price received on Quote API or Websockets API.