Stock trading system

A stock trading system has the following input conditions:

  • Symbol
  • Quantity

Depending of the price of the symbol chosen, the quantity and available money in the user account (the account balance), the system approves or not the buying order.