Modify active order
PATCH/v1/trading/accounts/:account_id/orders/:order_id
Modifies active pending or SLTP order parameters.
Runtime restrictions:
- unavailable if trade_mode is trading_disabled
- unavailable if account_status is close_only
Supported changes:
- price
- stop_loss_price
- take_profit_price
For stop_loss_price and take_profit_price:
- omitted field is not changed
- string value sets a new SL/TP price
nullremoves the corresponding SL/TP value
The method returns ACK response. Final transaction result is delivered through Server Events.
Consistency and recovery notes:
- Closed positions and final-state orders are retained for 1 month (subject to clarification).
- If
operation_idis not received in the REST ACK response, or is not received in Server events subscription, or an unknownoperation_idis received, the client should restart Server events subscription and reconcile state using snapshots of currently open positions and pending orders.
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 429
- 500
- 503
ACK
Bad Request.
Possible public error codes include:
REQUEST_INVALIDREQUEST_INVALID_PARAMETERSREQUEST_INVALID_PRICEREQUEST_INVALID_TIMEFRAMEREQUEST_INVALID_TIME_RANGEREQUEST_INVALID_COUNTREQUEST_INVALID_LIMITREQUEST_INVALID_CURSORREQUEST_INVALID_PRICE_TYPEREQUEST_INVALID_FILTER_COMBINATIONREQUEST_UNSUPPORTED_MEDIA_TYPE
Authentication failed.
Possible public error codes include:
AUTH_INVALID_API_KEYAUTH_INVALID_SIGNATURE
Operation is not permitted for the authenticated API key, account, source IP, or operation scope.
Possible public error codes include:
AUTH_PERMISSION_DENIEDACCOUNT_DISABLEDACCOUNT_CLOSE_ONLY
Account not found
Public API endpoint quota exceeded.
REQUEST_RATE_LIMIT is non-retryable automatically. Clients should use
GET /v1/configuration/accounts/{account_id}/limits and local request accounting
to calculate remaining quota before sending more requests.
Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.
Service temporarily unavailable.
Possible public error codes include:
SYSTEM_TEMPORARY_UNAVAILABLEMARKET_NO_QUOTES