Table of Contents
Python program that learns stock movement based on past and current data and buy/sells stocks accordingly. Implemented with the Alpaca Trading API to import data and create buy/sell orders, the AI software can predict future movements of stocks and place orders automatically. It's also deployed to the Google Cloud Storage to run infinitely on Google Cloud.
- Python
https://www.python.org/downloads/
- Get a free key_id and secret_key at https://alpaca.markets/algotrading
- Clone the repo
git clone https://github.com/rexliu3/StockTradingBotCloud.git
- Install requirement.txt
pip3 install -r requirements.txt
- Enter your key_id and secret_key in
Stock_Trading_Bot.py
super().__init__(key_id='ENTER YOUR KEY_ID', secret_key='ENTER YOUR SECRET_KEY', base_url='https://paper-api.alpaca.markets')
Simply run main.py
: python3 main.py
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Rex Liu - [email protected]
Project Link: https://github.com/rexliu3/StockTradingBotCloud
Built with reference to article