This is a simple Python Flask web app via which you can manage portfolios of stocks. Not only will this tool allow you to check real stocks’ actual prices and portfolios’ values, it will also let you "buy" and "sell" stocks by querying IEX for stocks’ prices.
- Visit iexcloud.io/cloud-login#/register/.
- Enter your email address and a password, and click “Create account”.
- On the next page, scroll down to choose the Start (free) plan.
- Once you’ve confirmed your account via a confirmation email, sign in to iexcloud.io.
- Click API Tokens.
- Copy the key that appears under the Token column (it should begin with pk_).
git clone
the project's url in an empty directorycd CS50-Finance-App
pip install virtualenv
virtualenv venv
venv/source/bin/activate
orsource venv/Scripts/activate
if you are running gitbash on windowspip install -r requirements.txt
export FLASK_APP=application.py
export API_KEY={"API_KEY you obtained from IEX cloud"}
flask run
- Your code should run okay. See images of the project
- Image 1
- Image 2
- Image 3