The worst-case exposure of a firm in an instrument is its position plus everything its open orders could still add if they all filled: on the long side, the position plus the remaining quantity of every open buy order, including those whose acknowledgement or cancellation has not arrived; on the short side, the same with sell orders. A limit is respected in the worst case if a new order fits under it on top of this exposure.
bench_risk.py.