Replace Order
Orders
Replace Order
Atomically cancel and re-place an open order
PUT
Replace Order
Overview
Atomically cancel an existing open order and submit a new one in its place. The matching engine performs both steps in one operation, so you never end up holding both. Useful for amending limit orders as the market moves. The replacement is a new order, not a mutation — the response returns a fresh order ID. Track that ID for follow-up cancels and webhook events. Requires Trade scope. Only orders that are still resting (statusopen or partially_filled) can be replaced — terminal orders return 404.
Authentication
Your API key with Trade scope
Path Parameters
Order ID (UUID) to replace
Request Body
Order side for the new order.Allowed values:
buy, sellOrder type for the new order.Allowed values:
limit, marketQuantity for the new order.Example:
120.00Limit price (required when
type is limit).Example: 1550.00Request Example
Response
Same shape as Get Order. The returnedid is the new order — track it for follow-up cancels and webhook events.
Error Responses
| Code | Meaning |
|---|---|
400 | Invalid body — missing side/type/quantity, or price supplied for a market order |
403 | API key missing Trade scope, or account frozen |
404 | Order not found, or already terminal |