Skip to main content
You can change the price and the size of an order that has not fully filled. What happens underneath depends on which change you make, and the difference has real consequences for where you sit in the queue.

Two paths

Size means remaining size
Modify request
What changed?
Size decreased onlyEdited in place — queue position kept
Price changed, or size increasedCancel, then place a new order — queue position lost
An order for 10 that filled 4 has 6 remaining
Change it to 5 — a decrease
Change it to 8 — an increase, though it is under the original 10
The replace path is ordered, not atomicThe new order is only attempted if the cancel succeeded, and it can still fail on margin — leaving you cancelled and not resting.
Decreasing size is edited in place. The order stays where it is on the book and keeps its priority. Nothing is cancelled and nothing is re-placed. Everything else is a cancel followed by a new order. A change of price genuinely cannot keep your place: a different price is a different position in the book. A size increase is different — the added quantity was never queued, but the quantity already resting was. Today the whole order is re-placed regardless, so an increase costs you the priority you had on the original size as well. This split is deliberate, and it differs from venues that treat every modification as cancel-and-replace. Shrinking an order asks for strictly less than what you already had priority for, so there is no reason to make you pay for it.

Why queue position matters

At a given price level, orders fill in the order they arrived. An order at the front of a level fills before one behind it — and at a busy level, the difference between front and back is the difference between filling and watching the market leave. For a market maker this is the whole game. Reducing your size to manage risk without losing your place is materially different from having to re-queue behind everyone who arrived while you were deciding.

What “size” means here

Size comparisons use remaining size, not the size you originally submitted. An order for 10 that has filled 4 has 6 remaining. Changing it to 5 is a decrease — edited in place. Changing it to 8 is an increase relative to 6, even though it is less than the original 10 — cancel and replace.

The cancel-and-replace path can partially fail

When a modification takes the cancel-and-replace path, the two steps are ordered but not atomic:
  • The new order is only attempted if the cancel succeeded. You cannot end up with both.
  • The new order can still fail — most often on margin, since the market may have moved between the two steps.
Which means one outcome is possible and worth planning for: the original order is cancelled and the replacement does not exist. You are not double-filled, but you are not resting either.
For anything time-sensitive, do not assume a modification succeeded. Confirm the resulting order exists before acting on the assumption that you still have a live order at that level.

Timing

An in-place size decrease applies in the current block — there is no waiting. Price changes and size increases go through the two-step path and are subject to the same sequencing as any cancel and any new order. The cancel runs in the cancellation phase, ahead of aggressive orders in the same block, which is what stops your stale quote from being picked off by an order that arrived alongside your modification. Time-in-force carries over: a modified order keeps the same time-in-force, and it still governs the replacement.

Practical notes

  • Shrink freely. It is cheap and costs nothing in priority.
  • Treat a price change as a new order, because it is one.
  • Use client order IDs if you modify programmatically. They let you confirm what exists after an ambiguous response rather than inferring it.
  • Cancel and re-place explicitly when you are changing several fields at once — you get the same result with clearer failure handling.

Where to go next

Order book

How price-time priority determines fill order at a level.

Transaction sequencing

Why cancels execute before aggressive orders in the same block.

Client order ID

Confirming what exists after an ambiguous response.

Order types

Time-in-force, and what carries over through a modification.