Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Trading-Bot

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.

Features

  • 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

Dependencies

  • keras
  • sklearn
  • pandas
  • yfinance
  • alpaca_trade_api
  • numpy

Installation

  1. Clone the repository: git clone https://github.com/yourusername/AI-Trading-Bot.git

  2. Change the directory: cd AI-Trading-Bot

  3. Install the required packages: pip install -r requirements.txt

  4. Create an Api_Passwords.py file in the project folder with your Alpaca API key and secret:

    Api_Key = 'your_api_key'
    Api_Secret = 'your_api_secret'
  5. Run the trading bot: python main.py

GitHub Repo Name:

Copy code AI-Trading-Bot README.md:

markdown Copy code

AI-Trading-Bot

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.

Features

  • 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

Dependencies

  • keras
  • sklearn
  • pandas
  • yfinance
  • alpaca_trade_api
  • numpy

Installation

  1. Clone the repository:

git clone https://github.com/yourusername/AI-Trading-Bot.git

  1. Change the directory:

cd AI-Trading-Bot

  1. Install the required packages:

pip install -r requirements.txt

  1. Create an Api_Passwords.py file 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.

About

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.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages