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

Cancel All After

Set a timer that cancels all pending regular and algorithmic orders.

#Endpoint

POST /v1/order/cancel_all_after

Mainnet: POST https://api.orderly.org/v1/order/cancel_all_after

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

Rate limit: 1 request per second. This is a dead-man switch: after the configured interval elapses, all of the account's regular and algorithmic orders are cancelled. Access must be enabled for the account before this endpoint can be used.

#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

Field Type Required Description
trigger_after number Yes Timer in milliseconds. Minimum: 5000. Maximum: 900000. Set to 0 to cancel the timer.

#Example request

bash
curl --request POST \
  --url 'https://api.orderly.org/v1/order/cancel_all_after' \
  --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 '{"trigger_after": 5000}'

#Successful response

HTTP 200 returns the expected time at which the timer will trigger.

json
{
  "success": true,
  "data": {
    "expected_trigger_time": "1711534302938"
  },
  "timestamp": 1702989203989
}
PreviousCancel All Pending OrdersNext Batch Cancel Orders

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