# AgentFeed Orderbook Imbalance

> AgentFeed Orderbook Imbalance is a paid API for AI agents from x402.ochinimus.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Returns resting bid/ask liquidity in USD within a configurable BPS window around mid-price for any USDT perpetual, plus the imbalance ratio and a directional skew label.

## Facts

- Endpoint: GET https://x402.ochinimus.app/api/orderbook-imbalance?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfeed-orderbook-imbalance-9e71daf2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cLyRAV6LNhw4h2dK4edrB

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 agentfeed-orderbook-imbalance-9e71daf2
```

Example prompt: What's the orderbook imbalance on SOLUSDT right now — check within 50 bps of mid and tell me if it's bid-heavy or ask-heavy and by how much.

## When to prefer this

Use this endpoint when you need a fast, quantified snapshot of resting orderbook liquidity imbalance for a specific USDT perpetual — particularly when assessing directional bias, support/resistance context, or pre-trade market structure. Prefer it over raw exchange APIs when you want a normalized, multi-field summary (ratio + skew label + USD amounts) in a single call, paid per-use with no subscription required.

## Known failure modes

- Invalid or unsupported symbol returns an error — only USDT perp pairs are supported
- BPS value outside the 5–500 range may be rejected or clamped
- Payment not settled (402 response) if x402 payment header is missing or rejected
- Stale or missing exchange data may reduce accuracy of liquidity figures
- Network timeouts possible during high-volatility periods

## How this service works

Orderbook imbalance for any USDT perp: resting bid and ask liquidity in USD within ±N bps of mid, the ratio between the two sides, and a skew read. Use when you need to answer: Which side of the book holds more resting liquidity?

## Output

Returns a JSON object with: the symbol, mid price, window in BPS, total bid-side USD and ask-side USD within that window, the ratio of bid to ask (imbalance_ratio), and a human-readable skew label (e.g. 'bid_heavy (support below)'). Includes a caveat that data reflects visible resting orders only and may be spoofed.

## 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": {
      "bps": {
       "type": "number",
       "description": "window ±bps around mid, 5-500, default 50"
      },
      "symbol": {
       "type": "string",
       "description": "USDT perp symbol e.g. SOLUSDT, BTCUSDT (default SOLUSDT)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "note": {
         "type": "string"
        },
        "skew": {
         "type": "string"
        },
        "symbol": {
         "type": "string"
        },
        "ask_usd": {
         "type": "number"
        },
        "bid_usd": {
         "type": "number"
        },
        "mid_price": {
         "type": "number"
        },
        "window_bps": {
         "type": "number"
        },
        "imbalance_ratio": {
         "type": "number"
        }
       }
      },
      "paid": {
       "type": "boolean"
      },
      "tool": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "note": "visible resting liquidity only — spoofable, read as context not signal",
   "skew": "bid_heavy (support below)",
   "symbol": "SOLUSDT",
   "ask_usd": 8430080,
   "bid_usd": 12875007,
   "mid_price": 121.455,
   "window_bps": 50,
   "imbalance_ratio": 1.527
  },
  "paid": true,
  "tool": "get_orderbook_imbalance"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfeed-orderbook-imbalance-9e71daf2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.ochinimus.app](https://www.zero.xyz/host/x402.ochinimus.app/llms.txt)
