套利是指一场比赛两个注项的最佳价格(取自不同博彩公司)隐含胜率合计低于100%。如果两注都被接受且结算方式一致,两边都投注的返还就会超过总投注额。
检验一对价格
把两个注项的1 / 价格相加。2026年11月25日03:33 UTC,红雀队最佳价格是Kalshi的4.348,指挥官队最佳价格是Betfair Exchange的1.330。23.00%加75.19%等于98.19%。
分配投注额
每个注项的份额是其隐含胜率除以总和。总额100时,红雀队投23.42,指挥官队投76.58。无论哪方胜出都返还101.85(未计费用)。
运行脚本
把密钥导出为DINO_API_KEY,用Python 3运行下面的脚本。
import json import os from datetime import datetime, timezone from urllib.request import Request, urlopen now = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") games = [] for league in ["nfl", "nba", "nhl"]: url = f"https://api.dino.markets/v2/odds?league={league}&markets=moneyline&limit=25" request = Request(url, headers={"Authorization": f"Bearer {os.environ['DINO_API_KEY']}"}) with urlopen(request, timeout=30) as response: events = json.load(response)["events"] for event in events: if event["start_time"] <= now: # only games that have not started continue best = {} # side -> (decimal, book, team, updated_at) for book in event["books"]: for market in book["markets"]: for o in market["outcomes"]: offer = (float(o["price"]), book["name"], o["name"], market["updated_at"]) if o["side"] not in best or offer[0] > best[o["side"]][0]: best[o["side"]] = offer if set(best) == {"home", "away"}: total = sum(1 / offer[0] for offer in best.values()) games.append((total, league, best)) games.sort(key=lambda g: g[0]) print(f"{len(games)} games checked, {sum(g[0] < 1 for g in games)} under 100%") for total, league, best in games[:3]: print(f"{league}: {100 * total:.2f}%") for price, book, team, updated in best.values(): stake = 100 * (1 / price) / total print(f" {team} {price:.3f} at {book}, stake {stake:.2f} of 100, returns {stake * price:.2f} (since {updated})")
该次运行的输出:
71 games checked, 16 under 100% nfl: 98.19% Arizona Cardinals 4.348 at Kalshi, stake 23.42 of 100, returns 101.85 (since 2026-11-25T01:56:08Z) Washington Commanders 1.330 at Betfair Exchange, stake 76.58 of 100, returns 101.85 (since 2026-11-25T03:16:52Z) nba: 99.00% Indiana Pacers 2.273 at Kalshi, stake 44.44 of 100, returns 101.01 (since 2026-11-25T01:56:20Z) Philadelphia 76ers 1.818 at Polymarket, stake 55.56 of 100, returns 101.01 (since 2026-11-25T01:57:15Z) nfl: 99.17% Minnesota Vikings 1.360 at Smarkets, stake 74.14 of 100, returns 100.84 (since 2026-11-25T03:01:50Z) Atlanta Falcons 3.900 at Matchbook, stake 25.86 of 100, returns 100.84 (since 2026-11-25T01:56:51Z)
相信价差之前先核对
这三个例子都用到了交易所或预测市场。它们的佣金和费用没有体现在价格里,可能比价差还大。
- 价格。
since是该价格首次被看到的时间。请到博彩公司核对两个价格。 - 金额。 API不会说明某个价格能投注多少。
- 规则。 两个地方对平局、延期或取消的比赛可能有不同的结算方式。
- 可用性。 某家博彩公司可能在你所在地区不开放,也可能限制或关闭账户。
常见问题
涵盖让分和大小分吗?
不涵盖,只看独赢。大小分请在相同point下比较Over和Under。
运行一次花多少积分?
最多3积分:脚本对三个联赛各调用一次,没有比赛的联赛免费。
能用于足球吗?
足球胜平负有三个注项。请求moneyline_3way,并要求home、draw和away齐全。
这是投注建议吗?
不是。它展示如何用代码比较价格。