> ## Documentation Index
> Fetch the complete documentation index at: https://polyquantlab.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Sub-second Polymarket data, walk-the-book backtests, paper trading, and the live arb audit — over a single Bearer-token JSON API.

PolyQuantLab is the Polymarket research workbench. The API surfaces the
same data and engine the website uses internally — including the live
audit log we publish publicly — so you can bring our infrastructure
into your own scripts, bots, or notebooks.

## What you get

<CardGroup cols={2}>
  <Card title="Sub-second L2 data" icon="candlestick-chart" href="/docs/api-reference/markets/orderbook">
    Polymarket orderbook snapshots, Binance/Bybit L2 depth, Chainlink reference price — all queryable.
  </Card>

  <Card title="Walk-the-book backtest" icon="play" href="/docs/api-reference/backtest/run">
    Submit a typed strategy spec, get back realised PnL, equity curve, profit factor, max drawdown.
  </Card>

  <Card title="Paper trading" icon="flask-conical" href="/docs/api-reference/paper/create-strategy">
    Persist a strategy server-side; we run it on every new snapshot and track equity in real time.
  </Card>

  <Card title="Live arb audit" icon="shield-check" href="/docs/api-reference/arb/audit-aggregate">
    Every signal our engine surfaces, reconciled to resolution. Model EV vs realised PnL, unedited.
  </Card>
</CardGroup>

## Coverage

The API serves data for the same universe the workbench tracks:

| Asset         | Event types                        | Sources                     |
| ------------- | ---------------------------------- | --------------------------- |
| BTC, ETH, SOL | 5m · 15m · 1h · 4h · daily Up/Down | Polymarket CLOB             |
| BTC, ETH, SOL | sub-second tick                    | Binance spot · Bybit linear |
| BTC, ETH, SOL | L2 depth @ 100–200 ms              | Binance spot · Bybit linear |
| BTC, ETH, SOL | oracle heartbeat                   | Chainlink (Polygon)         |

## Common entry points

<Steps>
  <Step title="Get an API key">
    Sign in to the dashboard, open
    [API keys](https://polyquantlab.com/dashboard/api-keys), and mint a
    Bearer token. See [Authentication](/docs/authentication).
  </Step>

  <Step title="List recent resolved markets">
    Hit [`GET /v1/markets/resolved`](/docs/api-reference/markets/list-resolved)
    — the same endpoint the dashboard uses to populate its Markets list.
  </Step>

  <Step title="Pull orderbook history for one market">
    Hit [`GET /v1/snapshots`](/docs/api-reference/snapshots/list-snapshots)
    or the convenience wrapper at
    [`/v1/markets/{market_id}/orderbook`](/docs/api-reference/markets/orderbook).
  </Step>

  <Step title="Run a backtest">
    POST a strategy spec to
    [`/v1/backtest`](/docs/api-reference/backtest/run) and poll
    [`/v1/backtest/{job_id}`](/docs/api-reference/backtest/get-job) until
    `status: "done"`.
  </Step>
</Steps>

## Honest framing

The API is the same engine that powers the public
[audit page](https://polyquantlab.com/audit). Numbers, response shapes
and edge cases are identical to what we render — including the bits
that don't flatter us. If you compose a strategy here and reach a
different conclusion than the dashboard does, that's a bug; please
write to [contact@polyquantlab.com](mailto:contact@polyquantlab.com).
