An automated trading bot that utilizes a combination of Support Vector Machines (SVM) and Artificial Neural Networks (ANN) to predict stock prices and execute trades based on the predictions. The bot uses the Alpaca API for trading and Yahoo Finance for historical data.
- Trains SVM and ANN models on historical stock data
- Makes predictions using the trained models
- Executes trades based on the predictions
- Evaluates trading performance
- Uses Alpaca API for trading
- Fetches historical data from Yahoo Finance
- keras
- sklearn
- pandas
- yfinance
- alpaca_trade_api
- numpy
-
Clone the repository: git clone https://github.com/yourusername/AI-Trading-Bot.git
-
Change the directory: cd AI-Trading-Bot
-
Install the required packages: pip install -r requirements.txt
-
Create an
Api_Passwords.pyfile in the project folder with your Alpaca API key and secret:Api_Key = 'your_api_key' Api_Secret = 'your_api_secret'
-
Run the trading bot: python main.py
GitHub Repo Name:
Copy code AI-Trading-Bot README.md:
markdown Copy code
An automated trading bot that utilizes a combination of Support Vector Machines (SVM) and Artificial Neural Networks (ANN) to predict stock prices and execute trades based on the predictions. The bot uses the Alpaca API for trading and Yahoo Finance for historical data.
- Trains SVM and ANN models on historical stock data
- Makes predictions using the trained models
- Executes trades based on the predictions
- Evaluates trading performance
- Uses Alpaca API for trading
- Fetches historical data from Yahoo Finance
- keras
- sklearn
- pandas
- yfinance
- alpaca_trade_api
- numpy
- Clone the repository:
git clone https://github.com/yourusername/AI-Trading-Bot.git
- Change the directory:
cd AI-Trading-Bot
- Install the required packages:
pip install -r requirements.txt
- Create an
Api_Passwords.pyfile in the project folder with your Alpaca API key and secret:
Api_Key = 'your_api_key'
Api_Secret = 'your_api_secret'
Run the trading bot:
python main.py
License
This project is licensed under the MIT License.