AI Coding · Hudson River Trading · Medium
You join the team that owns ordergate, an existing C++17 order management system with a Client and a Server. It already supports two operations: add a new order (AddOrder(order_id, symbol, side, price, quantity)) and cancel an existing one (CancelOrder(order_id)). The server keeps every order in memory, keyed by order_id. Your task is to add a third operation, modify: ModifyOrder(order_id, new_price, new_quantity). Plan for about one hour; copying and adapting the add /…