PHP LTP API
-
Hey
I am using smart API in the PHP platform
Everything is okay but I am a little lost to identify which API should I call to get the live trading data of NFO (Only for NFO)
There is not much written in the documentation.
Can you help me?
May be it is something related to LTP but I am not sure how to call it through PHPThank you in advance!
-
I am struggling to get sample code how to request LTP, how to calculate Moving avg, EMA, RSI 14 etc
Can you help
-
HI @amanthuniya94 said in PHP LTP API:
Hey
I am using smart API in the PHP platform
Everything is okay but I am a little lost to identify which API should I call to get the live trading data of NFO (Only for NFO)
There is not much written in the documentation.
Can you help me?
May be it is something related to LTP but I am not sure how to call it through PHP
Thank you in advance!We have already noted this query on another thread and our team is working on it.
-
@webseos you can get data by using historic api for calculating SMAs. SDK in php is available on github with sample, i think it is community made API. For LTP i am trying to get data by using websocket, but it is not even connecting.
-
-
@VishwaSolutions my websocket connected but not getting data, I saw console its connected
// websocket(clientcode, feedtoken, script, task)
var ws =new websocket('<?php echo $clientCode;?>', '<?php echo $feedToken;?>', 'nse_cm|2885', 'mw');//connect to server ws.connection().then(() => { ws.runScript("nse_cm|2885", "mw"); // SCRIPT: exchange|token for multi stocks use & seperator, mcx_fo|222900 ### TASK: mw|sfi|dp setTimeout(function () { ws.close() }, 3000) });
-
@admin What is heart beat? I am confused. By the way I developed a code to get LTP: in PHP. If I can get LTP or 1 min GetCandleData why WEBSOCKET wss://....
** Pls Add a category in PHP, all going to general discussion
-
-
@webseos said in PHP LTP API:
@amanthuniya94 mapquest directions
I am struggling to get sample code how to request LTP, how to calculate Moving avg, EMA, RSI 14 etc
Can you help
Kindly migrate my ID M301894