Algo-Trading-Excel-Fyers is an algorithmic trading tool that integrates with the Fyers broker. This tool allows you to execute orders based on Excel formulas, enabling you to easily implement strategies like strangles, straddles, and many others.
- Order Book: Track all your executed orders within the tool.
- Excel Integration: Utilize Excel formulas to create custom trading strategies.
- Flexibility: Create and execute various trading strategies such as strangles, straddles, and more by simply defining the symbols and order parameters in Excel.
- Integration: Connect the tool with your Fyers account using an API token and secret.
- Order Execution: Define trading symbols and relevant order information in Excel. When the signal cell in Excel turns
TRUE
, the order is automatically executed. - Customization: Customize the strategy by modifying the Excel formulas as per your trading plan.
To start using the Algo-Trading-Excel-Fyers tool, follow these steps:
- Fyers Account: You must have an account with Fyers.
- Python: Install Python on your system.
- Excel: Ensure that you have Excel installed on your system.
-
Generate Fyers API Credentials:
- Log in to your Fyers account.
- Navigate to the Fyers Developer Portal.
- Navigate to dashboard and create an app to get your API token and secret.
- Note: You will need to provide the redirect URL as
http://127.0.0.1:5000
- Create an app to get your API token and secret.
-
Setup Code:
- Clone this repository.
- Install the required Python packages using the following command:
pip install -r requirements.txt
- Run
main.py
file - Enter your API token and secret when prompted.
- Login to your Fyers account using the browser that opens up.
- Once you are logged in, close the browser window.
- The tool is now connected to your Fyers account.
- Note: You will need to run the
main.py
file every time you want to use the tool. - If any error occurs, please run
reset.py
file to reset the tool.
-
Set Up Your Strategy in Excel:
- Run the
main.py
file. - Note: The Excel file Algo-Trading-Excel-Fyers.xlsx is automatically generated when you successfully login through main.py
- Open the Excel sheet named
Algo-Trading-Excel-Fyers.xlsx
. - Define the symbols and order parameters in the Excel sheet.
- All the Live data will be updated in the Excel sheet.
- Put down all your conditions in the Excel sheet.
- When the signal cell turns
TRUE
, the order will be executed. - The order execution status will be displayed in the
Order Book
sheet.
- Run the
-
Customize Your Settings:
- You can customize the tool by modifying the value in the
settings
sheet. - Number of Rows: The number of rows to scan for signals. (Default: 10)
- Time Delay: The time delay between each scan. (Default: 1 seconds)
- You can customize the tool by modifying the value in the
Contributions are welcome! Open issues or pull requests for enhancements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.