run server: open .sln file using visual studio, press play. should run on "https://localhost:7072/". including swagger to view http requests for api.
information: allows traders to purchase or sell stocks to the market at the current price. allow traders to trade between each other for prices different than current stock price.
shares http request:
- GetShare, get share information by id.
- GetAllShares, get all the shares information.
- GetAllTransactions, gets all the transactions made in the broker app.
- Get10Transactions, gets the last 10 transaction.
- Share10Transactions, gets the last 10 transactions by stock id.
- GetShareOpenRequests, gets all open share requests by stock id.
- GetAllOpenRequests, gets all open share requests.
- ShareRequest, posts a share request, buys or sell if the prices match the current stock price, otherwise open a request to allow traders to interact.
- CancelRequest, cancels a share request by request id.
- TransferFunds, makes a trade between two traders by share request id and trader id (the latter does the opposite of the request purchase type)
traders http request:
- GetTrader, gets the trader information by id.
- GetAllTraders, gets all the traders information from db.
- GetTraderTransactions, gets all the trader transaction by trader id.
- Get8Transactions, gets the last 8 transaction made by the trader.
- GetTraderOpenRequests, gets all the traders open requests by trader id.
stocks background service: not working. tried to make but could do updates well.
run client: cd to the folder, open cmd, run "npm install" then run "npm serve" to run the server, should run on "http://localhost:4200/"
information: connection page: allow connection by http request to the server.
trading page: allows the user to see all the stocks prices and available for purchase from the market (not from other traders)
share page: allows user to see the 10 last transactions on the stock, see open transactions and interact with them, make new share requests.
traders page: allows the user to see all traders names and ids, allow to see the last 10 transactions made by all users, allows the user to see all the open transactions.
personal page: allows the user to see all the funds and stocks he has. also he can see his last 8 transactions and open transaction. if the user has stocks he would be able to see the stocks in a pie chart to see how many stocks he has by amount!!, not by prices.