Single api to fetch all stock list with real time data

Hi Team
Thank you for support.
Have checked with above CURL on postman its working fine. Access Token Generated, Now I want to fetch charts of each instrument (stock&indices) along with real time data.

Have tried trading-view iframe but chart is not giving real time data

please help me
i am trying its not working

@vinod_mokashi,

Due to the confusion caused by multiple threads, could you please continue this discussion in the specified thread? Here is the link for your convenience: https://community.upstox.com/t/access-token-not-generating/3620/11?u=shanmu.

Thank you!

curl --location ‘https://api.upstox.com/v2/login/authorization/token’ \

–header ‘Content-Type: application/x-www-form-urlencoded’ \

–header ‘Accept: application/json’ \

–data-urlencode ‘client_id=********’ \

–data-urlencode ‘client_secret=*****’ \

–data-urlencode ‘code=zXszwh’ \

–data-urlencode ‘grant_type=*****’ \

–data-urlencode ‘redirect_uri=http://127.0.0.1:3001’
i am getting values and response code so what should i do now

its working in terminal .
how to make this in server side

Have you tried running the cURL command to obtain the access_token? Keep in mind that the code value is only valid for a single Token API call. If you need to call the Token API again, you’ll have to generate a new code. Please execute the cURL command and inform me whether it was successful.

Thanks!

yes it is successfully working cURL.
how to update in axios ?

@vinod_mokashi

I’m glad to hear that the cURL command is working successfully for you. To update your request in Axios, I recommend checking the Axios documentation for specific guidance on formatting requests similar to your successful cURL command. The Axios documentation is a great resource for understanding how to structure your requests correctly.

Thanks!!

Thank you sir,
access token is been successfully worked at cURL, and server.
i request you now what is next process in client side and backend server .

@vinod_mokashi,

The further development of planning and logic for your application is something that needs to be managed within your own scope of work. We appreciate your understanding in this matter.

Thank you!