# Polymarket Order Books

> Polymarket Order Books is a paid API for AI agents from AIsa MPP Data APIs at api.aisa.one, paid per call via MPP, $0.012/call, status unknown (last checked 2026-10-18).

Retrieves order book summaries (bids, asks, last trade price, tick size) for one or more Polymarket prediction market token IDs.

## Facts

- Endpoint: GET https://api.aisa.one/apis/v1/polymarket/books?utm_source=zero.xyz
- Price: $0.012/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Provider: AIsa MPP Data APIs
- Website: https://aisa.one
- Tags: web-search, financial-data, prediction-markets, weather, travel, data, search
- Canonical page: https://www.zero.xyz/c/aisa-mpp-data-apis-polymarket-order-books-49616adb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VMg3Cy2kpBs27SiJbrjIn

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 aisa-mpp-data-apis-polymarket-order-books-49616adb
```

Example prompt: Can you pull the current order book for these two Polymarket tokens — 123456789 and 987654321 — and show me the top bids, asks, and last trade price for each?

## When to prefer this

Use this endpoint when you need real-time order book depth — bids, asks, spreads, and last trade prices — for one or more Polymarket prediction market outcome tokens in a single call. It is ideal for agents that need to assess liquidity, check prices before trading decisions, or monitor market microstructure. Prefer this over a single-token endpoint when you need to compare multiple markets simultaneously without making repeated individual calls.

## Known failure modes

- Invalid or malformed token IDs return an error or empty results
- Token ID not found on Polymarket returns empty order book entries
- Comma-separated list formatting errors may cause parsing failures
- Network or upstream Polymarket API unavailability returns a service error
- Requesting too many token IDs in a single call may hit size limits

## How this service works

Retrieves order book summaries for multiple token IDs using a request body.

<!-- aisa-pricing:start -->
Published reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ.
<!-- aisa-pricing:end -->

## Output

Returns an array of order book objects, one per token ID. Each object includes the market condition ID, asset ID, a timestamp of the snapshot, a hash of the book, sorted lists of bid and ask orders (each with price and size as strings), the minimum order size, tick size, last trade price, and a boolean indicating whether negative risk is enabled for the market.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "token_ids"
 ],
 "properties": {
  "token_ids": {
   "type": "string",
   "description": "Comma-separated list of token IDs"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "array",
 "items": {
  "type": "object",
  "required": [
   "market",
   "asset_id",
   "timestamp",
   "hash",
   "bids",
   "asks",
   "min_order_size",
   "tick_size",
   "neg_risk",
   "last_trade_price"
  ],
  "properties": {
   "asks": {
    "type": "array",
    "items": {
     "type": "object",
     "required": [
      "price",
      "size"
     ],
     "properties": {
      "size": {
       "type": "string",
       "example": "100",
       "description": "Order size"
      },
      "price": {
       "type": "string",
       "example": "0.45",
       "description": "Order price"
      }
     }
    },
    "description": "List of ask orders (sorted by price ascending)"
   },
   "bids": {
    "type": "array",
    "items": {
     "type": "object",
     "required": [
      "price",
      "size"
     ],
     "properties": {
      "size": {
       "type": "string",
       "example": "100",
       "description": "Order size"
      },
      "price": {
       "type": "string",
       "example": "0.45",
       "description": "Order price"
      }
     }
    },
    "description": "List of bid orders (sorted by price descending)"
   },
   "hash": {
    "type": "string",
    "example": "a1b2c3d4e5f6...",
    "description": "Hash of the order book summary"
   },
   "market": {
    "type": "string",
    "example": "0x1234567890123456789012345678901234567890",
    "description": "Market condition ID"
   },
   "asset_id": {
    "type": "string",
    "example": "0xabc123def456...",
    "description": "Token ID (asset ID)"
   },
   "neg_risk": {
    "type": "boolean",
    "example": false,
    "description": "Whether negative risk is enabled for this market"
   },
   "tick_size": {
    "type": "string",
    "example": "0.01",
    "description": "Minimum price increment (tick size)"
   },
   "timestamp": {
    "type": "string",
    "example": "1234567890",
    "description": "Timestamp of the order book snapshot"
   },
   "min_order_size": {
    "type": "string",
    "example": "1",
    "description": "Minimum order size"
   },
   "last_trade_price": {
    "type": "string",
    "example": "0.45",
    "description": "Last trade price"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aisa-mpp-data-apis-polymarket-order-books-49616adb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aisa.one](https://www.zero.xyz/host/api.aisa.one/llms.txt)
