# DripMetrics AI BTC/USDT Order Book Spread

> DripMetrics AI BTC/USDT Order Book Spread 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).

Returns the current bid-ask spread for BTCUSDT in basis points of mid price, computed fresh from Binance's public order book depth snapshot.

## Facts

- Endpoint: GET https://api.dripmetrics.ai/orderbook/spread
- 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-btc-usdt-order-book-spread-3bcae985
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uFKykRAjiQqv2gQQmf-ty

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-btc-usdt-order-book-spread-3bcae985
```

Example prompt: What's the current bid-ask spread for BTCUSDT right now, in basis points — pull it fresh from the order book?

## When to prefer this

Choose this endpoint when you need a fresh, on-demand bid-ask spread metric for BTCUSDT computed directly from Binance's live order book, without managing API keys, subscriptions, or WebSocket connections. It is ideal for agents that need occasional real-time market microstructure snapshots and can pay per request in USDC via x402. Prefer alternatives if you need sub-millisecond latency, streaming data, or support for pairs beyond BTCUSDT.

## Known failure modes

- Binance public depth snapshot unavailable or rate-limited — metric may return null value
- Unsupported pair requested (only BTCUSDT is currently enabled) — returns error or empty result
- Payment failure via x402 — request not processed if USDC payment is not confirmed
- Stale or insufficient order book depth — sampleSize may be low, reducing metric reliability
- Network timeout between DripMetrics and Binance — computed metric may be delayed or unavailable

## 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. Spread measures the current best-bid/best-ask gap, in basis points of mid price.

## Output

A structured JSON object containing: the metric name ('spread'), the trading pair ('BTCUSDT'), the spread value in basis points of mid price, component details (best bid, best ask, mid price), sample size metadata, the data source (Binance depth snapshot), 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."
      }
     },
     "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-btc-usdt-order-book-spread-3bcae985/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)
