# ACODA Recent Liquidations

> ACODA Recent Liquidations is a paid API for AI agents from acoda.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns recent perpetual futures liquidation events from CEX exchanges and Hyperliquid, filtered by market, with price, notional size, side, and position direction.

## Facts

- Endpoint: GET https://acoda.xyz/v1/liquidations/recent
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/acoda-recent-liquidations-4250041d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3JrAyOwf6tCIo0SlFiaUt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability acoda-recent-liquidations-4250041d
```

Example prompt: Pull the last 50 BTC-USDT-PERP liquidation events from ACODA — I want to see which exchanges they hit, whether longs or shorts got wiped, and the notional sizes.

## When to prefer this

Choose this endpoint when you need structured, per-event liquidation data with exchange attribution and position direction (long vs short) for BTC, ETH, or SOL perpetual futures. It is the right choice for trading agents that need real-time forced-liquidation signals, cascade detection, or market stress indicators. Prefer it over generic market data APIs when you specifically need liquidation events with notional sizing and Hyperliquid position-level context.

## Known failure modes

- Invalid or unsupported market symbol returns an error — only BTC-USDT-PERP, ETH-USDT-PERP, SOL-USDT-PERP are accepted
- Missing payment header returns HTTP 402 Payment Required — caller must attach x402 USDC payment of $0.02
- Limit parameter ignored or defaulted to 100 if not provided or out of range
- Upstream CEX or Hyperliquid feed outage may return stale or empty liquidation arrays
- Rate limiting or payment failure may result in 402 or 429 responses

## How this service works

Measured liquidation intelligence combining observed CEX liquidation events with position-level data from Hyperliquid, the largest transparent perp venue. A pay-per-call JSON API for AI trading agents.

## Output

A JSON array of recent liquidation events, each containing: exchange name, market symbol, event timestamp in milliseconds, liquidated side (buy/sell), position direction (long/short), price at liquidation, quantity in base asset, and notional USD value. Results are scoped to the requested market and limited to the specified count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "string",
       "description": "Max events (default 100)"
      },
      "market": {
       "enum": [
        "BTC-USDT-PERP",
        "ETH-USDT-PERP",
        "SOL-USDT-PERP"
       ],
       "type": "string",
       "description": "Perp market (canonical BASE-QUOTE-PERP)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "paid": true,
  "market": "BTC-USDT-PERP",
  "liquidations": [
   {
    "side": "SELL",
    "price": 63297.9,
    "exchange": "okx",
    "notional_usd": 33547.89,
    "event_time_ms": 1786546838548,
    "quantity_base": 0.53,
    "liquidated_position": "long"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/acoda-recent-liquidations-4250041d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acoda.xyz](https://www.zero.xyz/host/acoda.xyz/llms.txt)
