Spot trading

Cancel Spot batch

Changed on

Cancel 1–20 exchange IDs or client:-prefixed IDs. Inspect successfulCancels and failedCancels; this is not an atomic cancel-and-replace.

See the Spot API guide. Requires authentication; API-key scope: trade.

delete/v1/spot/orders/batch

Request

  • Base URL
    https://api.ondoperps.xyz
  • URL
    https://api.ondoperps.xyz/v1/spot/orders/batch
  • Auth
    • HTTP bearer
    • or API key in header ONDO-KEY-ID

Query parameters

orderIDsstring required
Example:order1,client:my-order2

Comma-separated order identifiers; URL-encode the query.

Response

Success. Inspect item-level outcomes for batch operations.

successboolean required

Example response

{
  "result": {
    "successfulCancels": [
      {
        "orderId": "70a37d8f972f2494837f9dba8364cbb4",
        "clientOrderId": "order123",
        "side": "buy",
        "price": "1.55",
        "size": "20.30",
        "market": "SPY-USDC",
        "filledSize": "5.403",
        "lastFillSize": "5.403",
        "filledCost": "8.37465",
        "fee": "0.0837",
        "status": "open",
        "createdAt": "2022-06-16T12:35:11.123456Z",
        "filledAt": "2022-06-16T12:35:11.123456Z",
        "canceledAt": "2022-06-16T12:35:11.123456Z",
        "cancelReason": "liquidation",
        "type": "limit",
        "timeInForce": "GTC"
      }
    ]
  }
}

Changes