Hey Community,
I tried to fetch the LTP (Last Traded Price) of NSE_EQ|KARURVYSYA with passing the query param and Headers params (Accept = application/json, Api-Version = 2.0, Authorization = Bearer {access_token} ).
Here the response is attached in the screenshot , states that the status is success and data feild is empty.
What should I do to get the LTP of any NSE Symbol.
I Kindly request UpLink Developers (Upstox) to add some sample request code in the API Developer Docs.
Thanks In-Advance .
@Prabu_Selvam The symbol must be formatted correctly as symbol=NSE_EQ|ISIN
. Specifically, it should be ‘NSE_EQ|’ followed by the ISIN code. We will enhance the documentation to make this clearer and easier to understand for users.
Here is the proper cURL command for your request:
bash
curl --location 'https://api-v2.upstox.com/market-quote/ltp?symbol=NSE_EQ%7CINE036D01028' \
--header 'accept: application/json' \
--header 'Api-Version: 2.0' \
--header 'Authorization: Bearer {your_access_token_here}'
We are aiming to include sample code as a distinct section in the documentation for the upcoming release. We will keep you informed about the release updates.