一些寻找价值赔率的方法会将 Pinnacle 的赔率作为参考,寻找在相同结果上赔付更高的博彩公司。采用哪种参考依据以及如何使用由你决定:本指南展示如何读取相关赔率。
在单个请求中获取 Pinnacle 及你的博彩公司数据
在单个请求中将 Pinnacle 和你关注的博彩公司填入 bookmaker_ids,以便并行读取并对比赔率。每行的 bookmaker 包含博彩公司的 id 和名称:你可以从响应结果中获取 id,也可以从 覆盖范围页面 链接的各博彩公司页面中获取。
curl -X POST https://oddfeeds.com/api/v1/feeds \
-H "Authorization: Bearer ofk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"scope":"odds","match_ids":[13683300],"bookmaker_ids":[10,64,16],"odd_type_ids":[2,3,4],"odd_period_ids":[1]}'const res = await fetch('https://oddfeeds.com/api/v1/feeds', {
method: 'POST',
headers: {
'Authorization': 'Bearer ofk_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({"scope":"odds","match_ids":[13683300],"bookmaker_ids":[10,64,16],"odd_type_ids":[2,3,4],"odd_period_ids":[1]}),
});
const feed = await res.json();import requests
res = requests.post(
'https://oddfeeds.com/api/v1/feeds',
headers={'Authorization': 'Bearer ofk_your_api_key'},
json={"scope":"odds","match_ids":[13683300],"bookmaker_ids":[10,64,16],"odd_type_ids":[2,3,4],"odd_period_ids":[1]},
timeout=20,
)
feed = res.json()返回结果 · API 于 2026年11月26日 返回的结果,仅展示前几行。 实际返回结果会包含其他 ID,请在下一个请求中使用对应的 ID。
JSON 返回结果: 在单个请求中获取 Pinnacle 及你的博彩公司数据
{
"status": "ok",
"data": {
"prematch": [
{
"id": 394831901,
"active": 1,
"match_id": 13683300,
"event_id": 72548340,
"bookmaker": {
"id": 64,
"name": "Holiganbet"
},
"datetime": "2026-11-26T01:34:05",
"period_id": 1,
"type_id": 4,
"order": 1,
"back_lay_id": 0,
"liquidity": -1,
"hc": -2,
"hc_as_draw": 0,
"price": 1.222,
"nav": "{\"v\":1,\"scope\":\"prematch\",\"eventId\":\"320047483511185408\",..."
},
{
"id": 396015507,
"active": 1,
"match_id": 13683300,
"event_id": 72551794,
"bookmaker": {
"id": 16,
"name": "Cashpoint"
},
"datetime": "2026-11-26T01:33:38",
"period_id": 1,
"type_id": 3,
"order": 1,
"back_lay_id": 0,
"liquidity": -1,
"hc": 1,
"hc_as_draw": 0,
"price": 5.2,
"nav": "{\"scope\": \"prematch\", \"eventId\": \"3198590012\", \"oddId\": \"..."
}
],
"inplay": []
},
"time": "2026-11-26T15:19:22",
"ms": "1.26ms"
}
在同一盘口下横向对比
仅当两者共享相同的 type_id、period_id 和 hc 时,才将赔率与 Pinnacle 进行对比。datetime 表示该赔率在博彩公司端的最近更新时间。
各赔率的时效性
赔率可能会保持几分钟不变。odds_seen 中的 seen 表示我们的扫描器最近一次确认该赔率的时间:在进行对比前,请同时获取两者的最新赔率。
curl -X POST https://oddfeeds.com/api/v1/feeds \
-H "Authorization: Bearer ofk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"scope":"odds_seen","odd_ids":[394831901,396015507,396015629]}'const res = await fetch('https://oddfeeds.com/api/v1/feeds', {
method: 'POST',
headers: {
'Authorization': 'Bearer ofk_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({"scope":"odds_seen","odd_ids":[394831901,396015507,396015629]}),
});
const feed = await res.json();import requests
res = requests.post(
'https://oddfeeds.com/api/v1/feeds',
headers={'Authorization': 'Bearer ofk_your_api_key'},
json={"scope":"odds_seen","odd_ids":[394831901,396015507,396015629]},
timeout=20,
)
feed = res.json()返回结果 · API 于 2026年11月26日 返回的结果,仅展示前几行。
JSON 返回结果: 各赔率的时效性
{
"status": "ok",
"data": [
{
"id": 396015507,
"open": "2026-11-26T01:33:38",
"seen": "2026-11-26T15:18:28",
"closed": ""
},
{
"id": 396015629,
"open": "2026-11-26T01:33:38",
"seen": "2026-11-26T15:18:28",
"closed": ""
}
],
"time": "2026-11-26T15:20:21",
"ms": "53us"
}
示例:按比例去除抽水(去水)
博彩公司的赔率包含抽水:其概率占比(1 除以各赔率)之和大于 100%。一种常用的去水方法是将每个概率占比除以该总和,计算出的新概率占比倒数即为无抽水赔率。
虚构赔率示例,非数据源真实数据
| 比赛结果 | 赔率 | 1 / 赔率 | 去水后概率 | 无抽水赔率 |
|---|---|---|---|---|
1 | 2.10 | 47.6% | 45.4% | 2.20 |
X | 3.40 | 29.4% | 28.1% | 3.56 |
2 | 3.60 | 27.8% | 26.5% | 3.77 |
| 总和 | 104.8% | 100.0% |
这只是多种计算方法之一,是否使用以及选择哪种方法完全取决于你。我们提供各博彩公司的原始赔率及最近更新时间,无抽水赔率需由你在客户端自行计算。
在单个脚本中对比 Pinnacle 与其他赔率
该脚本会请求你的 API Key 权限下所有博彩公司对某场比赛的 1X2 赔率,并将各赔率与 Pinnacle 在同一盘口下并排输出,同时显示距离上次更新的秒数。脚本会从 ODDFEEDS_KEY 中读取你的 Key。
// One match's 1X2 prices set beside Pinnacle's on the same period and line, with
// how long ago each price last changed. What you do with the two prices is yours.
// ODDFEEDS_KEY=<your key> node pinnacle-reference.mjs <match id>
const API = process.env.ODDFEEDS_URL || 'https://oddfeeds.com/api/v1/feeds';
const matchId = Number(process.argv[2]);
const SIDE = { 2: '1', 3: 'X', 4: '2' };
const ago = (utc) => Math.round((Date.now() - Date.parse(`${utc}Z`)) / 1000);
const res = await fetch(API, {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.ODDFEEDS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
scope: 'odds',
match_ids: [matchId],
odd_type_ids: [2, 3, 4],
odd_period_ids: [1],
}),
});
const feed = await res.json();
if (feed.status !== 'ok') throw new Error(`${res.status}: ${feed.error}`);
const rows = [...feed.data.prematch, ...feed.data.inplay]
.filter((r) => r.back_lay_id === 0 && (r.order ?? 1) === 1); // back, best level
console.log(`Match ${matchId}: ${rows.length} prices`);
// The same outcome = the same period, type and line (hc).
const key = (r) => `${r.period_id}|${r.type_id}|${r.hc}`;
const pinnacle = new Map(rows.filter((r) => r.bookmaker.name === 'Pinnacle')
.map((r) => [key(r), r]));
for (const r of rows) {
const p = pinnacle.get(key(r));
if (!p || r === p) continue;
const line = r.hc ? ` hc ${r.hc}` : '';
console.log(` ${SIDE[r.type_id]}${line}: ${r.bookmaker.name} ${r.price}`
+ ` (${ago(r.datetime)} s), Pinnacle ${p.price} (${ago(p.datetime)} s)`);
}# One match's 1X2 prices set beside Pinnacle's on the same period and line, with
# how long ago each price last changed. What you do with the two prices is yours.
# ODDFEEDS_KEY=<your key> python pinnacle-reference.py <match id>
import os
import sys
from datetime import datetime, timezone
import requests
API = os.environ.get('ODDFEEDS_URL', 'https://oddfeeds.com/api/v1/feeds')
match_id = int(sys.argv[1])
SIDE = {2: '1', 3: 'X', 4: '2'}
def ago(utc):
then = datetime.fromisoformat(utc).replace(tzinfo=timezone.utc)
return round((datetime.now(timezone.utc) - then).total_seconds())
res = requests.post(
API,
headers={'Authorization': f"Bearer {os.environ['ODDFEEDS_KEY']}"},
json={'scope': 'odds', 'match_ids': [match_id],
'odd_type_ids': [2, 3, 4], 'odd_period_ids': [1]},
timeout=20,
)
feed = res.json()
if feed['status'] != 'ok':
raise RuntimeError(f"{res.status_code}: {feed['error']}")
rows = [r for r in feed['data']['prematch'] + feed['data']['inplay']
if r['back_lay_id'] == 0 and (r.get('order') or 1) == 1] # back, best level
print(f"Match {match_id}: {len(rows)} prices")
def key(r):
# The same outcome = the same period, type and line (hc).
return (r['period_id'], r['type_id'], r['hc'])
pinnacle = {key(r): r for r in rows if r['bookmaker']['name'] == 'Pinnacle'}
for r in rows:
p = pinnacle.get(key(r))
if not p or r is p:
continue
line = f" hc {r['hc']}" if r['hc'] else ''
print(f" {SIDE[r['type_id']]}{line}: {r['bookmaker']['name']} {r['price']}"
f" ({ago(r['datetime'])} s), Pinnacle {p['price']} ({ago(p['datetime'])} s)")下一步
基于 Pinnacle 的价值赔率查找用例 展示了价值赔率寻找工具还会从 API 中读取哪些数据。