# Exchange historical odds: back and lay prices

> Exchange historical odds from one API: Betfair, Smarkets and Matchbook beside the bookmakers at a past instant, each price change and what the archive omits.

Published 4 December 2026

**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](https://oddsrelay.io/products/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=uk`.

## 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_out_of_range`, 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 /v2/historical/odds/raw` | As venues under each event, in the same event objects as `/v2/odds/raw` |
| How one fixture's prices moved | `GET /v2/historical/events/{id}/odds` | As rows under the exchange's key: back prices in `price`, as a bookmaker's are, and lay prices in the `_lay` market with `lay_price` and `available` |
| Each outcome's kick-off day in one row | `GET /v2/historical/closing` | As venues beside the bookmakers, with the lay side in `open_lay_price` and `close_lay_price` |
| A whole day in bulk | `GET /v2/historical/files` | As rows whose `is_exchange` column is `true`, with the lay side in `lay_price` 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 `_lay` on the end. The prices and stakes here are made up for the example, and the lay market is trimmed to one outcome:

GET /v2/historical/odds/raw · one venue of one event, trimmed · example:

```json
{
  "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_price` is the best lay on offer at that instant, and `available` is 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_price` and `available` together. Read `price` first and fall back to `back_price`, and your code handles both.
- A board from 17:53 UTC on 6 November 2026 onwards also carries `back_available`, the stake at the best back. `includeLiquidity=false` leaves both stakes out.

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=2026-11-22T14:00:00Z`.

Request · the exchanges' board at 14:00 UTC, as a free quote · example:

```bash
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&quote=true"
```

With `quote=true` 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](https://oddsrelay.io/blog/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](https://oddsrelay.io/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=true` returns the exchanges alone.
- `bookmakersOnly=true` returns the bookmakers alone, the answer these calls gave before the exchanges joined them.
- `exchanges=` takes exchange keys and `bookmakers=` takes bookmaker keys, as `GET /v2/bookmakers` lists them. A call that names venues gets only those.

`bookmakersOnly=true` beside `exchanges` or `exchangesOnly=true` is a 400 `bad_request`. To see a past lay next to one bookmaker's past price, name both: `bookmakers=sky_bet&exchanges=smarkets`.

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](https://oddsrelay.io/blog/pairing-back-and-lay-odds) covers the sums on a pair, and [how to get Betfair lay odds](https://oddsrelay.io/blog/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](https://oddsrelay.io/enterprise).

## Quote one past board, then read it

Run the request above for a recent day, then drop `quote=true`. 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](https://oddsrelay.io/docs/guides/historical-odds) covers each call, its fields and its errors, and the [API reference](https://oddsrelay.io/docs/reference) lists every parameter. The events on a past board are shaped like live raw's, which [the anatomy of an odds API response](https://oddsrelay.io/blog/anatomy-of-an-odds-api-response) walks through field by field.

18+ · OddsRelay supplies odds data only and takes no bets. Please gamble responsibly.

Source: https://oddsrelay.io/blog/exchange-historical-odds
