Skip to main content
PATCH
Amend Stop 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

The stop order's internal order ID

Example:

"3f1c2b9a7d4e4f6a8b0c1d2e3f4a5b6c"

Body

application/json

Send triggerPrice, quantity, or both. Any other field returns amend_field_not_supported.

version
integer
required

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

Required range: x >= 0
Example:

0

triggerPrice
string

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

Example:

"195.00"

quantity
string

New quantity of an untriggered stop order that closes part of the position, aligned to the market's size increment and no larger than the position. Omit to keep the current quantity. A stop order that closes the whole position, and a pending stop order, which has its order's size, return amend_field_not_supported.

Example:

"0.5"

Response

Amended stop 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