An awesome repository containing scripts and projects for automating stock orders across multiple brokerages.
<img src="https://github.com/Prem-ium/Auto-StockTrader/blob/main/.github/assets/Auto-StockTrader-Banner.jpeg?raw=true" alt="Auto Stock Trader Banner">
Effective immediately, the public version of Auto Stock Trader will no longer receive updates, maintenance, or support.
All active development has moved to the private Gold Sponsor version, which includes:
If you require a maintained, up-to-date version, you must use the Gold Sponsor release.
👉 Become a Gold Sponsor to access the latest version
NVDA, TSLA, AAPL all in one swift test run! 📈.side files with new tickers, account variables, and more in a single click using .sh or ' .bat script! 🔄This project contains the means of automating buy/sell stock orders within:
Gold Sponsors gain exclusive access to advanced, fully optimized features that streamline and automate brokerage management. Here’s a sneak peek at what you’ll receive with Gold Sponsorship:
Ready to upgrade?
Become a Gold Sponsor here and unlock these exclusive benefits!
To use this project, you will need to set the following environment variables in your .env file:
| Variable | Description | Type |
|---|---|---|
SCHWAB_AI |
Total number of Schwab accounts | Integer |
MERRILL_AI |
Total number of Merrill accounts | Integer |
VANGUARD_AI |
Total number of Vanguard accounts | Integer |
FIDELITY_AI |
Fidelity account numbers | Nested List of Strings |
CHASE_AI |
List of AI values in Trade URL | Nested List of Strings |
FIRSTRADE_AI |
Firstrade account numbers | List of Strings |
ALLY_AI |
Ally account numbers. | List of Strings |
CUSTOM_DIR |
Path to the folder to store updated .side files |
String |
DYNAMIC |
Enable dynamic account length feature (0 = Off, 1 = On) | Integer |
SOFI_AI |
List of account numbers for Sofi Helper Auto.side | List of Strings |
As a reminder, if you are a Gold Sponsor, please refer to the private sponsors repository README instead of this public version. The sponsor version includes more features and customization options tailored specifically for your needs.
Need more help?
Login Env Example
If you prefer, you can store your login information in a .env file to automatically open and log in to any brokerage. However, I strongly advise against this practice. Instead, I recommend using the login test to open the login URL and manually log in. Storing credentials in a .side file is discouraged due to security reasons. Multiple account credentials are separated by the : character.
Please note that the login test is a best-try approach. Some brokerages, like Chase, may block automated logins, but you can quickly fill out the user/password information manually if you choose to use this tool.
| Variable | Description | Type | Example |
|---|---|---|---|
CHASE_LOGIN |
Chase Account Credentials | String | CHASE_LOGIN="USERNAME:PASSWORD" |
FIDELITY_LOGIN |
Fidelity Account Credentials | String | FIDELITY_LOGIN="USERNAME:PASSWORD" |
FIRSTADE_LOGIN |
Firstrade Account Credentials | String | FIRSTADE_LOGIN="USERNAME:PASSWORD" |
MERRILL_LOGIN |
Merrill Account Credentials | String | MERRILL_LOGIN="USERNAME:PASSWORD" |
SCHWAB_LOGIN |
Schwab Account Credentials | String | SCHWAB_LOGIN="USERNAME:PASSWORD" |
ALLY_LOGIN |
Ally Account Credentials | String | ALLY_LOGIN="USERNAME:PASSWORD" |
VANGUARD_LOGIN |
Vanguard Account Credentials | String | VANGUARD_LOGIN="USERNAME:PASSWORD" |
Refer to .env.example for more clarity.
Follow these steps to set up and use Selenium IDE for automation:
Note: Selenium IDE is no longer available in browser extension stores. You must manually install it using the .crx file included in this project.
Steps:
Selenium-IDE.crx file from the src folder of this project into the browser window.Confirm the installation when prompted.
Clone the Repository & Install Dependencies:
bash
git clone https://github.com/Prem-ium/Auto-StockTrader
cd Auto-StockTrader
pip install -r requirements.txt
Configure Environment Variables (.env):
Create a .env file and set up your environment variables following the formats outlined in the Environmental Variables section.
Run the Python Script:
bash
python main.py
Pass a stock ticker as an argument to update all .side files:
bash
python main.py AAPL
Separate multiple tickers with a comma:
bash
python main.py NVDA,TSLA,AAPL
Open Updated .side Files:
Open the updated .side project files in Selenium IDE.
Execute Desired Automation within Selenium IDE:
I've been diligently working on this project for several months, and I'm thrilled with the progress it has made. Based on user testimonials, it has proven to be an invaluable tool for automating stock ticker orders across multiple brokerage accounts and various brokerages. I am continually striving to enhance its functionality and optimize its efficiency for automated order execution.
If you appreciate my work and would like to show your support, there are two convenient ways to make a donation:
Buy Me A Coffee
Your generous donations will go a long way in helping me cover the expenses associated with developing new features and promoting the project to a wider audience. I extend my heartfelt gratitude to all those who have already contributed. Thank you for your support!
I'm not available to respond to issues in this repository. For direct support, please consider sponsoring me below under the Silver or Gold tier. Keep in mind that the public version is mostly "as built" and is rarely updated, while the private Gold Sponsor version receives regular updates and support.
Pull Request Requirements 📋
To ensure a smooth review process, please follow these guidelines when submitting a pull request (PR):
FUNDING.yml or any present copyright information without approval.Once you have verified that your changes adhere to these guidelines, please open a pull request with your changes and click 'Request Review' on the Pull Request.
By adhering to these gu
$ claude mcp add Auto-StockTrader \
-- python -m otcore.mcp_server <graph>