GET historical-odds
端点
GET /v4/historical-odds请求参数
- fixtureId*
(string)— 要获取历史赔率的比赛 ID。 - bookmakers*
(string)— 以逗号分隔的博彩公司 slug 列表(最多 3 个)用于过滤结果。例如:pinnacle,bet365 - id
(number)— (可选)用于过滤的特定历史赔率记录的唯一 ID。 - playerId
(number)— (可选)与赔率关联的 playerId,用于缩小结果范围。 - outcomeId
(number)— (可选)用于过滤特定结果(outcome)赔率的 outcomeId。 - active
(boolean)— (可选)根据该历史记录当前是否仍然有效进行过滤。
请求示例
GET /v4/historical-odds?fixtureId=id1000000758265379响应示例
{
"fixtureId": "id1000000758265379",
"bookmakers": {
"pinnacle": {
"markets": {
"101": {
"outcomes": {
"101": {
"players": {
"0": [
{
"createdAt": "2025-04-16T21:12:10.506331+00:00",
"price": 9.11,
"limit": 1191.25,
"active": false,
"exchangeMeta": null
},
{
"createdAt": "2025-04-16T20:50:58.321847+00:00",
"price": 9.11,
"limit": 1191.25,
"active": true,
"exchangeMeta": null
}
]
}
}
}
},
"10168": {
"outcomes": {
"10168": {
"players": {
"0": [
{
"createdAt": "2025-04-16T20:16:45.057806+00:00",
"price": 1.729,
"limit": 13072.7023319616,
"active": false,
"exchangeMeta": null
},
{
"createdAt": "2025-04-16T20:16:18.597131+00:00",
"price": 1.729,
"limit": 13072.7023319616,
"active": true,
"exchangeMeta": null
},
{
"createdAt": "2025-04-16T20:15:51.441377+00:00",
"price": 1.699,
"limit": 13633.7625178827,
"active": true,
"exchangeMeta": null
}
]
}
}
}
}
}
}
}
}响应 (200 OK)
当请求成功时,服务器会返回状态码 200 并返回一个从 fixtureId 到嵌套博彩公司赔率历史的映射。.
- bookmakers
(object)— 按博彩公司 slug 分组的赔率历史- markets
(object)— 每场比赛包含带有结果(outcomes)的市场对象。 - outcomes
(object)— 带有球员数据的结果 ID。 - players
(object)— 包含赔率数据的球员信息,包括::- id
(number)— 历史赔率记录的唯一标识符。 - createdAt
(string)— 创建该历史赔率记录时的时间戳。 - price
(number)— 当时提供的价格(赔率)。 - limit
(number)— 当时该赔率允许的最大投注额。 - active
(boolean)— 指示该历史记录在当时是否处于激活状态。 - exchangeMeta
(object|null)— 如适用,包含交易所 back / lay 价格等元数据。
- id
- markets
备注
- 端点冷却时间:5000ms
