About this question

Pre-Trade Risk Limit Checker

Medium · architecture & logic · Quant Developer interview question · c++, simulation, hash-table, design, trading

In electronic trading systems, pre-trade risk checks are critical to prevent erroneous orders from reaching the exchange and causing severe financial loss. A pre-trade risk limit checker evaluates every incoming order in microseconds to ensure it complies with established trading limits such as maximum order size, notional value, position, and daily volume. Task Implement a RiskLimitChecker class that validates incoming orders against four global risk limits. The class must be initialized with