Question
i) Design a conceptual model for given below case study ii) Design a Class Diagram for given below case study Case Study: A stock brokerage
i) Design a conceptual model for given below case study
ii) Design a Class Diagram for given below case study
Case Study:
A stock brokerage firm wants to provide an online stock trading service to enable itsclients to make trades via the computer. With this system, a client must first beregistered before he can trade online. The registration process involves the clientproviding his ID number, address and telephone number. A client may open one ormore accounts for stock trading. The stock brokerage firm needs to be registered with astock exchange before its clients can trade the stocks listed on the stock exchange. Astock brokerage firm can be registered with one or more stock exchanges. The stockbrokerage firm may need to pay monthly charges for using the services provided by thestock exchange.
Once registered, the client can buy and sell stocks. The client can check the currentprice, bid price, ask price and traded volume of a stock in real time. The stock price andtraded volume information is provided by the stock exchange on which the stock islisted and traded. When a client issues a buy order for an account, the client mustspecify the stock code, the number of shares and the maximum price (bid price) that heis willing to pay for them. A client must have sufficient funds in his account to settlethe transaction when it is completed. When a client issues a sell order, the client mustspecify the stock code; the number of shares and the minimum price (ask price) that heis willing to sell them. The client must have sufficient number of shares of the stock inhis account before he can issue the sell order. A client can check the status of executionof his (buy or sell) orders.
The client can issue a buy or sell order before the end of the trading day of the stockexchange which processed the order. All trade orders will be forwarded to the stocktrading system of the stock exchange for execution. When an order is completed, thestock trading system of the stock exchange will return the transaction details of theorder to the online stock trading system. The transaction details of a trade order may bea list of transactions, each transaction specifying the price and the number of sharestraded.
For example, the result of a buy order of 20,000 Maybank (stock code: 0005) shares atMYR 12.00 in the Bursa Saham Kuala Lumpur may be as follows:
4,000 shares at MYR 12.00
8,000 shares at MYR 12.50
8,000 shares at MYR 12.75
An order will be kept on the system for execution until the order is completed or theend of a trading day. There are three possible outcomes for a trade order:
i) The trade order is completed. For a buy order, the total amount for the buy orderwill be deducted from the client’s account and the number of shares of the stockpurchased will be deposited into the account. For a sell order, the number ofshares sold will be deducted from the client’s account and proceeds of the sellorder will be deposited into the client’s account.
ii) The trade order is partially completed. The number of shares actually traded(sell or buy) is less than the number of shares specified in the order. The numberof shares successfully traded in the order will be used to calculate the amount ofthe proceeds, and the client’s account is adjusted accordingly.
iii) The trade order is not executed by the end of a trading day. The order will becanceled.
A stock exchange may require that the number of shares specified in an ordermust be in multiples of the lot size of the stock. Each stock has its own lot size.Common lot sizes are 1, 400, 500, 1,000 and 2,000 shares. The client candeposit or withdraw cash or stock shares from his account. Upon the deposit orwithdrawal of cash or stock shares, the account cash or stock balance will beupdated accordingly.
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
Step: 1
client must have sufficient number of shares of the stock in his account before he can issue the sell order A client can check the status of execution ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started