# Feed your betting model with market prices

> URL: https://oddfeeds.com/use-cases/betting-models
> Index: https://oddfeeds.com/llms.txt

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. `matches`: Take the fixtures from the matches scope: kick-off in UTC and, in play, playtime, score, corners and cards.
2. `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. `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](https://oddfeeds.com/documentation.md)

```bash
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](https://oddfeeds.com/guides/your-own-history.md)

## Build it on live data

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

- [Get your free API key](https://oddfeeds.com/register)
- [See pricing](https://oddfeeds.com/services.md)

## Other use cases

- [Arbitrage scanner](https://oddfeeds.com/use-cases/arbitrage-scanner.md)
- [Value against Pinnacle](https://oddfeeds.com/use-cases/value-betting.md)
- [Odds comparison](https://oddfeeds.com/use-cases/odds-comparison.md)
- [In-play trading](https://oddfeeds.com/use-cases/in-play-trading.md)
