Message on Telegram

Bookmaker odds: converting a rate to decimal

Bookmaker markets on Indian cricket sites quote a rate: the profit on a stake of 100. A rate of 13 is not decimal odds of 13. This guide shows how to convert rates, display them and settle them, so your site never pays 13 times the stake by mistake.

Updated 2026-11-17

The one formula

Decimal odds = 1 + rate / 100.

RateDecimalA stake of 100 wins
131.1313
481.4848
1002.00100
6257.25625

How the API marks it

Every market carries a format. Bookmaker markets have "type": "bookmaker" and "format": "rate"; match odds have "format": "decimal". Branch on format, not on the market name.

const toDecimal = (market, price) =>
  market.format === 'rate' ? 1 + price / 100 : price

for (const m of event.markets.filter((m) => m.type === 'bookmaker')) {
  for (const r of m.runners) {
    const back = r.back[0], lay = r.lay[0]
    console.log(m.name, r.name,
      'back', back ? `${back.price} (${toDecimal(m, back.price).toFixed(2)})` : '-',
      'lay',  lay  ? `${lay.price} (${toDecimal(m, lay.price).toFixed(2)})` : '-')
  }
}

Show the rate, store the rate

Players on Indian exchange sites expect the rate (48, 52), so display it as sent. Store the rate on the bet as well, and convert only where your code needs decimal odds, for example to compare with the match odds market.

Profit and liability

BetIf the selection winsIf it loses
Back 100 at rate 48+48−100
Lay 100 at rate 52−52+100
function bookmakerPnl({ side, rate, stake }, won) {
  if (side === 'back') return won ? stake * rate / 100 : -stake
  return won ? -stake * rate / 100 : stake   // lay
}

Suspended and ball running

Bookmaker markets suspend around wickets and reviews like any other. Take bets only while the market's status is OPEN and it is not marked "stale": true.

Settling

Bookmaker results arrive with a winner, the same way as match odds. See the API reference for the result entry, and the guide How to settle fancy bets from a result API for handling corrections.

Common questions

Why do bookmaker markets use rates?

It is the convention on Indian cricket exchange sites: the number shown is the profit on 100, which players read at a glance.

Are bookmaker and match odds the same market?

No. They are separate markets on the same match, each with its own prices and status. Match odds are decimal; bookmaker is a rate.

Related APIs

More guides