{"id":20322342,"url":"https://github.com/vincenganga/CS50x-Finance","last_synced_at":"2025-09-22T23:31:28.863Z","repository":{"id":256415915,"uuid":"852785343","full_name":"vincenganga/CX50x-Finance","owner":"vincenganga","description":"Flask web application that enables the user to \"buy\" and \"sell\" stocks.","archived":false,"fork":false,"pushed_at":"2024-09-05T13:12:24.000Z","size":821,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-10T16:17:31.170Z","etag":null,"topics":["cs50x","css","flask","html5","iex-api","javascript","python3","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vincenganga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-05T12:26:15.000Z","updated_at":"2024-09-10T14:27:35.000Z","dependencies_parsed_at":"2024-09-10T16:17:37.731Z","dependency_job_id":"ff7c22ef-2404-4c5f-9627-ff77e7275974","html_url":"https://github.com/vincenganga/CX50x-Finance","commit_stats":null,"previous_names":["vincenganga/cx50x-finance"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincenganga%2FCX50x-Finance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincenganga%2FCX50x-Finance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincenganga%2FCX50x-Finance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincenganga%2FCX50x-Finance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincenganga","download_url":"https://codeload.github.com/vincenganga/CX50x-Finance/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224677168,"owners_count":17351378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cs50x","css","flask","html5","iex-api","javascript","python3","sqlite3"],"created_at":"2024-11-14T19:20:53.115Z","updated_at":"2025-09-22T23:31:28.411Z","avatar_url":"https://github.com/vincenganga.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CS50x-Finance\n\n## Introduction\nThis is one of the assignments provided in CS50x - Introduction to Computer Science.\n\nThe goal of the exercise is to:\n\n* Implement a website that allows users to \"buy\" and \"sell\" stock with the following functions:\n* Complete the implementation of a registration system, enabling users to register for an account.\n* Complete the implementation of a quote feature, allowing users to look up the current price of a stock.\n* Complete the implementation of a buying system, enabling users to buy stocks.\n* Complete the implementation of an index page to display an HTML table summarizing which stocks the logged-in user owns, how many shares, the current price of each stock, and the total value of each holding (i.e., shares times price). Also display the user's current cash balance and a grand total (i.e., the total value of stocks plus cash).\n* Complete the implementation of a selling system to allow users to sell shares of stocks they own.\n* Complete the implementation of a history page that displays an HTML table summarizing all of a user’s transactions, showing each buy and sell action.\n\nIn addition to the required functions, I added some extra features to the website:\n\n* Allow users to change their password.\n* Allow users to add more cash to their account.\n\nFor more information, click [here](https://cs50.harvard.edu/x/2023/psets/9/finance/).\n\n## Built With\n* HTML for website structure.\n* Flask for backend development.\n* Bootstrap for design.\n* [IEX API](https://iexcloud.io/) to fetch real-time stock prices.\n* sqlite3 for storing user information (username, hashed passwords) and transaction records (bought or sold stocks).\n\n## Website\nAfter registering, each user will have a default cash balance of $10,000.\n\n* **Login Page**:\n![Login Page](/CS50%20finance%20Screenshot/LogIn.png)\n\n* **Register Page**:\n![Register Page](/CS50%20finance%20Screenshot/Register.png)\n\n* **Index Page**:\n  This is the homepage of the website, which also contains the history of the user's transactions.\n![Index Page](/CS50%20finance%20Screenshot/Index.png)\n\n* **Quote Page** (Enter the stock symbol to check the stock info): \n![Quote Page](/CS50%20finance%20Screenshot/Quote.png)\n\n* **Quoted Page** (Displays the info of the entered stock symbol):\n![Quoted Page](/CS50%20finance%20Screenshot/Quoted.png)\n\n* **Buy Page** (Enter the stock symbol and the number of shares to buy):\n![Buy Page](/CS50%20finance%20Screenshot/Buy.png)\n\n* **Bought Page** (The bought stock is displayed in the user's history):\n![Bought Page](/CS50%20finance%20Screenshot/Bought.png)\n\n* **Sell Page** (Select the stock you own from the drop-down list and enter the number of shares to sell): \n![Sell Page](/CS50%20finance%20Screenshot/Sell.png)\n\n* **Sold Page** (The sold stock is displayed in the user's history):\n![Sold Page](/CS50%20finance%20Screenshot/Sold.png)\n\n* **History Page** (Shows all user actions, such as buy and sell transactions): \n![History Page](/CS50%20finance%20Screenshot/History.png)\n\n* **Add Cash Page**: \n![Add Page](/CS50%20finance%20Screenshot/Add.png)\n\n* **Added Cash Page**:\n![Added Page](/CS50%20finance%20Screenshot/Added.png)\n\n* **Change Password** (Allows users to change their password, but the new password cannot be the same as the current one): \n![Change Password](/CS50%20finance%20Screenshot/ChangePassword.png)\n\n## References\n* Bootstrap\n* W3School\n* Stack Overflow\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincenganga%2FCS50x-Finance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincenganga%2FCS50x-Finance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincenganga%2FCS50x-Finance/lists"}