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
- Scope
matchesTake the fixtures from the matches scope: kick-off in UTC and, in play, playtime, score, corners and cards.
- Scope
oddsRead 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).
- Scope
odds_seenStore 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]}'const res = await fetch('https://oddfeeds.com/api/v1/feeds', {
method: 'POST',
headers: {
'Authorization': 'Bearer ofk_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({"scope":"matches","league_ids":[1939580]}),
});
const feed = await res.json();import requests
res = requests.post(
'https://oddfeeds.com/api/v1/feeds',
headers={'Authorization': 'Bearer ofk_your_api_key'},
json={"scope":"matches","league_ids":[1939580]},
timeout=20,
)
feed = res.json()Build it on live data
Start with a free API key: every bookmaker, PreMatch and InPlay, on live production data.