{"id":23754205,"url":"https://github.com/tedyoung/portfolio-tdd","last_synced_at":"2025-03-15T11:14:31.704Z","repository":{"id":145755288,"uuid":"292427792","full_name":"tedyoung/portfolio-tdd","owner":"tedyoung","description":"TDD Starter for a simple stock portfolio tracker","archived":false,"fork":false,"pushed_at":"2020-09-03T04:02:55.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T02:04:51.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/tedyoung.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":"2020-09-03T00:47:01.000Z","updated_at":"2020-09-04T05:16:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"84040d22-75ba-4d32-a9e1-6c5aa32c9d0b","html_url":"https://github.com/tedyoung/portfolio-tdd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedyoung%2Fportfolio-tdd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedyoung%2Fportfolio-tdd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedyoung%2Fportfolio-tdd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedyoung%2Fportfolio-tdd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tedyoung","download_url":"https://codeload.github.com/tedyoung/portfolio-tdd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243719399,"owners_count":20336607,"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":[],"created_at":"2024-12-31T19:00:29.040Z","updated_at":"2025-03-15T11:14:31.668Z","avatar_url":"https://github.com/tedyoung.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getting Started\n\nTest-driving the development of a simple stock portfolio tracking system.\n\n## Simplifying Assumptions\n\n* USA stock symbols for sample data\n* Pricing in whole dollars (stored as an int)\n* Currency is in $\n* Equities\n* Transactions have date without time\n* Console (terminal) based interface to start with\n\n## Features\n\n* Open portfolio with initial deposit\n\n* View total value of portfolio\n    * Cash\n    * Stock holdings current value\n\n* Buy a stock, enter:\n    * Symbol\n    * Quantity\n    * Share price\n    * Date\n\n* Sell a stock, enter:\n    * Symbol\n    * Quantity\n    * Share price\n    * Date\n\n### Optional\n\n* Close a position, enter:\n    * Symbol\n    * Price sold\n    * (uses today's date)\n\n* View transactions\n\n* Obtain pricing data from https://iexcloud.io/docs/api/#rest-how-to\n    * https://iexcloud.io/docs/api/#quote\n    * Sample: https://sandbox.iexapis.com/stable/stock/AAPL/quote?token=Tpk_c8187b42b499474fafb1cb44c3175c87\n\n## Concrete Examples\n\n* Open a portfolio and deposit $10,000 -- G/W/T\n    Given a new portfolio\n    When I deposit 10,000\n    Then its value is 10,000\n\n* Purchase 200 shares of AAPL at $125 on 2020/08/28 -- G/W/T\n    Given a new portfolio\n    When I purchase 200 shares of AAPL at $125 on 2020/08/28\n    Then its value is 200*125\n\n* View Portfolio shows 200 shares of aapl valued at $25,000\n\n* View portfolio:\n    Given a portfolio with cash balance and a stock holding\n    When we ask it to be displayed\n    Then it displays two items: one for the cash and one for the stock holding\n\n* Sell 200 shares of AAPL at $131 on 2020/09/01\n    Given a portfolio with 200 shares of AAPL\n    When we sell 200 shares at $131\n    Then increases cash by 200*131\n    And removes holding from portfolio\n    \n* View portfolio shows present value of stock holdings based on current prices\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedyoung%2Fportfolio-tdd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftedyoung%2Fportfolio-tdd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedyoung%2Fportfolio-tdd/lists"}