betting_build_parlay
Build Parlay
Deterministic parlay analysis for BOTH leg shapes. Body:
{legs:[...], ticket_odds?}. PROP legs {name, prop, threshold} keep the
legacy correlation-aware EV. GAME-side legs (ML / run line / total / team
total / F5, selected by the market field) — the slips users actually
paste — are priced from the CURRENT de-vigged market at that exact market/
line (canonical team resolution), falling back to the market-anchored run
model for totals; per-leg fair prob + edge vs the slip's price, combined
payout / breakeven / fair prob / EV under a documented independence
assumption. Legs sharing a game are flagged correlated=true and get a
correlation_warning INSTEAD of a combined edge. ticket_odds (the slip's
printed combined price) is verified vs the leg product — >2% off flags
ticket_odds_mismatch (the slip was misread; do not trust the numbers).
NEVER estimate a parlay in prose — this endpoint is the math.
Responses:
200: Successful Response (Success Response) Content-Type: application/json 422: Validation Error Content-Type: application/json
Example Response:
{
"detail": [
{
"loc": [],
"msg": "Message",
"type": "Error Type",
"ctx": {}
}
]
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | ||
| ticket_odds | No |