Single api to fetch all stock list with real time data

@vinod_mokashi,

I recommend testing the provided cURL command in Postman. The screenshot you shared shows your application’s endpoint being used which is not intended. Running the cURL I previously shared will help pinpoint the issue more clearly.

@sam_jain1995, @vinod_mokashi

Here’s the cURL command for you to execute. Please fill in appropriate data and try it out:

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=<client_id>' \
--data-urlencode 'client_secret=<client_secret>' \
--data-urlencode 'code=gUYpiy' \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'redirect_uri=<redirect_uri>'

It’s crucial to identify the root cause rather than delving into code debugging prematurely. This cURL test will clarify where the issue lies, enabling us to proceed logically. Please share the results after executing this test.

Thank you for understanding the importance of this step in the troubleshooting process.

1 Like