@bhumi Ticker is not available in KiteConnect PHP client. This is because PHP is a backend scripting language and it is not appropriate to have long living WebSocket(TCP) connection inside a PHP script.
You can use KiteConnectJS library and fetch ticks in your browser and you can call your PHP backend from the browser using AJAX or Fetch API.
@bhumi I believe you are new to such things. If I'm right I suggest you learn how these things actually work and familiarize them because jumping directly into implementation will be extremely difficult for a beginner.
If you are comfortable in using python I would suggest using our python client which has both APIs and ticker in the same package.
To answer your question refer this answer from StackOverflow. Basically, you have to call the PHP script that processes the ticks using AJAX whenever you get a tick from the JS library.
@tonystark Thanks for your response. I have no issues with php , Ajax and its communication. Before this , I have used kiteconnect.php file and by using ltp value, I had formed 4 strategies.
But, now I have to place Buy and Sell order according to the Super Trend / Renko chart. So, I need Symbol Tick Data. And on the basis of the tick data, next buy or sell order should be placed.
Trying to implement Auto Jobbing for Super Trend / Renko chart.
- https://github.com/arkochhar/Technical-Indicators
- http://technicianapp.com/resources/supertrend-2-2/
You can check out curated list for more useful links.
You can use KiteConnectJS library and fetch ticks in your browser and you can call your PHP backend from the browser using AJAX or Fetch API.
Can you please also suggest how to get the Tick Data according to the symbol and its communication with connect.js?
If you are comfortable in using python I would suggest using our python client which has both APIs and ticker in the same package.
To answer your question refer this answer from StackOverflow. Basically, you have to call the PHP script that processes the ticks using AJAX whenever you get a tick from the JS library.
I have no issues with php , Ajax and its communication. Before this , I have used kiteconnect.php file and by using ltp value, I had formed 4 strategies.
But, now I have to place Buy and Sell order according to the Super Trend / Renko chart. So, I need Symbol Tick Data.
And on the basis of the tick data, next buy or sell order should be placed.
Trying to implement Auto Jobbing for Super Trend / Renko chart.