> ## Documentation Index
> Fetch the complete documentation index at: https://oddspapi-v4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# GET markets

> 盘口列表，含 marketId、选项、时段、让分以及球员盘口标记。用于将赔率响应中的 ID 对应到名称。

> [!NOTE]
>
> **速率限制**：同一 API 密钥对该端点的两次调用之间至少间隔 1 秒。调用过快会返回 `429 RATE_LIMITED`。 每次调用消耗 1 次请求配额。 [了解限制规则](https://oddspapi-v4.mintlify.site/zh/docs/errors.md#rate-limits)

获取系统中可用的市场（盘口）列表。

## 端点

```http theme={null}
GET /v4/markets
```

## 请求参数

* **language** `(a2)` — （可选）返回锦标赛信息所使用的语言。默认值为 `en` for English.

### 请求示例

```http theme={null}
GET /v4/markets?language=en
```

### 响应示例

```json theme={null}
[
  {
    "marketId": 101,
    "marketLength": 3,
    "marketName": "Full Time Result",
    "playerProp": false,
    "sportId": 10,
    "handicap": 0,
    "period": "fulltime",
    "marketType": "1x2",
    "outcomes": [
      {
        "outcomeId": 101,
        "outcomeName": "1"
      },
      {
        "outcomeId": 102,
        "outcomeName": "X"
      },
      {
        "outcomeId": 103,
        "outcomeName": "2"
      }
    ]
  },
  {
    "marketId": 104,
    "marketLength": 2,
    "marketName": "Both Teams To Score",
    "playerProp": false,
    "sportId": 10,
    "handicap": 0,
    "period": "fulltime",
    "marketType": "totals",
    "outcomes": [
      {
        "outcomeId": 104,
        "outcomeName": "Yes"
      },
      {
        "outcomeId": 105,
        "outcomeName": "No"
      }
    ]
  },
  {
    "marketId": 106,
    "marketLength": 2,
    "marketName": "Over Under Full Time",
    "playerProp": false,
    "sportId": 10,
    "handicap": 0.5,
    "period": "fulltime",
    "marketType": "totals",
    "outcomes": [
      {
        "outcomeId": 106,
        "outcomeName": "Over"
      },
      {
        "outcomeId": 107,
        "outcomeName": "Under"
      }
    ]
  }
]
```

## 响应 (200 OK)

当请求成功时，服务器会返回状态码 `200` 并返回一个包含市场对象的 JSON 数组。每个市场对象包括以下字段：:

* **marketId** `(number)` — 市场的唯一标识符。
* **marketLength** `(number)` — 该市场中的结果（outcomes）数量。
* **marketName** `(string)` — 市场名称。
* **playerProp** `(boolean)` — 指示该市场是否为球员盘口（player prop）。
* **sportId** `(number)` — 关联的体育项目标识符。
* **handicap** `(number)` — 该市场对应的让分/让球值。
* **period** `(string)` — 该市场所属的比赛阶段。
* **marketType** `(string)` — 市场类型。
* **outcomes** `(array)` — 与此市场关联的结果（outcome）对象数组，每个 outcome 包含：:
  * **outcomeId** `(number)` — 结果的唯一标识符。
  * **outcomeName** `(string)` — 结果名称。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.