Build an arbitrage scanner on live odds

An arbitrage scanner compares one market at many bookmakers and looks for prices that, backed together, cover every outcome for less than they pay back. It depends on two things: the same match at every bookmaker, and knowing how old each price is.

How it reads the feed

  1. Scope matches

    Take the matches in play or about to start from the matches scope. Every bookmaker's prices for a match come under this one match id, so you never match events between bookmakers yourself.

  2. Scope odds

    Ask the odds scope for those matches. Leave bookmaker_ids out and the answer carries every bookmaker your key has, each row with its market, line, price and the time it last changed.

  3. Group the rows by type_id, period_id and hc, and take the best price of each outcome across the bookmakers. That calculation is yours: the feed gives the raw prices.

  4. Scope odds_seen

    Before you act on a combination, ask odds_seen for its prices: seen is when our scanner last confirmed each one, and closed is filled once it is gone.

What to watch for

  • A price the bookmaker suspends or closes leaves the feed instead of showing 0. A price missing from an answer is not on offer: never keep the last one you saw.
  • Compare only the same market, period and line: type_id, period_id and hc. In play an Asian line counts either from the current score or from kick-off (hc_as_draw): at 1-0, -0.25 from the score is -1.25 from kick-off.
  • An exchange price comes as the exchange shows it, with no commission taken off, and each price level has its own liquidity in euros.

Your first request

The odds of two matches at every bookmaker your key carries. The match ids come from the matches scope. Put your own key in place of ofk_your_api_key. Every scope and field in the documentation

curl -X POST https://oddfeeds.com/api/v1/feeds \
  -H "Authorization: Bearer ofk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"scope":"odds","match_ids":[13264298,13264221]}'

Step by step: Feed an arbitrage scanner from the API

Build it on live data

Start with a free API key: every bookmaker, PreMatch and InPlay, on live production data.