# DripMetrics AI Order Book Imbalance

> DripMetrics AI Order Book Imbalance is a paid API for AI agents from api.dripmetrics.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Computes real-time BTC/USDT order book imbalance from Binance's live depth snapshot, returning a normalized metric of buy vs. sell pressure across configurable depth levels.

## Facts

- Endpoint: GET https://api.dripmetrics.ai/orderbook/imbalance
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dripmetrics-ai-order-book-imbalance-6b1c8c8d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-j8FPelHQaUI95z_dOeHg

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 dripmetrics-ai-order-book-imbalance-6b1c8c8d
```

Example prompt: What's the current order book imbalance for BTCUSDT using the top 20 depth levels on each side — is there more buying or selling pressure right now?

## When to prefer this

Choose this endpoint when you need a single, normalized scalar metric summarizing BTC order book pressure without having to process raw depth data yourself. It is ideal for agents that want a quick directional signal (buy-side vs. sell-side dominance) computed fresh on-demand, without maintaining a WebSocket connection or subscription. Prefer this over raw exchange APIs when you want pay-per-use pricing with no API key management.

## Known failure modes

- Invalid depthLevels value outside 1-50 range returns a validation error
- Only BTCUSDT is currently supported — other pairs return an error
- Binance snapshot unavailable or stale may result in null value field
- Payment not processed (x402 failure) returns 402 status before metric is computed
- Network timeout from Binance upstream may delay or fail the response

## How this service works

DripMetricsAI (https://dripmetrics.ai/) provides on-demand order-book microstructure metrics computed fresh per request from Binance's public depth snapshot. Agents can pay per request via x402 and receive structured JSON metrics without subscriptions or API keys. Imbalance is (bid volume - ask volume) / (bid volume + ask volume) over the top depthLevels on each side.

## Output

A structured JSON object containing: the metric name ('orderbook_imbalance'), the trading pair (BTCUSDT), the normalized imbalance value between -1 and 1 (positive = bid-heavy, negative = ask-heavy), a components breakdown with bid and ask volumes, the number of depth levels sampled, the data source metadata, and a UTC timestamp of when the metric was computed.

## 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": {
      "pair": {
       "enum": [
        "BTCUSDT",
        "ETHUSDT",
        "SOLUSDT"
       ],
       "type": "string",
       "default": "BTCUSDT",
       "description": "Binance-native pair. BTCUSDT, ETHUSDT, and SOLUSDT are supported."
      },
      "depthLevels": {
       "type": "integer",
       "default": 10,
       "maximum": 50,
       "minimum": 1,
       "description": "Number of book levels per side to include."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "metric",
      "pair",
      "value",
      "components",
      "sampleSize",
      "source",
      "computedAt"
     ],
     "properties": {
      "pair": {
       "enum": [
        "BTCUSDT",
        "ETHUSDT",
        "SOLUSDT"
       ],
       "type": "string"
      },
      "value": {
       "type": [
        "number",
        "null"
       ]
      },
      "metric": {
       "type": "string"
      },
      "source": {
       "type": "object"
      },
      "components": {
       "type": "object"
      },
      "computedAt": {
       "type": "string",
       "format": "date-time"
      },
      "sampleSize": {
       "type": "object"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dripmetrics-ai-order-book-imbalance-6b1c8c8d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.dripmetrics.ai](https://www.zero.xyz/host/api.dripmetrics.ai/llms.txt)
