The user has access to the following features:
On the main page, you can see your current sock & cash holdings as well as a visual pie chart representing your current portfolio. The chart is created using the Chart.js library by dynamically obtaining the values & values from the table view inside the index.js function and then generating a random colour for each value to be displayed in the pie chart. This generation happens on each page refresh.
You can buy stocks by entering the stock symbol and number of shares. Before this, you may want to use the quote feature below to check the price.
View current stock prices by looking up stocks by their symbol.
Sell stocks by selecting the symbol fromt the list of owned stocks and number of shares you want to sell.
View transaction history including price, date and number of shares bought for any transaction you have made before. The data is saved in an SQLite databse and saved on the server so history is maintained across sessions.
If you are running low on funds, you can deposit as much (fake) money as you like to buy some more stonks!