# Odds Format

The Odds API supports both decimal and American odds formats. This page contains explanations of the different odds formats, and formulas to convert between formats.

# Decimal Odds Format

Odds data is in decimal format by default. The payout of a bet is the decimal odd multiplied by your wager.

Example

Consider team A with decimal odds 1.4, and team B with decimal odds 3.9

If you wager $100 on team A and win, you’ll receive a payout of 100 x 1.4 = $140, and profit of 140 - 100 = $40.

If you wager $100 on team B and win, you’ll receive a payout of 100 x 3.9 = $390, and profit of 390 - 100 = $290.


# American Odds Format

The American odds format can display odds as positive or negative integers.

If the American odds value is positive, the value represents the profit of a $100 wager.

If the American odds value is negative, the value represents the amount that needs to be wagered to receive a profit of $100.

Example

Consider team A with American odds -420, and team B with American odds +330

If you wager $420 on team A and win, you will receive a profit of $100, and a total payout of $420 (original wager) + $100 (profit) = $520.

If you wager $100 on team B and win, you will receive a profit of $330, and a total payout of $100 (original wager) + $330 (profit) = $430.

# Converting Decimal Odds To American Odds

To convert decimal odds to American odds, use the following formulas.

If the decimal odd is greater than or equal to 2, apply this formula:

A = (D - 1) x 100

If the decimal odd is less than 2, apply this formula:

A = 100 / (1 - D)

where D is the decimal odd and Ais the American odd.


Example

Consider team A with decimal odds 1.4, and team B with decimal odds 3.9

3.9 is above 2, so apply the first formula:

A = (3.9 - 1) x 100 = 290

1.4 is less than 2, so apply the second formula:

A = 100 / (1 - 1.4) = -250

# Malaysian Odds (Malay Odds) Format

The Odds API does not currently support Malaysian odds, however Malaysian odds can be calculated from decimal odds.

Malaysian odds are represented as positive or negative decimals.

  • Positive Malaysian Odds: These odds indicate how much profit you can make on a unit stake. If the odds are +0.75, for every $1 you wager, you can make a profit of $0.75.

  • Negative Malaysian Odds: These odds tell you how much you need to stake in order to make a unit profit. If the odds are -0.25, you need to stake $0.25 to make a profit of $1.

# Converting Decimal Odds to Malaysian Odds

If the decimal odd is less than 2, apply this formula:

M = D - 1

If the decimal odd is greater than or equal to 2, apply this formula:

M = 1 / (1 - D)

where D is the decimal odd and Mis the Malaysian odd.


# Get Started with The Odds API