Skip to content

Automatically generate your Access Token for Fyers API. The generated Access Token can be used to automatically place order and trade on Fyers API.

License

Notifications You must be signed in to change notification settings

uditvashisht/Generate_Access_Token_FYERS_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SaralGyaan - Automatically Generate Access Token for your FYERS API

A Python Script to automatically generate Access Token for your FYERS API

Pre-requisites

  • An account with FYERS. If you don't have an account, you can open the same using this link
  • Chromium Driver (Chrome) or Gecko Driver (Mozilla) for Selenium. You can download the Chromium Driver or Gecko Driver depending upon your operating System.
  • The Chromium Driver or the Gecko Driver should be in the directory, which has been added to the PATHs of your System.

Requirements

  • Python 3
  • fyers_api
  • selenium
  • python-decouple

You can use the following command to install the necessary modules

pip install -r requirements.txt

Installation

Either download the directory or clone it using

git clone https://github.com/uditvashisht/Generate_Access_Token_FYERS_API.git
cd Generate_Access_Token_FYERS_API
python3 -m venv . #You can use python or python3 or python3.8 depending on your system
source bin/activate
pip install -r requirements.txt

Usage

Change the .env file and add your details in it

USERNAME=YOUR_USERNAME
PASSWORD=YOUR_PASWORD
PANCARD=YOUR_PANCARD
APPID=YOUR_APPID
SECRETID=YOUR_SECRETID

You can generate the Access Token in your system by running

python create_access_token.py

And later on call the API using

python call_api.py

Usage Guide

You can also check the detailed video tutorial on Youtube.

License

© 2020 Udit Vashisht This repository is licensed under the MIT license. See LICENSE for details.

About

Automatically generate your Access Token for Fyers API. The generated Access Token can be used to automatically place order and trade on Fyers API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published