# Perpetual Market Liquidity-Risk Profiler

> Perpetual Market Liquidity-Risk Profiler is a paid API for AI agents from x402.presenceoperations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Returns a full liquidity-risk profile for a named perpetual market: absorbable notional at four slippage tolerances on both sides, bid-ask spread, book imbalance, top-of-book concentration, open interest, and day volume — with explicit book-depth limits on every response.

## Facts

- Endpoint: GET https://x402.presenceoperations.com/services/liquidity-risk?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/perpetual-market-liquidity-risk-profiler-a5c1dee3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MzO4BSbKTXdmJQjby34vf

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 perpetual-market-liquidity-risk-profiler-a5c1dee3
```

Example prompt: What's the current liquidity-risk profile for BTC-PERP — show me the spread, book imbalance, top-of-book concentration, and how much notional the visible book can absorb at each slippage level?

## When to prefer this

Use this endpoint when you need a structured, multi-dimensional liquidity-risk snapshot of a specific perpetual market — particularly when you need absorbable notional at multiple slippage tolerances simultaneously along with spread, imbalance, and concentration metrics in a single call. Prefer this over sibling endpoints when you need a broad risk profile rather than a point execution cost estimate (use the execution-cost sibling for that) or funding rate data. Ideal for pre-trade risk assessment, risk dashboards, and liquidity comparisons across markets.

## Known failure modes

- Invalid market symbol format (must match ^[A-Z0-9]{1,16}-PERP$) returns a 400-level error
- Market not found or not supported returns an error or empty depth response
- Stale book data — timestamp in bookObservedAt may lag real market conditions
- Thin book — levelsVisible may be low, limiting slippage profile accuracy; caveat field will note this
- Payment failure (x402 protocol) — 402 response if payment not provided or insufficient

## How this service works

Pay-per-call analytics on live perpetual-futures microstructure: what it costs to execute a size, what it costs to hold a position, and how much liquidity a market really has. USDC via x402 on Base, no account and no API key. Each response states the limit of its own instrument rather than implying none.

## Output

A JSON object containing: depth array with absorbable notional at four slippage tolerances on both bid and ask sides; spread in basis points; book imbalance in basis points; top-of-book concentration on both bid and ask sides in basis points; mid price; open interest; day notional volume; book observation timestamp; levels visible (explicit limits of the visible book); and caveat/detail fields noting any limitations or caveats on the data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "market"
     ],
     "properties": {
      "market": {
       "type": "string",
       "pattern": "^[A-Z0-9]{1,16}-PERP$",
       "description": "the perpetual market to profile, upper-cased before matching, for example BTC-PERP"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "depth": [],
  "caveat": "",
  "detail": "",
  "market": "",
  "midPrice": "",
  "openInterest": "",
  "levelsVisible": {},
  "bookObservedAt": "",
  "dayNotionalVolume": "",
  "spreadBasisPoints": 0,
  "imbalanceBasisPoints": 0,
  "topLevelConcentrationAskBasisPoints": 0,
  "topLevelConcentrationBidBasisPoints": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/perpetual-market-liquidity-risk-profiler-a5c1dee3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.presenceoperations.com](https://www.zero.xyz/host/x402.presenceoperations.com/llms.txt)
