# DripMetrics AI Order Book Snapshot

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

Fetches a fresh Binance order book snapshot and returns computed microstructure metrics including spread, micro-price, imbalance, depth-at-distance, concentration, and execution impact in a single call.

## Facts

- Endpoint: GET https://api.dripmetrics.ai/orderbook/snapshot
- Price: $0.25/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-snapshot-5f2b6a84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8bMA3BSPEoTKijDa0mlTn

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-snapshot-5f2b6a84
```

Example prompt: Pull a fresh order book snapshot for BTCUSDT and tell me the spread, imbalance, and how much slippage I'd face buying $50,000 worth — use 10 depth levels and look 50 bps from mid.

## When to prefer this

Choose this endpoint when you need a comprehensive snapshot of order book microstructure metrics for BTC, ETH, or SOL on Binance in a single call without managing subscriptions or API keys. It is ideal for pre-trade analysis, execution-impact estimation, and liquidity assessment because it bundles multiple computed metrics (spread, imbalance, depth, concentration, micro-price) from one shared book fetch. Prefer alternatives if you need tick-by-tick streaming data, historical order book data, or support for trading pairs beyond the three currently offered.

## Known failure modes

- Unsupported trading pair returns a validation error — only BTCUSDT, ETHUSDT, and SOLUSDT are accepted
- Providing both sizeBtc and notionalUsd simultaneously returns an error — exactly one must be provided
- sizeBtc below 0.001 or above 50, or notionalUsd below $10 or above $2,000,000, fails schema validation
- bpsDistance outside 1–2000 or depthLevels outside 1–50 returns parameter validation errors
- x402 payment failure (insufficient USDC balance) results in 402 response with no data returned
- Binance API unavailability may cause a downstream fetch failure

## 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. Snapshot bundles spread, micro-price, imbalance, depth-at-distance, concentration, and execution-impact from one shared book fetch, in a single call.

## Output

A structured JSON object containing the trading pair, a named metric string, a numeric value, a components breakdown (spread, micro-price, imbalance, depth-at-distance, concentration, execution-impact), sample size details, data source info, and an ISO 8601 computedAt timestamp — all derived from a single shared Binance depth snapshot fetch.

## 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."
      },
      "side": {
       "enum": [
        "buy",
        "sell"
       ],
       "type": "string",
       "description": "Direction of the hypothetical order."
      },
      "sizeBtc": {
       "type": "number",
       "maximum": 50000,
       "minimum": 0.001,
       "deprecated": true,
       "description": "Deprecated alias for sizeBase. Despite its name, it is interpreted as units of the selected pair's base asset."
      },
      "sizeBase": {
       "type": "number",
       "maximum": 50000,
       "minimum": 0.001,
       "description": "Order size in units of the selected pair's base asset. Bounds: BTC 0.001-50, ETH 0.01-1000, SOL 0.1-50000. Provide exactly one of sizeBase, sizeBtc, or notionalUsd."
      },
      "bpsDistance": {
       "type": "number",
       "default": 50,
       "maximum": 2000,
       "minimum": 1,
       "description": "Distance from mid price, in basis points."
      },
      "depthLevels": {
       "type": "integer",
       "default": 10,
       "maximum": 50,
       "minimum": 1,
       "description": "Number of book levels per side to include."
      },
      "notionalUsd": {
       "type": "number",
       "maximum": 2000000,
       "minimum": 10,
       "description": "Order size in USD notional. Provide exactly one of sizeBase, sizeBtc, or notionalUsd."
      }
     },
     "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": [
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dripmetrics-ai-order-book-snapshot-5f2b6a84/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)
