Jun Xian - Project Portfolio Page
Overview: PaperTrade
PaperTrade is a command line paper trading application that allows users to simulate the buying and selling of stocks. A paper trade is a simulated trade that allows an investor to practice buying and selling stocks without risking real money.
Summary of Contributions
- New Feature: Added View function
-
What it does: Allow users to view portfolio of stocks that they currently own. It includes quantity owned, transaction history, current market price and current profit/loss.
-
Justification: This is a feature that allows users to keep track of their portfolio of stocks and to track how well their stocks owned are doing in terms of profit/loss, relative to latest market price.
-
Highlights: To implement this, there is
PortfolioManager
that is able to accessPortfolio
which encapsulatesStock
andTransaction
.Stock
object also has a method to retrieve latest market price through the use ofStockPriceFetcher
.
-
Code contributed: RepoSense Link
Documentation
- Developer Guide:
- Added Object State Diagrams to give the overall view of
View
portfolio stocks function. Also explained the step by step changes made to the respective classes as theView
method is called in each class. #45
- Added Object State Diagrams to give the overall view of