Skip to content

jenniferrzhu/CS50-Finance-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 

Repository files navigation

CS50 Finance Website

Project for Week 9 of Harvard's CS50: Introduction to Computer Science.

Screenshot 2023-08-03 at 8 53 38 PM

Description

New users can register for an account. After logging in, users can access updated ticker information, buy and sell stocks, and see their stock history. The earnings from stocks currently owned is accessible under 'index' which help users decide whether they want to buy or sell the stock using their (fake) money.

Details

Register

Create a username and password for a new account. An apology is returned if a field is left empty, a username is taken, or the password and password confirmation don't match.

Screenshot 2023-08-03 at 11 02 36 PM

Index

This homepage display shows the user's stocks owned, number of shares, original bought price per share, and the current value of each holding. Users can also see their current 'cash' balance and their total balance including stock earnings.

Screenshot 2023-08-03 at 11 01 32 PM

Quote

By entering in a company's ticker symbol, users can see the current value of the share. An apology will be returned if the required field is left empty or the entered symbol is invalid.

Screenshot 2023-08-03 at 10 57 54 PM Screenshot 2023-08-03 at 10 58 01 PM

Buy

Users can 'buy' stocks by submitting. a form with the ticker symbol and specified number of shares. If the symbol is valid, the number of shares is a positive interger, and the user can afford the requested purchase, the transaction will be successful, which is indicated by a redirect to the index where the new purchase is recorded in the table. Otherwise, an error will appear.

Screenshot 2023-08-03 at 11 00 41 PM

Sell

Users can choose any stock they own and any number of shares to sell.

Screenshot 2023-08-03 at 11 01 06 PM

History

All buy and sell transactions are listed in a table summary showing the date and time, action, symbol, shares, and amount.

Screenshot 2023-08-03 at 11 02 01 PM

Please note that the Login and Logout functions and all functions in helpers.py came with the assignment starter code and are not mine. Starter code ©2023 David J. Malan/ Harvard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors