Unable to fetch LTP
-
HI @webseos follow below thread:
https://smartapi.angelbroking.com/topic/1186/ltp-error-in-php-library -
@krishna Can you write sample quote to get profile data, sample php code
what to be sent from websocket
-
HI @krishna7578 We have reported this to our team we will update you soon.
-
i am using php library
Request URL: https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/getLtpData
Request Method: POST
Status Code: 405Req Param:
{"exchange":"NSE","tradingsymbol":"TCS-EQ","symboltoken":"11536"}Res :
{"status":"fail","error":"","http_code":405,"http_error":"Method not allowed","response_data":null} -
Hi @A224819 , Exchange input is incorrect in your code.
{"token":"474","symbol":"3MINDIA-EQ","name":"3MINDIA","expiry":"","strike":"-1.000000","lotsize":"1","instrumenttype":"","exch_seg":"NSE","tick_size":"5.000000"}
Please verify trading symbol, symbol token and exchange inputs from below link
https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
-
@krishna said in Unable to fetch LTP:
404 page not found error when trying to fetch LTP.
Hi, please verify trading symbol, symbol token and exchange inputs from below link
https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
-
-
@A224819 I can see a space in the URL. Also for the post method only data is enough, no need of params. You can download the smarApi package and see the code implemented by Angel developers.
-
I am also trying the same and getting 404 error. Here is a screenshot:
I am trying to get the LTP for days now. Please help me. I have already tried the 'SmartConnect' approach and it gives me 500 (Internal Sever error). I am happy to continue with the API documentation.
Kindly help me get through this.
Thank you :)
-
@krishna I suppose you're passing wrong feedToken. Please review.