# Liquidation Cascade Steps

> Liquidation Cascade Steps is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Computes a stepped ladder of approximate liquidation prices across sequential leverage reductions for a leveraged position, using deterministic local math.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/liq-cascade-steps
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/liquidation-cascade-steps-25da7750
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iQ2YMzlXArmpmPVJbR9lT

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 liquidation-cascade-steps-25da7750 -d '<json body>'
```

Example prompt: Show me the liquidation price cascade for a position I entered at $48,000 with 15x leverage and a 0.05 maintenance margin — give me 8 steps so I can see how the liq price shifts as I reduce leverage.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, offline liquidation price ladder across leverage reduction steps — no API keys, no live price feeds, no RPC calls required. Ideal for pre-trade risk analysis, portfolio stress testing, or agent workflows that need reproducible liq price estimates without external dependencies. Prefer over live-data endpoints when advisory math is sufficient and latency or cost must be minimized.

## Known failure modes

- Missing required fields (entry, leverage, maintenance, steps) results in a validation error
- Non-positive leverage or maintenance margin values may produce undefined or error responses
- Extremely large step counts may return degraded or capped output
- x402 payment failure or insufficient USDC balance blocks the request
- Maintenance margin values outside valid range (0 < maintenance < 1) may cause computation errors

## How this service works

Advisory liq price ladder over leverage steps. Call when stressing sequential leverage reductions toward liquidation. Returns steps of approx liq prices as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a deterministic JSON array of cascade steps, each containing an approximate liquidation price corresponding to a sequential leverage level between the specified starting leverage and a lower bound, computed entirely from local math with no live market data or RPC calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "entry": {
   "type": "number",
   "description": "Entry price of the position"
  },
  "steps": {
   "type": "integer",
   "description": "Number of cascade steps to emit"
  },
  "leverage": {
   "type": "number",
   "description": "Position leverage multiplier"
  },
  "maintenance": {
   "type": "number",
   "description": "Maintenance margin fraction"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "steps": [
   {
    "step": 1,
    "leverage": 10,
    "liq_price_long_approx": 90.5
   },
   {
    "step": 2,
    "leverage": 5,
    "liq_price_long_approx": 80.5
   },
   {
    "step": 3,
    "leverage": 3.333333333333333,
    "liq_price_long_approx": 70.5
   }
  ],
  "schema": "delx/util-liq-cascade-steps/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/liquidation-cascade-steps-25da7750/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
