(Data may not persist if server provider restarts)
This was an assignment for Harvard's Intro to Computer Science course. It uses fake money but real data. The only provided code was Bootstrap for the nav bar as well as several small functions. Everything else was written by me in Python.
Using Flask and SQLite3 I stored the salted hash instead of the user's password. I also stored the username for obvious reasons. :)
Added ability to see a company's current share price by looking up their symbol (i.e NFLX for Netflix) using IEX's API then displayed this JSON data using a table and the Jinja templating language.
Also added ability to buy and sell desired number of shares for any given symbol at current market price using IEX's API.
Added main 'hub' that lets users see the current price of all their shares as well as their current account balance.
$ git clone https://github.com/brendencallahan/Mocks
$ pip3 install cs50 flask flask_sessions
$ export API_KEY=xxxxxxxxxxxxxxxxxxxxxxx
$ flask run
(Visit assignment page here, no login required) https://cs50.harvard.edu/x/2022/psets/9/finance/
- The money used in this is not real. You start with $10,000 fake USD when you register. :)