# Polymarket — Get Book

Get Polymarket Perps Order Book data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as depth, instrument_id, and retrieve structured data including perps instrument identifier, order-book snapshot timestamp, and order-book sequence context for depth panels, and snapshot context, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/polymarket/polymarket-get-book/8bea08e0-b860-4929-a849-af694e893074/
API ID: 8bea08e0-b860-4929-a849-af694e893074
Provider: Polymarket
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/v1/info/book
Page update time: 2026-12-03T02:49:31.031Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:30.445Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Polymarket Perps Order Book API

instrument\_id is required and ranges from 0 to 4294967295. depth accepts 10, 100, 500 or 1000. The response object contains bids, asks, instrument\_id, timestamp and sequence; the bid and ask arrays can be empty.

## What You Can Build

- **Depth panels**: Render the available sides of an instrument book.
- **Snapshot context**: Retain instrument, timestamp and sequence together.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `instrument_id` | Perps instrument identifier |
| `bids` | Bid levels; the array can be empty |
| `asks` | Ask levels; the array can be empty |
| `timestamp` | Order-book snapshot timestamp |
| `sequence` | Order-book sequence context |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Polymarket — Get Book request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "instrument_id": {
          "type": "integer",
          "description": "Instrument ID",
          "minimum": 0,
          "maximum": 4294967295
        },
        "depth": {
          "type": "integer",
          "description": "Number of book levels to return",
          "enum": [
            10,
            100,
            500,
            1000
          ]
        }
      },
      "required": [
        "instrument_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "asks": {
      "type": "array",
      "items": {}
    },
    "bids": {
      "type": "array",
      "items": {}
    },
    "instrument_id": {
      "type": "integer"
    },
    "sequence": {
      "type": "integer"
    },
    "timestamp": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/v1/info/book?depth=10&instrument_id=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "asks": [],
  "bids": [],
  "instrument_id": 0,
  "sequence": 87929897361,
  "timestamp": 1793282448904
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which instrument_id should I use?
Use an integer Perps instrument ID in the range 0 to 4294967295. It is not a prediction-market outcome token ID.

### Which depth values are accepted?
Use exactly 10, 100, 500 or 1000. These are level-count choices, not an arbitrary integer range.

### Do empty bids or asks mean a zero price?
No. They mean no returned levels on that side. Handle the empty side before reading a best price.

### Does reading a book place an order?
No. This GET returns a snapshot with time and sequence context. Order execution is a separate workflow.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- Polymarket: https://openany.si/polymarket/polymarket-get-book/8bea08e0-b860-4929-a849-af694e893074/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
