☰
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
996
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
June 2018
sujith
June 2018
bhumi
Need Tick Data of Symbol
bhumi
June 2018
in
PHP client
Hi,
I am using the following code to get the last price -
$response = file_get_contents("
https://api.kite.trade/quote/ltp?api_key=XXXXX&access_token=XXXXX&i=NSE:INFY
");
$json_array = json_decode($response);
$filledprice = "";
foreach ($json_array->data as $lpInfo) {
$filledprice = $lpInfo->last_price;
}
Now, I require tick by tick data, please guide.
bhumi
June 2018
Waiting for the resposne
sujith
June 2018
Hi,
You need to use Websockets to fetch live market data. phpkiteconnect doesn't support websockets. You need to use kiteconnectjs to fetch live market data.
You can check out more about
websockets here
and
equivalent javascript documentation here
.
Sign In
or
Register
to comment.
You need to use Websockets to fetch live market data. phpkiteconnect doesn't support websockets. You need to use kiteconnectjs to fetch live market data.
You can check out more about websockets here and equivalent javascript documentation here.