For the complete documentation index, see llms.txt. This page is also available as Markdown.

Edit Order

Change the price or quantity of a pending PangoPerps order.

Endpoint

PUT /v1/order

Mainnet: PUT https://api.orderly.org/v1/order

Testnet: PUT https://testnet-api.orderly.org/v1/order

Rate limit: 10 requests per second. This authenticated endpoint updates a pending order identified by its order ID. The supported amendment is limited to changing the order price or order quantity; do not use it to change other order settings. The API key must include the trading scope.

Authentication headers

Send the signed-request headers with every call:

  • orderly-timestamp — request timestamp in milliseconds.

  • orderly-account-id — PangoPerps account ID.

  • orderly-key — public API key.

  • orderly-signature — signature for the request.

  • Content-Type: application/json — identifies the JSON request body.

Request body

The endpoint accepts a JSON object with these fields:

Field
Type
Required
Description

order_id

string

Yes

ID of the pending order to amend.

symbol

string

Yes

Market symbol for the order.

order_type

string

Yes

Order type.

side

string

Yes

Order side.

client_order_id

string

No

Client-assigned order identifier, when used.

order_price

number

No

Updated order price.

order_quantity

number

No

Updated order quantity.

order_amount

number

No

Quote-currency amount for supported order types.

reduce_only

boolean

No

Whether the order may only reduce an existing position.

visible_quantity

number

No

Quantity displayed on the order book.

Only order_price or order_quantity is amendable through this operation. Keep the other order details consistent with the existing order.

Example request

Successful response

HTTP 200 confirms that the edit request was accepted for processing. The response status is EDIT_SENT.

Last updated