Skip to main content
Version: 2.0.0

Parlay Pricer

REQUIREMENT

You'll need a license key to use OpticOdds' API. You can get one by contacting us at www.opticodds.com.

API Endpoint

https://api.opticodds.com/api/v2/parlay-pricer

Description

The Parlay Pricer API allows you to get the odds for a parlay bet across multiple sportsbooks. You can include multiple entries in the parlay from different games and markets. It will only work if all entries are available on the sportsbooks you specify and can be combined into a parlay.

Parameters

key (required)

Your API license key.

POST Body

sportsbooks (required)

The sportsbooks you want to receive odds for. We support the following:

  • FanDuel
  • DraftKings
  • BetMGM

entries (required)

An array of entries you want to include in the parlay. You can mix and match these across games.

Each entry should have the following fields:

  • market - The market of the entry (e.g. Player Points)
  • name - The name of the entry (e.g. Jalen Brunson Over 30.5)
  • game_id - The game ID of the entry (e.g. 77646-11464-2024-05-09)

Example Curl Request

curl --location 'https://api.opticodds.com/api/v2/parlay-pricer?key=<KEY>' \
--header 'Content-Type: application/json' \
--data '{
"sportsbooks": [
"FanDuel",
"DraftKings"
],
"entries": [
{
"market": "Player Assists",
"name": "Jayson Tatum Over 5.5",
"game_id": "77646-11464-2024-05-09"
},
{
"market": "Player Assists",
"name": "Evan Mobley Over 2.5",
"game_id": "77646-11464-2024-05-09"
}
]
}'

Example Response:

{
"FanDuel":{
"price":218,
"legs":[
{
"market":"Player Points",
"name":"Jalen Brunson Over 30.5",
"price":-158
},
{
"market":"Player Points",
"name":"Josh Hart Over 15.5",
"price":-102
}
]
},
"DraftKings":{
"price":184,
"legs":[
{
"market":"Player Points",
"name":"Jalen Brunson Over 30.5",
"price":-155
},
{
"market":"Player Points",
"name":"Josh Hart Over 15.5",
"price":100
}
]
}
}

Example With Missing Entries:

{
"DraftKings":{
"error":"Missing odds for entries.",
"missing_entries":[
{
"game_id":"32825-40294-2024-05-14",
"market":"Player Points",
"name":"Josh Hart Over 10.5"
}
]
},
"FanDuel":{
"price":-112,
"legs":[
{
"market":"Player Points",
"name":"Jalen Brunson Over 30.5",
"price":-158
},
{
"market":"Player Points",
"name":"Josh Hart Over 10.5",
"price":-550
}
]
}
}

Failed Parlay Response Example:

{
"FanDuel":{
"error":"No parlay found."
},
"DraftKings":{
"error":"YourBet is disabled for one or more selections in request"
}
}