Cloudflare Worker REST API that turns the China Sports Lottery (体彩竞彩足球) odds calculator into a callable odds-derivation service. Exposes live-odds + derivation + parlay tooling to any MCP host (Claude Desktop / Claude Code) as callable tools.
Calculate 单关/过关 (parlay) stake and payout for 竞彩足球. Each leg has decimal `odds` and an optional `result` (win|lose|void; void settles at 1.00). `passType` is '单关', an 'M串N' label like '3串1', or omit for N串1; or pass explicit `folds`. `multiplier` is 倍数. Returns bets(注数), totalStake, maxPayout, realizedPayout (per `result`), byFold, and the 500万 cap flag.
Compare an offered odds set against a reference set (e.g. sporttery 胜平负 vs a 欧赔 reference). The reference is de-vigged into 'true' probabilities; returns 凯利指数 (Kelly index = odds×refProb), EV, Kelly stake fraction, and isValue per outcome. Lists must align outcome-for-outcome.
Derive implied probability, no-vig (去水) probability, 返还率 return rate, margin, and fair odds from a set of decimal odds for ONE market. Accepts {odds:[...]} (any N outcomes) or {h,d,a}.
Fetch one 竞彩足球 match (all pools) by its upstream matchId, with derived metrics.
Fetch the latest China Sports Lottery 竞彩足球 matches with live odds and DERIVED metrics (返还率 return rate, no-vig probabilities, fair odds, up/flat/down trend). Pools: had 胜平负, hhad 让球胜平负, crs 比分, ttg 总进球, hafu 半全场. Default pools are had,hhad to keep responses small — pass `pools` to include crs/ttg/hafu. Filter by date/league/matchId.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 12 | 2026-07-28+ | v2 |
Reference: pool labels (胜平负/让球/比分/总进球/半全场), the parlay table, and the odds formulas this server uses.
List the official 过关 (M串N) combination table. Optionally filter to a number of matches.