$FILOBuy on Pons

Batches

Cancel a batch

Cancel every open order in the batch.

POST/v1/batches/:id/cancel

Owner only. Open orders become cancelled; filled and expired orders are left as they are. Nothing is paid for cancelled orders.

Headers

Authorizationstringrequired

Bearer fb_live_…. An API key created in the app. A browser session cookie also works. See Authentication.

Errors

403forbidden

Not your batch.

404not_found

No such batch.

Request
curl -X POST https://dapp.filobook.run/v1/batches/bat_2f9c41d07e6a83b5/cancel \
  -H "Authorization: Bearer $FILOBOOK_KEY"
Response · 200
{
  "id": "bat_2f9c41d07e6a83b5",
  "agent": "0x7fcfe1806936b8fe3a04f6d9c0dffb0d455bb514",
  "created_at": "2026-11-14T06:17:02.000Z",
  "summary": { "orders": 2, "open": 0, "filled": 0, "expired": 0, "cancelled": 2, "spent": "0", "saved": "0" },
  "orders": [
    { "id": "ord_5b8e02c4f1a97d36", "request": "BTC-USD last trade, JSON", "batch_id": "bat_2f9c41d07e6a83b5", "status": "cancelled", "...": "..." },
    { "id": "ord_c13a9f60e72b4d58", "request": "ETH-USD last trade, JSON", "batch_id": "bat_2f9c41d07e6a83b5", "status": "cancelled", "...": "..." }
  ]
}
Was this page helpful?