Object-Oriented Programming · Akuna Capital · Hard
Requirements Build a trading-record component that accepts three operation types: Add a buy order with a price and quantity. Add a sell order with a price and quantity. Remove some quantity from a buy or sell price level. After each operation, report the best buy quote and the best sell quote. For each side, include both the selected price and the total quantity currently available at that price. Buy orders and sell orders are independent. Orders never match, cancel one…
Checking your access…