Skip to main content
PATCH
Amend Order

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orderID
string
required

Internal order ID, or client:{clientOrderID} for client order ID lookup

Example:

"197ec08e001658690721be129e7fa595"

Body

application/json

Send size, price, or both. Any other field returns amend_field_not_supported.

version
integer
required

The order's version from your latest view of it: the number of times it has been amended, 0 if never. If the order was amended since, the request returns amend_version_mismatch.

Required range: x >= 0
Example:

0

size
string

New total order size in base currency, including any quantity already filled. Must be greater than the order's filledSize and aligned to the market's size increment. Omit to keep the current size.

Example:

"12.00"

price
string

New limit price, aligned to the market's price increment. Omit to keep the current price.

Example:

"228.00"

postOnly
boolean
default:false

If true, the amend returns post_only_has_match instead of trading when the new price would match. Applies to this amend only and does not change the order's own post-only setting. An order placed as post-only is always amended as post-only, so false does not let it trade.

Example:

false

Response

Amended order

success
boolean
required

Whether the request was successful

Example:

true

error
string

Error message, present only on failure

Example:

""

error_code
string

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecated
string

Deprecation notice, if applicable

Example:

""

result
object