This is an algorithmic paper trading bot that uses the following APIs: Alpaca, financialmodelingprep, yahoofinance. With these tools and use of deep learning, we can create an intelligent trading bot that can automate trades in the market. For testing purposes we will trade paper money.
Steps to run locally:
- create an alpaca account and generate api keys (secret and reg)
- clone the repo into a local directory using
git clone https://github.com/ZacharyJWyman/Algorithmic-Trading-.git
- Create a config.py file using the terminal by
touch config.py
and create variablesAPI_KEY = 'key' & API_SECRET_KEY = 'secret_key'
within config.py file. You can use notepad for this step. - cd in master directory and create a virtual env using
virtualenv venv
- cd into virtual environment
cd venv
and then instantiate using.\Scripts\activate
(Windows activation) - navigate to directory where requirements.txt is located while virtualenv is activate and install dependencies
pip install -r requirements.txt
- to run GUI
python gui.py
in the terminal.
Currently the bot is linked to a paper trading account and can make paper trades when the market is open. There is also a fully functional GUI that incorporates a deep learning model to predict stock prices. The GUI can make trades for you and store past orders as well as fetch current stock price and predicted price for stocks publicly traded in the U.S.
- Integrate future forecasting (10-Day & 30-Day) periods.
- Flag buy and sell periods with model for smart trading.
- Create a more robust model (ideas: stock sentiment (news), seasonality trends).
Created by Zachary Wyman