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.

formatFavoriteUnderdogNotes
american-150+130Default. Integer.
decimal1.6672.300Rounded to 3 places. Stake × decimal = total return.
probability0.60.4348Implied 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.

GET /v1/odds?league=nba&markets=spread&books=draftkings,pinnacle (excerpt)
[
  {
    "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.

BookOutcomeamericandecimalprobability
DraftKingsPhoenix Suns −4.5 (home)-1151.870.5349
DraftKingsSan Antonio Spurs +4.5 (away)-1051.9520.5122
PinnaclePhoenix Suns −4.5 (home)-1081.9260.5192
PinnacleSan Antonio Spurs +4.5 (away)-1021.980.505
  • Decimal. A negative American price a becomes 1 + 100 / |a|, a positive one 1 + a / 100, rounded to 3 places: −115 → 1.8696 → 1.87. JSON drops trailing zeros, so expect 1.87, not 1.870.
  • Probability. 1 / decimal, worked out from the unrounded decimal and rounded to 4 places: −115 → 0.5349.
  • Best price. For sel_1d92w0erhd2 the higher decimal (the lower probability) pays more: Pinnacle's −108 (1.926) beats DraftKings' −115 (1.87). Compare only outcomes with the same id: 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 american yourself 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.

convert.js
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