capabilities.work

Flatten Open Orders on a Market

A 3-step recipe with Backpack. We can help you get access.

Recipe · 3 steps

Flatten Open Orders on a Market

Cancel all open orders on a single market and confirm none remain.

  1. List the open orders for the market so the caller knows what will be cancelled.
  2. Cancel all open orders on the specified market.
  3. Re-list the open orders for the market to confirm none remain after the bulk cancel.
What you'll need to have ready
  • symbol: The market symbol to flatten (e.g. SOL_USDC).
  • apiKey: Base64 encoded ED25519 verifying key for the X-API-KEY header.
  • signature: Base64 encoded ED25519 signature for the X-SIGNATURE header.
  • timestamp: Unix time in milliseconds for the X-TIMESTAMP header.
  • window: Request validity window in milliseconds for the X-WINDOW header (default 5000).
For your developer

Arazzo workflow backpack:flatten-market-orders, 3 operations: get_open_orders → cancel_open_orders → get_open_orders. Specs on APIs.io.