Feed your betting model with market prices

A pricing or betting model sets its own probabilities against the market's, before kick-off and in play. It needs fixtures and live statistics, prices for many markets and lines, and a history it can learn from.

How it reads the feed

  1. Scope matches

    Take the fixtures from the matches scope: kick-off in UTC and, in play, playtime, score, corners and cards.

  2. Scope odds

    Read the odds of each match: every market of the type_id table, by period (period_id 0 first half, 1 full time, 6 second half) and by line (hc).

  3. Scope odds_seen

    Store what you receive. With odds_seen each price also gets the time the bookmaker published it and the time it closed.

What to watch for

  • The feed answers with the prices of now, not their past. If your model learns from history, keep what you receive from the first day; odds_seen adds when each price opened and closed.
  • In the matches scope, -1 for goals, corners or cards means there is no data for that match, not a count.
  • On 1X2 rows a non-zero hc is a European handicap line, and on correct score (type_id 66) hc carries the score.

Your first request

The matches of one league with their kick-off times and, in play, their live statistics. 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":"matches","league_ids":[1939580]}'

Step by step: Keep your own history of odds from the API

Build it on live data

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