reduceOnly) can only shrink a position. It cannot open one, add to one, or flip you to the other side. Resting reduce-only orders share the position as closing capacity. They reserve no margin, but they may be reduced or cancelled when that capacity changes.
Rules
The size check is per order, not on the total. You can rest several reduce-only orders at different prices that together exceed your position, for example to scale out.
Capacity allocation
Capacity is assigned to market orders first, then by price-time priority. A lower sell price or higher buy price has priority. At the same price, the earlier order has priority. If the reduce-only size included in an allocation exceeds the position, higher-priority orders keep their size. The boundary order is reduced to the remaining capacity. Orders with no capacity left are cancelled. Active reduce-only stop and take-profit orders can enter this calculation before they trigger. Ordinary closing orders without the flag do not enter the reduce-only capacity pool.A fill
A stop firing
Liquidation
Deleveraging
The position shrinkshowever it shrank
Reduce-only total now exceeds it?
No change
Trimmed to fit
Counted in the totalTriggered stops and take-profits carrying the flag
Not countedOrdinary orders that merely happen to close