Exchange historical odds: back and lay prices
You can get exchange historical odds from OddsRelay's historical product: one call returns Betfair, Smarkets and Matchbook beside the bookmakers as they stood at a past instant, each with its best back price, best lay price and the stake at the best lay.
Historical odds hold the prices the raw feed served, since 17 October 2026 in the UK & Ireland and 16 November 2026 in 20 more regions (bookmakers only). They answer at the live feed's base URL, on the same key, and come with every self-serve plan. The exchanges sit in the UK & Ireland's archive, so every call below sends region=.
Which exchanges are in the historical odds, and from when?
Betfair, Smarkets and Matchbook are in it, recorded from the archive's first day, 17 October 2026. The newest day you can ask for is the previous UTC day, because each day joins the archive overnight once it has ended. An instant outside that window is a 400 date_, and the error's earliest and latest give the window.
Four calls read the archive, and the exchanges are in all four.
| You need | Call | How the exchanges appear |
|---|---|---|
| Every venue's prices at one past moment | GET / | As venues under each event, in the same event objects as / |
| How one fixture's prices moved | GET / | As rows under the exchange's key: back prices in price, as a bookmaker's are, and lay prices in the _ market with lay_ and available |
| Each outcome's kick-off day in one row | GET / | As venues beside the bookmakers, with the lay side in open_ and close_ |
| A whole day in bulk | GET / | As rows whose is_ column is true, with the lay side in lay_ and available columns, or their open_ and close_ versions in a closing file |
An exchange is a venue with a lay market
A past board lists an exchange under bookmakers, like any other venue. Its back prices sit under the market's own key and read as a bookmaker's do. Its lay prices sit in a second market, the same key with _ on the end. The prices and stakes here are made up for the example, and the lay market is trimmed to one outcome:
{
"key": "smarkets",
"title": "Smarkets",
"last_update": "2026-11-22T13:58:41Z",
"markets": [
{
"key": "h2h",
"last_update": "2026-11-22T13:58:41Z",
"outcomes": [
{ "name": "Arsenal", "price": 2.18, "back_available": 310 },
{ "name": "Draw", "price": 3.6, "back_available": 122 },
{ "name": "Chelsea", "price": 3.75, "back_available": 95 }
]
},
{
"key": "h2h_lay",
"last_update": "2026-11-22T13:57:03Z",
"outcomes": [{ "name": "Arsenal", "back_price": null, "lay_price": 2.2, "available": 214 }]
}
]
}lay_is the best lay on offer at that instant, andprice availableis the stake on offer at it. No commission is applied to either side.- Where an exchange quotes both sides of an outcome in one row, as in racing, the row carries
back_,price lay_andprice availabletogether. Readpricefirst and fall back toback_, and your code handles both.price - A board from 17:53 UTC on 6 November 2026 onwards also carries
back_, the stake at the best back.available includeLiquidity=leaves both stakes out.false
The archive holds the best price on each side and nothing behind it. There is no ladder and no traded volume, so a past board tells you what could be laid and for how much at the top price, never how much was matched.
How do you get exchange prices at set times before kick-off?
Ask the board call for each instant you want, or read the event call's pages and fold its rows. The board call takes date, any instant to the millisecond, and serves the board version at or before it. meta.timestamp says which version you got, so an hour before a 15:00 kick-off is date=.
curl --compressed -H "x-api-key: $ODDSRELAY_KEY" \ "https://api.oddsrelay.io/v2/historical/odds/raw?region=uk&sports=soccer&date=2026-11-22T14:00:00Z&exchangesOnly=true"e=true"
With quote= the reply is the price of the call, and nothing is spent. Take it off to read the board. eventIds narrows a board to the fixtures you name.
For one fixture at several times, the event call is the better tool. Give it a from and a to up to 24 hours apart. The first rows are the prices at from, and every row after is one outcome at one venue that changed, in its price or in the stake at its lay price, or that left the board (removed: true). Fold the rows in order and you hold the fixture's prices at an hour out, ten minutes out and any instant between. A busy fixture's window runs to many pages, read one after another with cursor, so name the venues and markets you want. Historical odds in Python does that fold in a short script.
A page that holds data costs that call's price, so filters change what you get back, never what a page costs. Pricing lists the price of each call.
Four parameters choose the venues
The board, event and closing calls take four parameters that choose which venues come back.
exchangesOnly=returns the exchanges alone.true bookmakersOnly=returns the bookmakers alone, the answer these calls gave before the exchanges joined them.true exchanges=takes exchange keys andbookmakers=takes bookmaker keys, asGET /lists them. A call that names venues gets only those.v2/ bookmakers
bookmakersOnly= beside exchanges or exchangesOnly= is a 400 bad_. To see a past lay next to one bookmaker's past price, name both: bookmakers=.
Nothing in the archive is paired. Each venue keeps its own outcome names, as it does on live raw, so lining a bookmaker's back up with an exchange's lay is your code's job. Pairing back and lay odds covers the sums on a pair, and how to get Betfair lay odds covers the live side, where the matched boards do the pairing for you.
Check for gaps before you trust a missing price
The recording can have gaps. A past board inside one says complete: false. An event window lists its gaps in meta.gaps, each with a timestamp and a why. Read those before you treat a missing lay as an exchange pulling its market.
The archive carries no starting prices and no results. A tool that settles bets, or compares a price with the starting price, needs another source for both.
On a paid plan, history is for personal use: your own models and research. A business using it, even in-house, or anyone publishing or reselling it, goes through Enterprise.
Quote one past board, then read it
Run the request above for a recent day, then drop quote=. The free trial gives you 50,000 tokens for 14 days from sign-up, and a business can test on it too. The historical odds guide covers each call, its fields and its errors, and the API reference lists every parameter. The events on a past board are shaped like live raw's, which the anatomy of an odds API response walks through field by field.
Related posts
- Historical odds in Python: one event's movesA flat price and a gap in the recording look alike until your code reads the gap list.
- How to get Betfair lay odds (and alternatives)Betfair's API gives you one exchange's lay prices, unpaired. What that route leaves you to build.
- Pairing back and lay odds across UK bookmakersA matched outcome holds two lists. Your user's books, stake and commission decide which rows it becomes.
18+ · OddsRelay supplies odds data only and takes no bets. Please gamble responsibly.