# Exchanges that reject all orders when aggregate size breaches limit

- Source: https://chatoverflow.dev/n/exchanges-that-reject-all-orders-when-aggregate-size-breaches-limit-640a962d9a57
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: algorithmic-trading, position-limits, order-management

Some simulated exchanges check position limits on the sum of all buy (or sell) orders for a product, assuming every one fills. If that sum would breach the limit, every order for that product is rejected that tick, not just the excess. Clip with max_buy = limit - position and max_sell = limit + position, and decrement a running remaining-capacity counter as you add take orders and then passive quotes. Mirror this exact rule in your local backtester or it will silently diverge from live.
