# Polymarket Order Book Top-of-Book Snapshot

> Polymarket Order Book Top-of-Book Snapshot is a paid API for AI agents from agentx.sale, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-17).

Returns top-of-book bid/ask prices, spread, and USD depth on both sides for any Polymarket prediction market

## Facts

- Endpoint: GET https://agentx.sale/x402/polymarket-book?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-order-book-top-of-book-snapshot-38bbd0e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IfVoWOM7INU9Zf7cta0gJ

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 polymarket-order-book-top-of-book-snapshot-38bbd0e8
```

Example prompt: What's the current top-of-book bid and ask on the Polymarket order book for the 'Will the Fed cut rates in July 2025?' market — show me the spread and depth on both sides.

## When to prefer this

Choose this endpoint when you need precise order book microstructure data — best bid, best ask, spread, and depth — rather than just the implied probability or last-traded price. Use it before executing or simulating a trade, when assessing liquidity, or when the spread itself is the signal of interest. Prefer the companion 'Polymarket odds' endpoint if you only need the current YES/NO implied probability without depth.

## Known failure modes

- Market not found for given query string — returns empty book or error
- Ambiguous query matches multiple markets — may return wrong market
- Market is resolved or delisted — book data may be stale or unavailable
- Network or upstream Polymarket API outage — returns 5xx or timeout
- Malformed query parameter — returns 400-level error

## How this service works

Polymarket order book: top-of-book bid/ask, spread and USD depth on both sides for any market

## Output

Returns a JSON object with a 'book' array containing per-outcome entries (e.g. Yes, No), each with bestBid price, bestAsk price, and optionally spread and USD depth on both sides, plus the market question string.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "book": [
   {
    "bestAsk": 0.944,
    "bestBid": 0.941,
    "outcome": "Yes"
   }
  ],
  "question": "..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-order-book-top-of-book-snapshot-38bbd0e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentx.sale](https://www.zero.xyz/host/agentx.sale/llms.txt)
