# Aayat AI Perpetual Futures Order Book

> Aayat AI Perpetual Futures Order Book is a paid API for AI agents from aayatai.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Returns live order book data for a perpetual futures market on Hyperliquid or dYdX, including best bid/ask, spread, USD depth, and slippage estimate for a given trade size.

## Facts

- Endpoint: GET https://aayatai.com/perps/orderbook?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-perpetual-futures-order-book-6ecd51f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HXGMZBviViNdpgF6bhIIM

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 aayat-ai-perpetual-futures-order-book-6ecd51f7
```

Example prompt: What's the live order book for ETH perps on Hyperliquid right now — best bid and ask, the spread in bps, and how much slippage I'd expect on a $25,000 market buy?

## When to prefer this

Use this endpoint when an agent needs real-time order book data and pre-trade slippage estimates for perpetual futures on Hyperliquid or dYdX — especially before executing or recommending a large trade. Prefer this over generic price feeds when execution quality, market depth, and fill cost matter. The slippage estimate is purpose-built for DeFi perpetuals and covers both venues, making it more actionable than a simple last-price lookup.

## Known failure modes

- Invalid coin symbol returns an error or empty result
- Venue unavailable (e.g. Hyperliquid down) may fall back to dYdX in auto mode or return error if venue is explicitly specified
- sizeUsd outside allowed range (100–10,000,000) returns validation error
- Network latency may cause stale or delayed order book snapshot
- dYdX may not list all coins available on Hyperliquid, returning not-found error

## How this service works

Live order book for a perpetual futures market on Hyperliquid or dYdX: best bid and ask, spread in bps, USD depth within 10/50/100 bps of mid, and the average fill price and slippage of a market buy and sell of your size. Pass ?coin=ETH&sizeUsd=25000 (&venue=dydx).

## Output

Returns best bid and ask prices, spread in basis points, USD liquidity depth within 10, 50, and 100 bps of mid-price, estimated average fill price for a market order of the specified size, and slippage in bps/percent. Optionally includes full price-level breakdown (up to 20 levels per side).

## 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": [
      "coin"
     ],
     "properties": {
      "coin": {
       "type": "string",
       "maxLength": 20,
       "description": "Market symbol, e.g. BTC, ETH, SOL."
      },
      "venue": {
       "enum": [
        "auto",
        "hyperliquid",
        "dydx"
       ],
       "type": "string",
       "default": "auto",
       "description": "auto (default: Hyperliquid, or dYdX while Hyperliquid is unavailable), hyperliquid or dydx."
      },
      "detail": {
       "enum": [
        "full",
        "brief"
       ],
       "type": "string",
       "default": "full",
       "description": "brief = key fields only (same price)"
      },
      "levels": {
       "type": "integer",
       "default": 10,
       "maximum": 20,
       "minimum": 0,
       "description": "Price levels to return per side (0-20)."
      },
      "sizeUsd": {
       "type": "number",
       "default": 10000,
       "maximum": 10000000,
       "minimum": 100,
       "description": "Order size in USD for the slippage estimate (100 to 10,000,000)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-perpetual-futures-order-book-6ecd51f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
