Docs
Launch App

Pangolin Overview

Introduction to Pangolin
Audits
Tokens & Governance
Official Links & Communities
Become a Partner
Support
Roadmap
Privacy Policy & Legal Notices

Guides

Swapping Tokens
Providing Liquidity
Managing Liquidity Positions
Withdrawing Liquidity
Earning Rewards
Understanding SAR

Developers

Contracts & Integration Reference
APIs
Bug Bounty
Token Listing
Create A Multisig
Honeycomb↗

PangoPerps

API fundamentals
Public Info API
User API
Trading API
Order Management
Create Order
Batch Create Order
Cancel Order
Cancel Algo Order
Cancel Order by Client Order ID
Edit Order
Edit Algo Order
Cancel Algo Order by Client Order ID
Cancel All Pending Algo Orders
Cancel All Pending Orders
Cancel All After
Batch Cancel Orders
Batch Cancel Orders by Client Order ID
Get Order by Order ID
Get Order by Client Order ID
Create Algo Order
Get Algo Order by Order ID
Get Algo Order by Client Order ID
Get Orders
Get Algo Orders
Get Trades
Get Trade
Get Trades for an Order
Get Trades for an Algo Order
List PangoPerps Order Tags
Get One PangoPerps Order Tag
Liquidations
Assets/withdraw/settle PnL
Positions
Funding
PangoPerpsTrading APIOrder Management

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

bash
curl --request PUT \
  --url 'https://api.orderly.org/v1/order' \
  --header 'Content-Type: application/json' \
  --header 'orderly-account-id: <account-id>' \
  --header 'orderly-key: <public-api-key>' \
  --header 'orderly-signature: <signature>' \
  --header 'orderly-timestamp: <timestamp-in-ms>' \
  --data '{
    "order_id": "123456789",
    "symbol": "PERP_ETH_USDC",
    "order_type": "LIMIT",
    "side": "BUY",
    "order_price": 3450.5
  }'

#Successful response

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

json
{
  "success": true,
  "data": {
    "status": "EDIT_SENT"
  },
  "timestamp": 1702989203989
}
PreviousCancel Order by Client Order IDNext Edit Algo Order

On this page

  • Endpoint
  • Authentication headers
  • Request body
  • Example request
  • Successful response

Try it on Pangolin

Everything in these docs is live in the app.

SwapLiquidityStakePerps

Need help?

DiscordTelegramX