> ## 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 settlements

> 获取已结束赛事每个盘口的结算结果，用于判定投注输赢或作废。

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

返回指定比赛中所有可用市场的结算结果（settlement）。

## 端点

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

## 请求参数

* **fixtureId**\* `(string)` — 需要返回结算数据的比赛唯一 ID。
* **playerId** `(number)` — （可选）用于按球员过滤结果的唯一球员 ID。
* **outcomeId** `(number)` — （可选）用于按结果过滤的唯一 outcome ID。

### 请求示例

```http theme={null}
GET /v4/settlements?fixtureId=id1000001761301153
```

### 响应示例

```json theme={null}
{
  "fixtureId": "id1000001761301153",
  "markets": {
    "101": {
      "outcomes": {
        "101": {
          "players": {
            "0": {
              "result": "WIN"
            }
          }
        },
        "102": {
          "players": {
            "0": {
              "result": "LOSE"
            }
          }
        },
        "103": {
          "players": {
            "0": {
              "result": "LOSE"
            }
          }
        }
      }
    },
    "106": {
      "outcomes": {
        "106": {
          "players": {
            "0": {
              "result": "WIN"
            }
          }
        },
        "107": {
          "players": {
            "0": {
              "result": "LOSE"
            }
          }
        }
      }
    },
    "1056": {
      "outcomes": {
        "1056": {
          "players": {
            "0": {
              "result": "PUSH"
            }
          }
        },
        "1057": {
          "players": {
            "0": {
              "result": "PUSH"
            }
          }
        }
      }
    }
  }
}
```

## 响应 (200 OK)

当请求成功时，服务器会返回状态码 `200` — 返回给定比赛中，每个结果在球员维度上的结算结果。

* **fixtureId** `(string)` — 用于获取比分的比赛唯一标识符。
* **markets** `(object)` — 一个将 marketId 映射到结果与球员结算信息的映射。
  * **outcomes** `(object)` — 从结果 ID 到结果数据的映射。
    * **players** `(object)` — 每个结果映射到一个或多个参与结算的球员。
      * **result** `(string)` — 该球员对应结果的最终结算结果。可能的取值包括： `WIN`, `LOSE`, `HALFWIN`, `HALFLOSS`, `PUSH`, `CANCELLED`, `UNDECIDED`


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