---
title: "历史赔率"
description: "查看一场比赛在过去某一时间的赔率、赔率如何变化以及收在何处，数据自2026年11月24日起。"
canonical: https://dino.markets/zh/docs/history/
---

> Index of every dino.markets page and doc for AI readers: [llms.txt](https://dino.markets/llms.txt)

# 历史赔率

查看一场比赛在过去某一时间的赔率、赔率如何变化以及收在何处，数据自2026年11月24日起。

## 历史数据包含什么

- 最早的价格来自2026年11月24日15:28 UTC。更早的数据不提供。
- 历史数据通常比实时价格滞后不到75分钟，每天有一次可能达到约95分钟。`as_of`说明响应的数据完整到什么时间。
- 它保存[赔率接口](https://dino.markets/zh/docs/odds/)上各博彩公司的价格变化，即我们读取每家博彩公司时看到的变化。
- 需要Starter、Basic或Pro套餐。Free密钥会收到`403 plan_limit`，且不扣积分。
- 返回价格的历史调用花10积分。空响应、被拒绝的调用和错误不收费。
- 历史数据只在HTTP API上提供。[MCP工具](https://dino.markets/zh/docs/mcp/)不读取它。

| 你想要 | 调用 | 积分 |
| --- | --- | --- |
| 某一时间的赔率 | 带`at`的`GET /v2/odds`或`GET /v2/events/{event_id}/odds` | 10 |
| 一场比赛的初始价格、变化和收盘价格 | `GET /v2/events/{event_id}/odds/history` | 10 |
| 已结束比赛的初始价格和收盘价格 | `GET /v2/closing-lines` | 10 |
| 结束超过72小时的比赛 | 带`status=finished`的`GET /v2/events` | 免费 |

## 限制

- 2026年11月30日之前，部分主让分盘和主大小分盘可能偏差约1分，多见于Kambi系博彩公司。
- 使用`alternates=true`时，历史数据可能列出博彩公司已经撤下的盘口值。
- 2026年11月27日之前结束的比赛没有比分。
- 收盘价格是开赛时间之前最后看到的价格。冠军盘没有收盘价格。

## 过去某一时间的赔率

在`GET /v2/odds`或`GET /v2/events/{event_id}/odds`上添加`at`，即可获得该时间的价格。以下是11月29日00:00 UTC的两场NBA比赛：

```
curl -s -G "https://api.dino.markets/v2/odds" \
  -d league=nba -d at=2026-11-29T00:00:00Z \
  -d books=pinnacle -d markets=moneyline -d limit=2 \
  -H "Authorization: Bearer $DINO_API_KEY"
```

200 OK

```
{
  "as_of": "2026-11-29T00:00:00Z",
  "requested_at": "2026-11-29T00:00:00Z",
  "events": [
    {
      "id": "094b68a1809adeed34d5d905d77efb77",
      "kind": "game",
      "sport": "basketball",
      "league": "nba",
      "start_time": "2026-11-29T01:00:00Z",
      "live": false,
      "status": "scheduled",
      "participants": [
        {"id": "p_bjf2u3f", "name": "Chicago Bulls", "role": "home"},
        {"id": "p_7ezynwl", "name": "Indiana Pacers", "role": "away"}
      ],
      "home": {"id": "p_bjf2u3f", "name": "Chicago Bulls"},
      "away": {"id": "p_7ezynwl", "name": "Indiana Pacers"},
      "score": null,
      "books": [
        {
          "key": "pinnacle",
          "name": "Pinnacle",
          "markets": [
            {
              "key": "moneyline",
              "period": "game",
              "line": null,
              "main": true,
              "updated_at": "2026-11-28T23:49:14Z",
              "outcomes": [
                {
                  "name": "Chicago Bulls",
                  "participant_id": "p_bjf2u3f",
                  "side": "home",
                  "price": "2.220",
                  "american": "+122"
                },
                {
                  "name": "Indiana Pacers",
                  "participant_id": "p_7ezynwl",
                  "side": "away",
                  "price": "1.741",
                  "american": "-135"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "1b6d5c225969a0ff2dbf424ac05ed430",
      "kind": "game",
      "sport": "basketball",
      "league": "nba",
      "start_time": "2026-11-29T01:00:00Z",
      "live": false,
      "status": "scheduled",
      "participants": [
        {"id": "p_mr77vgg", "name": "Milwaukee Bucks", "role": "home"},
        {"id": "p_jmzsewi", "name": "Oklahoma City Thunder", "role": "away"}
      ],
      "home": {"id": "p_mr77vgg", "name": "Milwaukee Bucks"},
      "away": {"id": "p_jmzsewi", "name": "Oklahoma City Thunder"},
      "score": null,
      "books": [
        {
          "key": "pinnacle",
          "name": "Pinnacle",
          "markets": [
            {
              "key": "moneyline",
              "period": "game",
              "line": null,
              "main": true,
              "updated_at": "2026-11-28T23:49:14Z",
              "outcomes": [
                {
                  "name": "Milwaukee Bucks",
                  "participant_id": "p_mr77vgg",
                  "side": "home",
                  "price": "5.500",
                  "american": "+450"
                },
                {
                  "name": "Oklahoma City Thunder",
                  "participant_id": "p_jmzsewi",
                  "side": "away",
                  "price": "1.176",
                  "american": "-568"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "next_cursor": "MjAyNi0xMS0yOVQwMTowMDowMFp8MWI2ZDVjMjI1OTY5YTBmZjJkYmY0MjRhYzA1ZWQ0MzA"
}
```

在单场比赛接口上，响应用单个`event`代替`events`，且没有`next_cursor`。

| 参数 | 类型 | 默认值 | 含义 |
| --- | --- | --- | --- |
| `at` | RFC 3339时间 | 无 | 你要查询的时间，例如`2026-11-29T00:00:00Z`。`+`偏移要写成`%2B`。空值或其他格式返回400。 |

其他参数都与[赔率接口](https://dino.markets/zh/docs/odds/#parameters)相同，包括`depth`。

响应列出哪些比赛：

- 不带`status`时，联赛接口列出当时未开始或进行中且有价格的比赛。
- 在`at`之前超过12小时开赛的比赛不在联赛接口中列出。
- 在`at`之前24小时内价格没有变化的冠军盘也不列出。
- 早于我们对某场比赛首条记录的时间，该比赛没有博彩公司。
- 从我们看到比赛结束的时间起，该比赛没有博彩公司。
- 一页的比赛数可能少于`limit`，甚至为零，但仍带有`next_cursor`。请继续翻页，直到它为`null`。

| 字段 | 类型 | 含义 |
| --- | --- | --- |
| `requested_at` | UTC时间 | 你发送的`at` |
| `as_of` | UTC时间 | 价格所属的时间：`at`；当历史数据尚未到达`at`时为更早的时间 |
| `status` | string | 比赛在该时间的状态 |

所有其他字段与赔率接口的[响应字段](https://dino.markets/zh/docs/odds/#response-fields)相同。

## 单场比赛的价格历史

`GET /v2/events/{event_id}/odds/history`为每家博彩公司每个盘口的每个结果返回一行。每行包含初始价格、收盘价格和每一次变化。以下调用取半小时内的变化：

```
curl -s -G "https://api.dino.markets/v2/events/094b68a1809adeed34d5d905d77efb77/odds/history" \
  -d books=pinnacle -d markets=moneyline \
  -d from=2026-11-28T23:00:00Z -d to=2026-11-28T23:30:00Z \
  -H "Authorization: Bearer $DINO_API_KEY"
```

200 OK

```
{
  "as_of": "2026-12-01T05:47:21Z",
  "event": {
    "id": "094b68a1809adeed34d5d905d77efb77",
    "kind": "game",
    "sport": "basketball",
    "league": "nba",
    "start_time": "2026-11-29T01:00:00Z",
    "live": false,
    "status": "finished",
    "participants": [
      {"id": "p_bjf2u3f", "name": "Chicago Bulls", "role": "home"},
      {"id": "p_7ezynwl", "name": "Indiana Pacers", "role": "away"}
    ],
    "home": {"id": "p_bjf2u3f", "name": "Chicago Bulls"},
    "away": {"id": "p_7ezynwl", "name": "Indiana Pacers"},
    "score": {"home": "108", "away": "107"}
  },
  "history": [
    {
      "book": "pinnacle",
      "market": "moneyline",
      "period": "game",
      "outcome": "Chicago Bulls",
      "open": {"at": "2026-11-28T04:12:21Z", "price": "1.709", "american": "-141"},
      "close": {"at": "2026-11-28T23:49:14Z", "price": "2.220", "american": "+122"},
      "changes": [
        {"at": "2026-11-28T23:04:13Z", "price": "2.070", "american": "+107"},
        {"at": "2026-11-28T23:19:13Z", "price": "2.130", "american": "+113"}
      ]
    },
    {
      "book": "pinnacle",
      "market": "moneyline",
      "period": "game",
      "outcome": "Indiana Pacers",
      "open": {"at": "2026-11-28T04:12:21Z", "price": "2.250", "american": "+125"},
      "close": {"at": "2026-11-28T23:49:14Z", "price": "1.741", "american": "-135"},
      "changes": [
        {"at": "2026-11-28T23:04:13Z", "price": "1.833", "american": "-120"},
        {"at": "2026-11-28T23:19:13Z", "price": "1.781", "american": "-128"}
      ]
    }
  ]
}
```

| 参数 | 类型 | 默认值 | 含义 |
| --- | --- | --- | --- |
| `event_id`（路径） | string | 必填 | 32个字符。其他长度返回400。 |
| `markets` | 逗号分隔 | `moneyline`、`moneyline_3way`、`spread`、`total`；冠军盘为`outright` | [盘口](https://dino.markets/zh/docs/odds/#markets)表中的key。足球盘口、球队大小分和球员盘口只有指定时才返回。未知的key返回400。 |
| `period` | string | `game` | `game`、`h1`、`h2`、`q1`、`q2`、`q3`、`q4`、`p1`、`p2`、`p3`或`all`。其他值返回400。 |
| `alternates` | `true`或`false` | `false` | `false`跟随主盘，因此一行的盘口值可能变动。`true`让每个盘口值单独成行。其他值返回400。 |
| `books` | 逗号分隔 | 全部博彩公司 | [博彩公司](https://dino.markets/zh/docs/leagues/#all-books)代码。未知代码返回400。 |
| `region` | string | 无 | `us`、`us2`、`uk`、`eu`、`au`、`ca`、`us_dfs`、`us_ex`、`fr`、`se`、`fi`、`asia`或`africa`。与`books`同用时，博彩公司必须同时满足两者。 |
| `from` | RFC 3339时间 | 无 | 保留该时间及之后的变化。`open`和`close`仍覆盖整场比赛。 |
| `to` | RFC 3339时间 | 无 | 保留该时间及之前的变化。`to`早于`from`返回400。 |

| 字段 | 类型 | 含义 |
| --- | --- | --- |
| `as_of` | UTC时间 | 历史数据完整到的时间 |
| `event` | object | 比赛，带赛事的[响应字段](https://dino.markets/zh/docs/odds/#response-fields)，不含`books` |
| `history` | array | 每个结果一行，按博彩公司、盘口、时段、球员、球队、盘口值和投注方向排序。历史数据中还没有该比赛的价格时为空。 |
| `book`、`market`、`period` | string | 博彩公司代码、盘口key和比赛时段 |
| `line` | string | 仅在带盘口值的盘口上使用`alternates=true`时出现：该行的盘口值。让分盘为主队的让分。 |
| `player`、`team` | object | 仅在球员盘口或球队大小分上出现：该行针对谁 |
| `outcome` | string | 结果名称，例如球队名或`Over` |
| `open` | object | 我们看到的第一个价格 |
| `close` | object或`null` | 开赛前最后看到的价格。在历史数据到达开赛时间之前、开赛前没有看到价格时，以及冠军盘上为`null`。 |
| `changes` | array | 价格或盘口值的每一次变化，最早的在前。`from`和`to`之间没有变化时为空。 |
| `at` | UTC时间 | 在`open`、`close`和`changes`中：我们看到该价格的时间 |
| `point` | string | 当时带正负号的盘口值。仅在带盘口值的盘口上出现。 |
| `price` | string | 小数赔率，保留3位小数 |
| `american` | string或`null` | 同一价格的美式赔率。价格为1.000或更低时为`null`。 |
| `live` | boolean | 在开赛时间或之后看到的价格上出现，值为`true` |

## 收盘赔率

`GET /v2/closing-lines`返回一个联赛的已结束比赛，最新的在前。每场比赛包含每家博彩公司的初始价格和收盘价格，以及我们持有时的最终比分。

```
curl -s -G "https://api.dino.markets/v2/closing-lines" \
  -d league=nba -d books=pinnacle -d markets=moneyline -d limit=1 \
  -d start_after=2026-11-29T01:00:00Z -d start_before=2026-11-29T01:00:00Z \
  -H "Authorization: Bearer $DINO_API_KEY"
```

200 OK

```
{
  "as_of": "2026-12-01T05:47:21Z",
  "events": [
    {
      "id": "1b6d5c225969a0ff2dbf424ac05ed430",
      "kind": "game",
      "sport": "basketball",
      "league": "nba",
      "start_time": "2026-11-29T01:00:00Z",
      "live": false,
      "status": "finished",
      "participants": [
        {"id": "p_mr77vgg", "name": "Milwaukee Bucks", "role": "home"},
        {"id": "p_jmzsewi", "name": "Oklahoma City Thunder", "role": "away"}
      ],
      "home": {"id": "p_mr77vgg", "name": "Milwaukee Bucks"},
      "away": {"id": "p_jmzsewi", "name": "Oklahoma City Thunder"},
      "score": {"home": "119", "away": "111"},
      "lines": [
        {
          "book": "pinnacle",
          "market": "moneyline",
          "period": "game",
          "outcome": "Milwaukee Bucks",
          "open": {"at": "2026-11-28T04:12:21Z", "price": "5.480", "american": "+448"},
          "close": {"at": "2026-11-29T00:34:16Z", "price": "5.510", "american": "+451"}
        },
        {
          "book": "pinnacle",
          "market": "moneyline",
          "period": "game",
          "outcome": "Oklahoma City Thunder",
          "open": {"at": "2026-11-28T04:12:21Z", "price": "1.168", "american": "-595"},
          "close": {"at": "2026-11-28T23:49:14Z", "price": "1.176", "american": "-568"}
        }
      ]
    }
  ],
  "next_cursor": "MjAyNi0xMS0yOVQwMTowMDowMFp8MWI2ZDVjMjI1OTY5YTBmZjJkYmY0MjRhYzA1ZWQ0MzA"
}
```

| 参数 | 类型 | 默认值 | 含义 |
| --- | --- | --- | --- |
| `league` | string | 必填 | [联赛](https://dino.markets/zh/docs/leagues/)中的值。缺失或未知时返回400，并列出有效值。 |
| `markets` | 逗号分隔 | 同价格历史 | 同价格历史 |
| `period` | string | `game` | 同价格历史 |
| `alternates` | `true`或`false` | `false` | 同价格历史 |
| `books` | 逗号分隔 | 全部博彩公司 | 同价格历史 |
| `region` | string | 无 | 同价格历史 |
| `start_after` | RFC 3339时间 | 无 | 只返回在该时间或之后开赛的比赛 |
| `start_before` | RFC 3339时间 | 无 | 只返回在该时间或之前开赛的比赛 |
| `limit` | integer | 25 | 每页比赛数，1到100 |
| `cursor` | string | 无 | 上一个响应的`next_cursor`，原样传入 |

只列出开赛前看到过价格的比赛。没有最终比分的比赛，在开赛超过12小时且6小时内没有任何博彩公司改价时算作已结束。一页的比赛数可能少于`limit`，甚至为零，但仍带有`next_cursor`。

| 字段 | 类型 | 含义 |
| --- | --- | --- |
| `as_of` | UTC时间 | 历史数据完整到的时间 |
| `events` | array | 比赛，带赛事的[响应字段](https://dino.markets/zh/docs/odds/#response-fields)，用`lines`代替`books` |
| `lines` | array | 每家博彩公司每个盘口的每个结果一行：`book`、`market`、`period`、`line`、`player`、`team`、`outcome`、`open`和`close`，与价格历史相同 |
| `next_cursor` | string或`null` | 下一页。最后一页为`null`。 |

## 更早结束的比赛

使用`status=finished`时，付费套餐可以在`/v2/events`和`/v2/odds`上获取最早到2026年11月24日的比赛。Free套餐只能获取在过去72小时内开赛的比赛。超过这个时间的比赛返回时带比分（如果我们持有），不带价格。不含价格的页面是免费的。

```
curl -s -G "https://api.dino.markets/v2/events" \
  -d league=nba -d status=finished -d limit=2 \
  -d start_before=2026-11-25T02:00:00Z \
  -H "Authorization: Bearer $DINO_API_KEY"
```

200 OK

```
{
  "as_of": "2026-12-01T06:04:49Z",
  "events": [
    {
      "id": "690c70077c6f7bff5be638bfd355137b",
      "kind": "game",
      "sport": "basketball",
      "league": "nba",
      "start_time": "2026-11-25T01:10:00Z",
      "live": false,
      "status": "finished",
      "participants": [
        {"id": "p_tsip2yi", "name": "Washington Wizards", "role": "home"},
        {"id": "p_64fagyf", "name": "Boston Celtics", "role": "away"}
      ],
      "home": {"id": "p_tsip2yi", "name": "Washington Wizards"},
      "away": {"id": "p_64fagyf", "name": "Boston Celtics"},
      "score": null
    },
    {
      "id": "66b5c29044efe2cee319ccab84c11afd",
      "kind": "game",
      "sport": "basketball",
      "league": "nba",
      "start_time": "2026-11-25T00:10:00Z",
      "live": false,
      "status": "finished",
      "participants": [
        {"id": "p_tnc3yxj", "name": "Orlando Magic", "role": "home"},
        {"id": "p_wtyhdvp", "name": "Detroit Pistons", "role": "away"}
      ],
      "home": {"id": "p_tnc3yxj", "name": "Orlando Magic"},
      "away": {"id": "p_wtyhdvp", "name": "Detroit Pistons"},
      "score": null
    }
  ],
  "next_cursor": null
}
```

参数和字段与[不含价格的比赛](https://dino.markets/zh/docs/odds/#games-without-prices)相同。Free密钥如果只请求超过72小时的比赛，会收到`403 plan_limit`。

## 错误

错误不扣积分。

| 状态 | `error` | `message` | 触发情况 |
| --- | --- | --- | --- |
| 400 | `invalid_request` | `at is empty. ...`或`at is not valid: "...". ...` | `at`不是RFC 3339时间 |
| 400 | `invalid_request` | `from is not valid: ...`、`to is not valid: ...`或`to is before from.` | 价格历史的时间窗口错误 |
| 400 | `invalid_request` | `league is required. Valid leagues: ...` | 请求收盘赔率时没有`league` |
| 400 | `invalid_request` | `Event id must be 32 characters.` | 路径中的id错误 |
| 400 | `invalid_request` | 见[参数错误](https://dino.markets/zh/docs/errors/#bad-parameters) | 任何其他错误参数 |
| 401 | `unauthorized` | `API key is missing. ...`、`API key is invalid or not tied to a subscription.`或`API key has been deactivated.` | 没有密钥、密钥错误或已撤销 |
| 403 | `plan_limit` | `Odds history needs a paid plan: Starter, Basic or Pro. The call returned no data and used no credit.` | Free密钥请求历史数据。开头的词语指明请求的内容。 |
| 404 | `not_found` | `Event not found. It may have concluded; get current ids from /v2/events.` | 没有这个id的比赛 |
| 404 | `not_found` | `No such route.` | 路径错误 |
| 405 | `method_not_allowed` | `Only GET is supported.` | 使用了其他方法 |
| 429 | `quota_exceeded` | `This call costs 10 credits and the key has 9 left. Add credits or wait for the quota to reset.` | 剩余积分少于10。不扣除任何积分。 |
| 429 | `quota_exceeded` | `Usage quota has been reached. Upgrade the plan or wait for the quota to reset.` | 套餐的积分已用完 |
| 429 | `rate_limited` | `Rate limited. Space requests out over several seconds and try again.` | 调用过多。按`Retry-After`等待。 |
| 500 | `internal_error` | `Something went wrong on our side. Try again in a moment.` | 我们这边的故障 |
| 503 | `unavailable` | `History is unavailable. Try again in a few seconds.` | 目前无法读取历史数据 |
| 503 | `unavailable` | `Too many large requests are being answered right now. ...` | 服务器正忙于处理大型响应 |
| 503 | `unavailable` | `Accounts are unavailable. Try again in a few seconds.`或`The service is starting up. Try again in a few seconds.` | 短暂故障。按`Retry-After`等待。 |

`plan_limit`消息开头的词语是`The at parameter needs`、`The depth parameter needs`、`Odds history needs`、`Closing lines need`或`Finished games that started more than 72 hours ago need`之一。
