AymarData

Point-in-time order book snapshots.

GET /v1/book

Fetch a full L2 snapshot at a timestamp (or the latest).

Request

GET /v1/book?source=polymarket&market=btc-updown-15m-1792681200&outcome=up&at=2026-10-22T15:10:00Z&depth=6
Authorization: Bearer YOUR_API_KEY
ParamTypeDescription
sourcestringRequired
marketstringRequired · slug, condition id, or token id
outcomestringup | down | yes | no when the market is two-sided
atstringISO-8601 · omit for latest
depthnumberLevels per side · default full book

Response

{
  "source": "polymarket",
  "market": "btc-updown-15m-1792681200",
  "token_id": "33339798372916037220…",
  "outcome": "Up",
  "ts_exchange": "2026-10-22T15:10:00.000Z",
  "ts_recv": "2026-10-22T15:10:00.000Z",
  "bids": [{"price": 0.52, "size": 18420}, {"price": 0.51, "size": 22100}],
  "asks": [{"price": 0.53, "size": 15210}, {"price": 0.54, "size": 19840}],
  "spread": 0.01
}

book?at= reconstructs from the nearest 1-minute checkpoint plus deltas.