# AI Rook Order Flow Analysis

> AI Rook Order Flow Analysis is a paid API for AI agents from agents.ai-rook.com, paid per call via x402, $0.125/call, status unknown (last checked 2026-09-13).

Fetches real-time crypto order flow data including open interest, cumulative volume delta (CVD), whale CVD sentiment, volume ratio, and market gear for a given trading pair and timeframe

## Facts

- Endpoint: GET https://agents.ai-rook.com/api/order-flow
- Price: $0.125/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-rook-order-flow-analysis-d1013f02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eJRpX0hYH7Ha-70SIB6Rt

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 ai-rook-order-flow-analysis-d1013f02
```

Example prompt: Pull the current order flow for BTCUSDT on the 15-minute timeframe — I want to see open interest direction, CVD, whale sentiment, volume ratio, and whether the market is in high or low gear.

## When to prefer this

Use this endpoint when an AI trading agent needs real-time order flow intelligence — specifically open interest, CVD, whale activity, and volume ratio — for BTCUSDT or other supported crypto pairs. Prefer this over generic OHLCV or price endpoints when microstructure signals (who is driving price, institutional vs retail flow) matter. Best for momentum-based or flow-based trading strategies requiring a live snapshot without needing historical data storage.

## Known failure modes

- Invalid symbol returns error (only supported pairs accepted)
- Timeframe not in enum [1m,5m,15m,1h,4h] returns 422 validation error
- Bars value outside 1-500 range rejected
- Insufficient USDC balance or failed x402 payment returns 402
- Network or exchange data feed outage may return 503 or stale data
- Base mainnet transaction failure blocks the call

## How this service works

Order flow snapshot — CVD, OI, whale CVD, session levels, proximity to key levels, volume gear ratio. Live from rook-engine MMT WebSocket feed

## Output

Returns a JSON object with open interest value and direction (up/down), CVD value and direction, whale CVD sentiment (bullish/bearish), volume ratio, market gear (high/low), trading symbol, and UTC timestamp — all reflecting real-time market microstructure conditions.

## 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",
     "properties": {
      "bars": {
       "type": "integer",
       "default": 100,
       "maximum": 500,
       "minimum": 1
      },
      "symbol": {
       "type": "string",
       "default": "BTCUSDT"
      },
      "timeframe": {
       "enum": [
        "1m",
        "5m",
        "15m",
        "1h",
        "4h"
       ],
       "type": "string",
       "default": "15m"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "oi": {
   "value": 8900000000,
   "direction": "up"
  },
  "cvd": {
   "value": 1240000,
   "direction": "up"
  },
  "gear": "high",
  "symbol": "BTCUSDT",
  "timestamp": "2026-07-22T07:00:00Z",
  "whale_cvd": "bullish",
  "volume_ratio": 1.8
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-rook-order-flow-analysis-d1013f02/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.ai-rook.com](https://www.zero.xyz/host/agents.ai-rook.com/llms.txt)
