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

Batch Cancel Orders

Cancel up to 10 pending orders in one request using their order IDs.

#Endpoint

DELETE /v1/batch-order?order_ids={order_id1},{order_id2}

Mainnet: DELETE https://api.orderly.org/v1/batch-order?order_ids={order_id1},{order_id2}

Testnet: DELETE https://testnet-api.orderly.org/v1/batch-order?order_ids={order_id1},{order_id2}

Rate limit: 10 requests per second. Provide a comma-separated list of up to 10 order IDs. The API key must include the trading scope. An empty list or a list where every ID is invalid returns an invalid order ID error.

#Authentication headers

  • orderly-timestamp — signed-request timestamp in milliseconds.
  • orderly-account-id — PangoPerps account ID.
  • orderly-key — public API key.
  • orderly-signature — request signature.

#Query parameters

Parameter Type Required Description
order_ids string Yes Comma-separated order IDs; maximum 10 IDs per request.

#Example request

bash
curl --request DELETE \
  --url 'https://api.orderly.org/v1/batch-order?order_ids=123456789,123456790' \
  --header 'orderly-account-id: <account-id>' \
  --header 'orderly-key: <public-api-key>' \
  --header 'orderly-signature: <signature>' \
  --header 'orderly-timestamp: <timestamp-in-ms>'

#Successful response

HTTP 200 returns CANCEL_ALL_SENT when the batch cancellation request is sent.

json
{
  "success": true,
  "data": {
    "status": "CANCEL_ALL_SENT"
  },
  "timestamp": 1702989203989
}
PreviousCancel All AfterNext Batch Cancel Orders by Client Order ID

On this page

  • Endpoint
  • Authentication headers
  • Query parameters
  • Example request
  • Successful response

Try it on Pangolin

Everything in these docs is live in the app.

SwapLiquidityStakePerps

Need help?

DiscordTelegramX