CS50 – Stock Exchange

A web application which you can search, buy or sell shares with current prices which provided by IEX.

Table of Contents

Setup

Step 1

First, you need to install ‘requirements.txt’ via pip.

pip install -r requirements.txt

Step 2

Last step is that you have to initialize the Flask App.

On CMD

set FLASK_APP=application.py

On Powershell

$env:FLASK_APP="application.py"

On Bash

export FLASK_APP=application.py

Running The Application

After installing requirements and initializing app, you are ready to go!

In root directory, run:

flask run

This command will start the local server. Which you can connect via

http://127.0.0.1:5000/

or

Localhost

Features

  • Search shares to see the current value
  • Buy shares
  • Sell shares
  • View transaction history

API KEY

Program include its API key. However if API key is expired or somehow invalid, you have to provide new API KEY. See IEX

GitHub

View Github