API reference
Implied probability
The win probability each price implies, bookmaker’s margin included, and its decimal odds. No daily limit.
POST/v1/implied-probability
Request
| Field | Type | Required | Meaning |
|---|---|---|---|
odds | integer[] | yes | 1 to 100 American odds. |
Example
curl https://api.kellyiq.com/v1/implied-probability \
-H "Authorization: Bearer $KELLYIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"odds": [-145, 220]
}'{
"results": [
{
"odds": -145,
"decimalOdds": 1.689655,
"impliedProbability": 0.591837
},
{
"odds": 220,
"decimalOdds": 3.2,
"impliedProbability": 0.3125
}
]
}Response
results has one entry per price, in the order you sent them:
| Field | Type | Required | Meaning |
|---|---|---|---|
odds | integer | no | The price you sent. |
decimalOdds | number | no | Total return per 1 staked, stake included: -145 is 1.689655. |
impliedProbability | number | no | The win probability the price implies, 1 divided by decimalOdds. It includes the bookmaker’s margin, so the two sides of a market add up to more than 1; Remove the vig takes it out. |
Errors
400 VALIDATION_ERROR for odds between -100 and +100 or beyond 100,000, and 429 BURST_LIMIT_EXCEEDED above 60 calculator calls a minute. See Errors.