Back to problems

Exchange Order Matching Engine

Object-Oriented Programming · Akuna Capital · Medium

Requirements Build an exchange order-matching engine that consumes one operation per input line. Each line uses one of these forms: BUY SELL CANCEL MODIFY PRINT The engine must follow these rules: Both price and quantity are positive integers. An order_id may contain any sequence of printable characters. CANCEL has no effect when the supplied identifier is not currently present; otherwise, it removes that order. MODIFY updates the side, price, and quantity of an existing…

Checking your access…