FYERS API SETUP AND COFIGURATION
-
Setup your Broker api details in settings - Login to myapi.fyers.in
- Go to dashboard
- Click on "Create App"
- Give your application name something like 'yournamefyersapp'
- Give redirect url as 'https://google.com/'
- Remove the Webhook/Postbacks
- Provide all the required App permissions
- Click On "Create App" and it will create the app
-
- The App will now be created on dashboard . Note the Secret Id and App Id
- Now add the above information in settings -> '+Add Broker'.
- Choose broker as Fyers
- Enter "Client Id" in BrokerId field and "App Id" in AppId(Name) field.
- Enter "Secret Id" in SecretKey field and RedirectUrl as 'https://google.com/'
-
- click submit. It will save your details a create a new record below
-
- Click on the Fyers Auth Token link . When it's the first time it will redirect to authentication page.
-
- Provide OTP and PIN .The Generated Auth Code will be redirected on the browser along with th redirect URL provided.
-
- Copy the whole url content
-
- Generate the Access token
- Copy the above redirected url link in to 'Auth Code' Field and click on 'Generate'.
-
- The "Access Token" will be generated and will be active for 24 hours.
- If your token is working , then the status should show in green and active
- Click on default option to set this as your default broker.
- Click on Funds to get your funds detail
- Every morning generate the access token by :(1) click Fyers Auth Token (2)Enter new Auth code (3) Generate
-
Set your default configurations settings - From Default configuration section set your Banknifty and Nifty
- Set your default Strike price Range and Default lot size
- Set your current and Next expiry dates
- Place your trades from Trade Page