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 Algo Order

Update a pending algorithmic order and its child orders.

#Endpoint

PUT /v1/algo/order

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

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

Rate limit: 5 requests per second. Use this signed endpoint to amend a pending algorithmic order by its order ID. Only the price or quantity can be changed. The API key must have the trading scope.

#Authentication headers

  • orderly-timestamp — signed-request timestamp in milliseconds.
  • orderly-account-id — PangoPerps account ID.
  • orderly-key — public API key.
  • orderly-signature — request signature.
  • Content-Type: application/json — JSON request body.

#Request body

Send a JSON object. The root order ID is required; the other fields are available for updating the order or its trigger/child-order configuration.

Field Type Required Description
order_id string Yes ID of the pending algorithmic order.
price number No Updated order price.
quantity number No Updated order quantity.
trigger_price number No Updated trigger price.
trigger_price_type string No Price source used for the trigger.
child_orders object[] No Child order updates, represented as an array of child-order objects.

A child order can include order_id, trigger_price, price, quantity, is_activated, trigger_price_type, and nested child_orders. The endpoint description limits amendments to the order's price or quantity; trigger and child fields are part of the documented request schema for algorithmic orders.

#Example request

bash
curl --request PUT \
  --url 'https://api.orderly.org/v1/algo/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",
    "price": 3450.5,
    "quantity": 0.25,
    "trigger_price": 3400,
    "trigger_price_type": "MARK_PRICE",
    "child_orders": [
      {
        "order_id": "987654321",
        "trigger_price": 3600,
        "price": 3600,
        "quantity": 0.25,
        "is_activated": "false",
        "trigger_price_type": "MARK_PRICE",
        "child_orders": []
      }
    ]
  }'

#Successful response

HTTP 200 returns an EDIT_SENT status when the edit request is sent for processing.

json
{
  "success": true,
  "data": {
    "status": "EDIT_SENT"
  },
  "timestamp": 1702989203989
}
PreviousEdit OrderNext Cancel Algo Order by Client Order ID

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