Skip to main content
A self-contained walk-through. By the end you’ll have a Python script that pulls the last 50 resolved BTC 5m markets, downloads each one’s orderbook history, and writes them to disk as JSON.

1. Mint a key

1

Sign in

Sign in at polyquantlab.com/signin. The free tier is enough to follow this guide (5 req/min · 500 req/day).
2

Open API keys

3

Create a key

Click Create key, give it a label (e.g. quickstart-laptop). The full token is shown once — copy it now.
Tokens start with pql_live_ and are 48 characters. They can’t be recovered — if you lose one, revoke it and mint a new one.

2. First call

Expected — a single resolved market:

3. Pull orderbook history

4. Next steps

Walk the book

Convert the snapshot stream into realistic partial fills.

Run a server-side backtest

Skip the local pull entirely — POST a strategy spec and we backtest against the same data on our side.

Stream live snapshots

Subscribe to the WebSocket for sub-second pushes instead of polling.

Browse the live audit

Same audit numbers the dashboard renders — public, unedited.