How to access Fyers API from Postman app

Dear Team,

I would greatly appreciate your assistance with integrating the Fyers API using Postman. I am currently attempting to retrieve historical data, and have identified the following URL for this purpose:

https://api.fyers.in/data-rest/v2/history/?symbol=

However, I understand that I need to obtain both an App_ID and an Access_Token to proceed further.

Could you please guide me through the steps to obtain the App_ID and Access_Token?

Your support in configuring this integration step-by-step would be immensely helpful.

Thank you in advance for your assistance.

Hey @103853690186101966435,

I would recommend following the full API documentation, for the setup and auth process - https://myapi.fyers.in/docsv3
Also, I assume you already have the entire POSTMAN collection for the Fyes API - https://myapi.fyers.in/docsv3#tag/Sample-Code/Postman-Collection

To answer your question simply -

  • First, you need to create an app on the Fyers API Dashboard - https://myapi.fyers.in/dashboard. That’ll give you your APP_ID / client_id. Also, save the SECRET_ID, which will be used later.
  • Also, while creating the app you can use “https://trade.fyers.in/api-login/redirect-uri/index.html” as the redirect URL, which will help you get the auth code for the next step.
  • Using the variables above, follow the “OAuth2 - Auth Flow” in the Authentication folder in the POSTMAN collection, which will help you get the authcode and then get the access_token using the same authcode and an appIdHash.

All of this is well documented in the API documentation.

Hope that helps.