A stock trading bot that uses machine learning to make price predictions.
- Python 3.5+
- alpha_vantage
- pandas
- numpy
- sklearn
- keras
- tensorflow
- matplotlib
- Clone the repo
- Create a new env
conda create -n STOCK python==3.7 --no-default-packages -y - Activate the env
conda activate STOCK - Pip install the requirements
pip install -r requirements.txt
Create an Alpha Vantage account and get an API key
Make a creds.json file with your key
{
"av_api_key":"XXXXXXXXXXXXXXXX"
}
run save_data_to_csv.py
python save_data_to_csv.py KO daily
train your model
python tech_ind_model.py
run evaluation
python trading_algo.py