Odds formats: American, decimal and implied probability
Odds formats: American, decimal and implied probability, and how the margin shows up in each. PreciseAPI sports odds API documentation.
Prices default to American odds. Pass format=decimal or format=probability to any odds endpoint to receive another representation. Lines and points are unaffected. Entry-dependent DFS payouts keep a null price; their pick multipliers are unchanged by the requested format.
| format | Favorite | Underdog | Notes |
|---|---|---|---|
american | -150 | +130 | Default. Integer. |
decimal | 1.667 | 2.300 | Rounded to 3 places. Stake × decimal = total return. |
probability | 0.6 | 0.4348 | Implied probability including the source's margin. |
Worked example: one outcome at two books
This is an example of the full-game spread of one NBA game as DraftKings and Pinnacle return it from /v1/odds (abridged: clocks and the moneyline left out). Each source's offer is its own market with its own id. The same side at the same point carries the same outcomes[].id at both books, so that is the key to compare prices on. line is the home team's point; the away outcome's point is the opposite sign.
[
{
"id": "draftkings",
"markets": [
{
"id": "mkt_14ivq762bz0",
"key": "spread",
"period": "full_game",
"line": -4.5,
"outcomes": [
{
"id": "sel_1d92w0erhd2",
"name": "Phoenix Suns",
"side": "home",
"point": -4.5,
"price": -115
},
{
"id": "sel_1lhzilnwepp",
"name": "San Antonio Spurs",
"side": "away",
"point": 4.5,
"price": -105
}
],
"suspended": false
}
]
},
{
"id": "pinnacle",
"markets": [
{
"id": "mkt_19gvfk2ks6p",
"key": "spread",
"period": "full_game",
"line": -4.5,
"outcomes": [
{
"id": "sel_1d92w0erhd2",
"name": "Phoenix Suns",
"side": "home",
"point": -4.5,
"price": -108
},
{
"id": "sel_1lhzilnwepp",
"name": "San Antonio Spurs",
"side": "away",
"point": 4.5,
"price": -102
}
],
"suspended": false
}
]
}
]The same four prices in each format. Only price changes; point and line stay as they are.
| Book | Outcome | american | decimal | probability |
|---|---|---|---|---|
| DraftKings | Phoenix Suns −4.5 (home) | -115 | 1.87 | 0.5349 |
| DraftKings | San Antonio Spurs +4.5 (away) | -105 | 1.952 | 0.5122 |
| Pinnacle | Phoenix Suns −4.5 (home) | -108 | 1.926 | 0.5192 |
| Pinnacle | San Antonio Spurs +4.5 (away) | -102 | 1.98 | 0.505 |
- Decimal. A negative American price
abecomes1 + 100 / |a|, a positive one1 + a / 100, rounded to 3 places: −115 → 1.8696 →1.87. JSON drops trailing zeros, so expect1.87, not1.870. - Probability.
1 / decimal, worked out from the unrounded decimal and rounded to 4 places: −115 →0.5349. - Best price. For
sel_1d92w0erhd2the higher decimal (the lower probability) pays more: Pinnacle's −108 (1.926) beats DraftKings' −115 (1.87). Compare only outcomes with the sameid: a book at −5 has different selection ids, because the point is part of them. - Margin. DraftKings' two sides add up to 0.5349 + 0.5122 = 1.0471, an overround of about 4.7%; Pinnacle's to 0.5192 + 0.5050 = 1.0242, about 2.4%. For exact margin or fair-price work, convert from
americanyourself rather than adding rounded values.
Implied probability and margin
Implied probabilities across all outcomes of a market sum to more than 1 — the excess is the book's margin. Every price in the API is the source's posted price; we don't remove the margin or compute fair prices, so you can apply whatever method your product needs.
const toDecimal = (a) => (a > 0 ? 1 + a / 100 : 1 + 100 / -a);
const toProb = (a) => 1 / toDecimal(a);
// Remove margin from a two-way market
function fair(priceA, priceB) {
const [pa, pb] = [toProb(priceA), toProb(priceB)];
return [pa / (pa + pb), pb / (pa + pb)];
}Previous: Data model & ids · Next: Credits & billing