What you’ll get
A PNG step chart of one market’s Yes ask over up to 90 days, drawn fromGET /v1/markets/{venue}/{id}/quotes. Where the window reaches back before asks were recorded, the line continues as archived hourly or daily closes, drawn dashed so the two are not confused. On 2026-09-17 a Super Bowl market gave 40 recorded points since 2026-09-14 and no archived ones.
Prerequisites
- An API key in
ROUTEUR_API_KEY - Python 3 with
requestsandmatplotlib - A market:
MARKET_ID=KXSB-27-LARis used below
1
Read the quote history
Asks are recorded each time they change, oldest first. The first point is the last change before the window, so a chart can start at its left edge.The first and last points, observed 2026-09-17 12:48 UTC:A point from before recording began has
price_usd and source (venue or archive) instead of asks.2
Draw it
A step chart is the honest shape: each price holds until the next change.Output observed 2026-09-17 12:48 UTC:The chart shows a flat line at 13¢ with brief dips to 12¢: the Rams’ Super Bowl price over three days.
Python
3
Add the top of the book, if the market's book is recorded
Asks say what it cost to buy; the book says how much was there. Plot
GET /v1/markets/{venue}/{id}/book/history returns the best bid and ask, mid, spread and 5¢ depth per step, kept for 30 days, for markets whose book is recorded from the venue feed.yes_bid_usd and yes_ask_usd as a band around the ask line, and yes_depth_5c_usd on a second axis, to see when a move happened on size and when it happened on nothing.Read the result
Pitfalls
- At most 5,000 points per request. For a busy market over 90 days, ask for fewer days and stitch the windows.
- Asks, not trades. The line is what it cost to buy, not what traded.
GET /v1/markets/{venue}/{id}/tradeshas the fills. - A quiet line can hide an empty book. A 13¢ ask that never moves may be one resting order. Check
liquidity,volume_24h_usdandbook_yes_depth_5c_usdon the market before reading anything into it. - Archived closes are not asks. They are the day’s or hour’s last price, with no spread. Never mix the two in one series; the dashed line keeps them apart.
Related
- History: how quotes and trades are recorded, and how far back each goes.
- Slippage at size: the full book at one moment, and what a $1,000 order would pay.
- Stream consumer: the
quotesandbookstopics push the same changes as they are recorded. GET /v1/markets/{venue}/{id}/book?at=: the whole book as it stood at any moment in the last 90 days.