A trading bot I'm building for fun in python using polygon.io's stocks API.
For Python >= 3.8:
python3 --version
orpython --version
For pip:
pip3 --version
orpython3 -m pip --version
For venv:
python3 -m venv --help
- Move to project directory
cd StocksTradingBot
- Run
./setup.sh
to setup the virtual environment and secrets file - Create a free API key on polygon.io to use their API calls
- Open the
.env
file and fill in your API key like this:SECRET_API_KEY = "put your api key here"
- Source the virtual environment each time afterward with
source venv/bin/activate
- You're done! Feel free to run whatever scripts are available.