This application utilizes Selenium WebDriver in Python to automate trading activities, particularly options trading or intraday trading, by integrating with Kite Zerodha APIs. The primary goal is to control customer loss by allowing users to set their maximum loss limit. The application requires a valid API key from Kite Zerodha and involves setting up the mobile phone for automated login. We welcome new suggestions and contributions to enhance the project.
Follow the steps below to set up and run the Python application:
-
Clone the repository:
-
Change into the project directory:
-
Install the required dependencies:
-
Obtain the API key from Kite Zerodha by following their documentation.
-
Set up the mobile phone for automated login by referring to the documentation provided by Kite Zerodha.
-
Update the configuration file
config.ini
with your API key and other necessary details. -
Run the Python application:
This application can be used while you start trading. It acts as a co-trader even in your absence, making smart sell calls based on your pre-defined loss limit. Here's how to use it:
-
Configure your trading settings and loss limit in the
config.ini
file. -
Run the application, and it will automatically log in to your Kite Zerodha account.
-
Once logged in, the application will monitor your trades and watch for any loss exceeding the specified limit.
-
The application dynamically adjusts the stop loss value based on the current price of your stocks. For example, if you have set a 5% stop loss for a stock and its current price decreases, the application will automatically adjust the stop loss value to be slightly less than 5% of the current price.
-
When the loss limit is reached, or the adjusted stop loss is triggered, the application will initiate sell calls to minimize your losses.
This smart stop loss strategy has helped many traders save up to 50% of their losses within a month. It provides an automated approach to adjust the stop loss value based on market conditions, allowing for effective risk management.
You can customize the behavior and rules for selling by modifying the Python code in main.py
to match your trading strategy.
Remember to keep an eye on the application's activities and monitor the trades it performs.
This project is licensed under the MIT License. See the LICENSE file for more details.
We welcome contributions from the community. If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.