> ## Documentation Index
> Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取已结算投注

> 按开赛日期窗口返回已结算投注，每笔成交一行，并附盈亏汇总

返回你在某个日期窗口内开赛的赛事上的**已结算（已判定）投注**，以及盈亏和成交量汇总。

此端点适用于针对已知时段的报表（例如“上周所有赛事”）。若要让本地历史副本随投注结算保持同步，请改用 [按游标获取已结算投注](https://docs.4casters.io/zh-Hans/pages/rest/user/get-graded-since.md) — 它按结算顺序依次遍历，因此你无需猜测日期窗口。

## 行的组织方式

* **每笔成交一行。** 一个成交了三次的订单会返回三行，每行有各自的 `txID`。请将 `txID` 作为行的唯一标识。
* **订单簿的两侧都包含在内。** 你吃掉的订单以 `origin: "wager"` 出现；你挂出并被他人吃掉的订单以 `origin: "offer"` 出现。无论哪种情况，`bet` 和 `odds` 都从**你的**一侧给出。
* \*\*日期对应赛事的开赛时间，\*\*而不是结算时间。结算较晚的投注仍归入其赛事所在的窗口。
* **每一行都内嵌了赛事信息。**

## 请求

`GET /user/v2/getGraded`

同样的参数也可以通过 `POST /user/v2/getGraded` 以 JSON 请求体发送。

**startDate** `string`

窗口起点（含），可为任意 ISO 8601 时间戳，与赛事开赛时间比较。省略时返回你的**全部历史** — 此时不受下文 35 天限制。

**endDate** `string`

窗口终点（不含），可为任意 ISO 8601 时间戳。默认为当前时间。

> [!WARNING]
>
> 发送 `startDate` 时，从 `startDate` 到 `endDate` 的窗口**最长为 35 天**。超出的窗口会以 `400` 拒绝 — 绝不会被静默截断。更长的时段请以 35 天为步长分页查询。

```bash curl theme={null}
curl "https://api.4casters.io/user/v2/getGraded?startDate=2026-08-01T00:00:00.000Z&endDate=2026-08-08T00:00:00.000Z" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## 响应

**data.graded** `array`

窗口内你的已结算成交。

**GradedBet**

**txID** `string`

成交 id。每行唯一。

**id** `string`

订单 id。同一订单的每笔成交共用此值。

**ticketNumber** `string`

展示用票据号。

**origin** `string`

`wager` — 你吃掉了此订单。`offer` — 你挂出了此订单并被吃掉。

**type** `string`

`moneyline`、`spread`、`total` 或 `moneyline1x2`。

**outcome** `string`

`winner`、`loser`、`half-win`、`half-loss` 或 `refunded`。

**bet** `number`

你在此笔成交上的本金。

**odds** `number`

从你一侧给出的美式赔率。

**participantID** `string`

你所支持的参赛方。出现在 `moneyline` 和 `spread` 上。

**spread** `number`

盘口线。出现在 `spread` 上。

**total** `number`

盘口线。出现在 `total` 上。

**OU** `string`

`over` 或 `under`。出现在 `total` 上。

**market** `string`

所支持的结果。出现在 `moneyline1x2` 上。

**side** `string`

`yes` 或 `no`。出现在 `moneyline1x2` 上。

**fee** `string`

此笔成交收取的佣金。你作为 maker 时为 `"0.00"` — maker 不支付佣金。

**risk** `string`

你承担风险的金额：本金加 `fee`。

**win** `string`

你可能赢得的金额：毛收益减 `fee`。

**result** `string`

你在此笔成交上的结算盈亏 — 获胜时为 `win`，亏损时为负的 `risk`。结果未知时不出现。

**createdAt** `string`

下单的 ISO 8601 时间。

**matchedTime** `string`

成交的 ISO 8601 时间。

**settledAt** `string`

该笔成交被判定的 ISO 8601 时间。

**graded** `boolean`

此处始终为 `true`。

**adminRefund** `boolean`

若该投注由管理员退款而非按结果判定，则为 `true`。

**cancelled** `boolean`

对于 `offer` 行，表示你订单的剩余部分之后是否被取消。`wager` 行始终为 `false`。

**takenRatio** `number`

仅 `offer` 行。你订单的完整数量中已成交的比例，`0`–`1`。

**expiry** `string`

仅 `offer` 行。你订单的 ISO 8601 过期时间，或 `null`。

**wagerRequestID** `string`

你下单时发送的 `wagerRequestID`，或 `null`。

**userReference** `string`

你下单时发送的 `userReference`，或 `null`。

**platform** `string`

订单来源，例如 `api`、`web`、`mobile`。

<Snippet file="zh-Hans/types/game-summary.mdx" />

**data.summary** `object`

返回各行的汇总合计。

**summary**

**pnl** `number`

`result` 之和，以整美元计。

**volume** `number`

每行 `risk` 与 `win` 中较小者之和，以整美元计。

> [!NOTE]
>
> 行上的金额字段（`fee`、`risk`、`win`、`result`）是保留两位小数的**字符串**，因此可以精确相加。`summary` 合计为四舍五入后的数字。

在极少数情况下，某行对应的订单无法加载。该行仅包含 `txID`、`ticketNumber`、`settledAt`、`matchedTime` 和 `game`，且其 `id` 是对象 `{ "_id": "…", "error": "…" }` 而非字符串。请跳过或记录该行。

### 示例

一笔以 -110 吃单买大、本金 \$100 且输掉的投注，佣金为 1%：

```json JSON theme={null}
{
  "data": {
    "graded": [
      {
        "txID": "66b2a1f0c3e4d5a6b7c8d9e0",
        "id": "66b2a1e9c3e4d5a6b7c8d9d1",
        "ticketNumber": "8f3c2a1b9d4e5f60718293a4b5c6d7e8",
        "origin": "wager",
        "type": "total",
        "outcome": "loser",
        "bet": 100,
        "odds": -110,
        "total": 8.5,
        "OU": "over",
        "fee": "1.00",
        "risk": "101.00",
        "win": "89.91",
        "result": "-101.00",
        "createdAt": "2026-08-01T23:10:04.112Z",
        "matchedTime": "2026-08-01T23:10:04.380Z",
        "settledAt": "2026-08-02T02:41:57.003Z",
        "graded": true,
        "adminRefund": false,
        "cancelled": false,
        "wagerRequestID": null,
        "userReference": "my-ref-1042",
        "platform": "api",
        "game": {
          "id": "66b0f4e2a9b8c7d6e5f4a3b2",
          "league": "MLB",
          "sport": "baseball",
          "start": "2026-08-01T23:05:00.000Z",
          "ended": true,
          "live": false,
          "isSpecials": false,
          "participants": [/* away, home */]
        }
      }
    ],
    "summary": { "pnl": -101, "volume": 90 }
  }
}
```

## 速率限制

**每用户每分钟 60 次请求**，并叠加 [全局每 IP 限制](https://docs.4casters.io/zh-Hans/pages/rate-limiting.md#per-ip-rest)。`429` 响应带有以秒为单位的 `Retry-After` 响应头。

## 错误

| 状态 | 含义 |
| - | - |
| `400` | 日期格式错误，或窗口超过 35 天。 |
| `401` | 认证令牌缺失或无效。 |
| `403` | 你的账户无权使用此端点。 |
| `429` | 触发速率限制。请等待 `Retry-After` 秒。 |


## OpenAPI

````yaml sources/core-api.openapi.json GET /user/v2/getGraded
openapi: 3.0.3
info:
  title: 4casters API
  version: 1.0.0
  description: >-
    Programmatic access to the 4casters peer-to-peer betting exchange. Generated
    from the service itself — every documented endpoint is described by the same
    schema that validates its requests.
  x-audience: public
servers:
  - url: https://api.4casters.io
security: []
paths:
  /user/v2/getGraded:
    get:
      tags:
        - Graded bets
      summary: Get graded bets
      description: >-
        Your settled (graded) bets whose game started inside a date window, one
        row per fill, plus a P&L summary.


        Rows are per **fill**: an order that matched three times is three rows,
        each with its own `txID`. You appear as the taker (`origin: "wager"`) on
        orders you took and as the maker (`origin: "offer"`) on orders you
        posted that were taken; `bet` and `odds` are always from **your** side.
        Each row embeds its game.


        **The window is capped at 35 days.** Omit `startDate` for your full
        history; an explicit window wider than 35 days is rejected with `400`
        rather than silently truncated. To poll for newly settled bets without
        guessing dates, use `getGradedSince`.


        Dates match the **start time of the game**, not the settlement time, so
        a bet that settles late still falls in its game's window. Any ISO 8601
        string is accepted.


        Settlement amounts are ledger-anchored: `fee` is the commission actually
        charged on the fill, `risk` is stake plus fee, `win` is gross winnings
        minus fee, and `result` is the signed P&L. Makers pay no commission.


        This endpoint is rate limited to **60 requests per minute per user** on
        top of the global limit; a `429` carries `Retry-After`.


        Also accepts `POST` with the same parameters sent as a JSON body.
      parameters:
        - name: startDate
          in: query
          required: false
          description: >-
            Start of the window (inclusive), matched against the game start
            time. Omit for your full history.
          schema:
            type: string
            example: '2026-08-01T00:00:00.000Z'
        - name: endDate
          in: query
          required: false
          description: >-
            End of the window (exclusive), matched against the game start time.
            Defaults to now.
          schema:
            type: string
            example: '2026-08-01T00:00:00.000Z'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      graded:
                        type: array
                        items:
                          anyOf:
                            - type: object
                              properties:
                                game:
                                  anyOf:
                                    - type: object
                                      properties:
                                        isSpecials:
                                          type: boolean
                                        isYesNo:
                                          description: >-
                                            A Yes/No market: name it by eventName,
                                            its sides by homeAway (away = Yes).
                                          type: boolean
                                        eventName:
                                          type: string
                                        tournamentName:
                                          nullable: true
                                          type: string
                                        periodName:
                                          type: string
                                        id:
                                          type: string
                                          pattern: ^[0-9a-fA-F]{24}$
                                        ended:
                                          type: boolean
                                        league:
                                          type: string
                                        live:
                                          type: boolean
                                        parentGameID:
                                          nullable: true
                                          type: string
                                          pattern: ^[0-9a-fA-F]{24}$
                                        start:
                                          type: string
                                          description: ISO 8601 timestamp
                                          example: '2026-08-01T00:00:00.000Z'
                                        sport:
                                          type: string
                                        participants:
                                          type: array
                                          items:
                                            anyOf:
                                              - type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    pattern: ^[0-9a-fA-F]{24}$
                                                  longName:
                                                    type: string
                                                  shortName:
                                                    type: string
                                                  mainPitcher:
                                                    type: string
                                                  homeAway:
                                                    description: Absent on outright games.
                                                    type: string
                                                    enum:
                                                      - home
                                                      - away
                                                  score:
                                                    type: number
                                                  rotationNumber:
                                                    type: string
                                                  futuresSide:
                                                    type: string
                                                required:
                                                  - id
                                                  - longName
                                                  - shortName
                                                  - futuresSide
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    pattern: ^[0-9a-fA-F]{24}$
                                                  longName:
                                                    type: string
                                                  shortName:
                                                    type: string
                                                  mainPitcher:
                                                    type: string
                                                  homeAway:
                                                    description: Absent on outright games.
                                                    type: string
                                                    enum:
                                                      - home
                                                      - away
                                                  score:
                                                    type: number
                                                  rotationNumber:
                                                    type: string
                                                  futuresSide:
                                                    type: string
                                                required:
                                                  - id
                                                  - longName
                                                  - shortName
                                                  - futuresSide
                                                additionalProperties: false
                                          minItems: 2
                                          maxItems: 2
                                          description: Away participant first, then home.
                                      required:
                                        - isSpecials
                                        - tournamentName
                                        - periodName
                                        - id
                                        - league
                                        - live
                                        - sport
                                        - participants
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        _id:
                                          type: string
                                        error:
                                          type: string
                                      required:
                                        - _id
                                        - error
                                      additionalProperties: false
                                      description: >-
                                        The entity could not be loaded; `_id`
                                        identifies it.
                                outcome:
                                  type: string
                                  enum:
                                    - winner
                                    - loser
                                    - half-win
                                    - half-loss
                                    - refunded
                                id:
                                  type: string
                                  pattern: ^[0-9a-fA-F]{24}$
                                  description: The order (session) id.
                                graded:
                                  type: boolean
                                type:
                                  type: string
                                  enum:
                                    - moneyline
                                    - spread
                                    - total
                                    - moneyline1x2
                                    - outright
                                bet:
                                  type: number
                                  description: Your stake on this fill.
                                txID:
                                  type: string
                                  pattern: ^[0-9a-fA-F]{24}$
                                  description: The fill (take transaction) id.
                                closed:
                                  type: boolean
                                  enum:
                                    - false
                                createdAt:
                                  type: string
                                  description: ISO 8601 timestamp
                                  example: '2026-08-01T00:00:00.000Z'
                                adminRefund:
                                  type: boolean
                                wagerRequestID:
                                  nullable: true
                                  type: string
                                  pattern: ^[0-9a-fA-F]{24}$
                                userReference:
                                  nullable: true
                                  type: string
                                isPostArb:
                                  type: boolean
                                  enum:
                                    - true
                                isOutright:
                                  type: boolean
                                  enum:
                                    - true
                                outrightParticipant:
                                  type: object
                                  properties:
                                    longName:
                                      type: string
                                    shortName:
                                      type: string
                                    outcome:
                                      type: string
                                  required:
                                    - longName
                                    - shortName
                                  additionalProperties: false
                                ticketNumber:
                                  type: string
                                odds:
                                  type: number
                                  description: American odds from your perspective.
                                matchedTime:
                                  type: string
                                  description: ISO 8601 timestamp
                                  example: '2026-08-01T00:00:00.000Z'
                                settledAt:
                                  type: string
                                  description: ISO 8601 timestamp
                                  example: '2026-08-01T00:00:00.000Z'
                                fee:
                                  type: string
                                  description: Commission actually charged on this fill.
                                platform:
                                  type: string
                                risk:
                                  type: string
                                  description: Stake plus commission.
                                win:
                                  type: string
                                  description: Gross winnings minus commission.
                                result:
                                  description: >-
                                    Signed settled P&L; absent when the outcome
                                    is unknown.
                                  type: string
                                origin:
                                  type: string
                                  enum:
                                    - wager
                                  description: You took this order.
                                cancelled:
                                  type: boolean
                                  enum:
                                    - false
                                participantID:
                                  nullable: true
                                  type: string
                                  pattern: ^[0-9a-fA-F]{24}$
                                spread:
                                  type: number
                                total:
                                  type: number
                                OU:
                                  type: string
                                  enum:
                                    - over
                                    - under
                                side:
                                  type: string
                                  enum:
                                    - 'yes'
                                    - 'no'
                                market:
                                  type: string
                              required:
                                - game
                                - id
                                - type
                                - bet
                                - txID
                                - closed
                                - ticketNumber
                                - odds
                                - fee
                                - risk
                                - win
                                - origin
                                - cancelled
                              additionalProperties: false
                            - type: object
                              properties:
                                game:
                                  anyOf:
                                    - type: object
                                      properties:
                                        isSpecials:
                                          type: boolean
                                        isYesNo:
                                          description: >-
                                            A Yes/No market: name it by eventName,
                                            its sides by homeAway (away = Yes).
                                          type: boolean
                                        eventName:
                                          type: string
                                        tournamentName:
                                          nullable: true
                                          type: string
                                        periodName:
                                          type: string
                                        id:
                                          type: string
                                          pattern: ^[0-9a-fA-F]{24}$
                                        ended:
                                          type: boolean
                                        league:
                                          type: string
                                        live:
                                          type: boolean
                                        parentGameID:
                                          nullable: true
                                          type: string
                                          pattern: ^[0-9a-fA-F]{24}$
                                        start:
                                          type: string
                                          description: ISO 8601 timestamp
                                          example: '2026-08-01T00:00:00.000Z'
                                        sport:
                                          type: string
                                        participants:
                                          type: array
                                          items:
                                            anyOf:
                                              - type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    pattern: ^[0-9a-fA-F]{24}$
                                                  longName:
                                                    type: string
                                                  shortName:
                                                    type: string
                                                  mainPitcher:
                                                    type: string
                                                  homeAway:
                                                    description: Absent on outright games.
                                                    type: string
                                                    enum:
                                                      - home
                                                      - away
                                                  score:
                                                    type: number
                                                  rotationNumber:
                                                    type: string
                                                  futuresSide:
                                                    type: string
                                                required:
                                                  - id
                                                  - longName
                                                  - shortName
                                                  - futuresSide
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    pattern: ^[0-9a-fA-F]{24}$
                                                  longName:
                                                    type: string
                                                  shortName:
                                                    type: string
                                                  mainPitcher:
                                                    type: string
                                                  homeAway:
                                                    description: Absent on outright games.
                                                    type: string
                                                    enum:
                                                      - home
                                                      - away
                                                  score:
                                                    type: number
                                                  rotationNumber:
                                                    type: string
                                                  futuresSide:
                                                    type: string
                                                required:
                                                  - id
                                                  - longName
                                                  - shortName
                                                  - futuresSide
                                                additionalProperties: false
                                          minItems: 2
                                          maxItems: 2
                                          description: Away participant first, then home.
                                      required:
                                        - isSpecials
                                        - tournamentName
                                        - periodName
                                        - id
                                        - league
                                        - live
                                        - sport
                                        - participants
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        _id:
                                          type: string
                                        error:
                                          type: string
                                      required:
                                        - _id
                                        - error
                                      additionalProperties: false
                                      description: >-
                                        The entity could not be loaded; `_id`
                                        identifies it.
                                outcome:
                                  type: string
                                  enum:
                                    - winner
                                    - loser
                                    - half-win
                                    - half-loss
                                    - refunded
                                id:
                                  type: string
                                  pattern: ^[0-9a-fA-F]{24}$
                                  description: The order (session) id.
                                graded:
                                  type: boolean
                                type:
                                  type: string
                                  enum:
                                    - moneyline
                                    - spread
                                    - total
                                    - moneyline1x2
                                    - outright
                                bet:
                                  type: number
                                  description: Your stake on this fill.
                                txID:
                                  type: string
                                  pattern: ^[0-9a-fA-F]{24}$
                                  description: The fill (take transaction) id.
                                closed:
                                  type: boolean
                                  enum:
                                    - false
                                createdAt:
                                  type: string
                                  description: ISO 8601 timestamp
                                  example: '2026-08-01T00:00:00.000Z'
                                adminRefund:
                                  type: boolean
                                wagerRequestID:
                                  nullable: true
                                  type: string
                                  pattern: ^[0-9a-fA-F]{24}$
                                userReference:
                                  nullable: true
                                  type: string
                                isPostArb:
                                  type: boolean
                                  enum:
                                    - true
                                isOutright:
                                  type: boolean
                                  enum:
                                    - true
                                outrightParticipant:
                                  type: object
                                  properties:
                                    longName:
                                      type: string
                                    shortName:
                                      type: string
                                    outcome:
                                      type: string
                                  required:
                                    - longName
                                    - shortName
                                  additionalProperties: false
                                ticketNumber:
                                  type: string
                                odds:
                                  type: number
                                  description: American odds from your perspective.
                                matchedTime:
                                  type: string
                                  description: ISO 8601 timestamp
                                  example: '2026-08-01T00:00:00.000Z'
                                settledAt:
                                  type: string
                                  description: ISO 8601 timestamp
                                  example: '2026-08-01T00:00:00.000Z'
                                fee:
                                  type: string
                                  description: Commission actually charged on this fill.
                                platform:
                                  type: string
                                risk:
                                  type: string
                                  description: Stake plus commission.
                                win:
                                  type: string
                                  description: Gross winnings minus commission.
                                result:
                                  description: >-
                                    Signed settled P&L; absent when the outcome
                                    is unknown.
                                  type: string
                                origin:
                                  type: string
                                  enum:
                                    - offer
                                  description: You posted the order that was taken.
                                takenRatio:
                                  type: number
                                  description: >-
                                    How much of the order's full volume has been
                                    filled, 0–1.
                                cancelled:
                                  type: boolean
                                expiry:
                                  nullable: true
                                  type: string
                                  description: ISO 8601 timestamp
                                  example: '2026-08-01T00:00:00.000Z'
                                rebate:
                                  description: >-
                                    Maker rebate paid on this fill, as a decimal
                                    string with five decimals. Present only when
                                    one was paid.
                                  type: string
                                spread:
                                  nullable: true
                                  type: number
                                total:
                                  nullable: true
                                  type: number
                                participantID:
                                  nullable: true
                                  type: string
                                  pattern: ^[0-9a-fA-F]{24}$
                                OU:
                                  type: string
                                  enum:
                                    - over
                                    - under
                                side:
                                  type: string
                                  enum:
                                    - 'yes'
                                    - 'no'
                                market:
                                  type: string
                              required:
                                - game
                                - id
                                - type
                                - bet
                                - txID
                                - closed
                                - ticketNumber
                                - odds
                                - fee
                                - risk
                                - win
                                - origin
                                - takenRatio
                                - spread
                                - total
                              additionalProperties: false
                            - type: object
                              properties:
                                txID:
                                  type: string
                                  pattern: ^[0-9a-fA-F]{24}$
                                ticketNumber:
                                  type: string
                                id:
                                  type: object
                                  properties:
                                    _id:
                                      type: string
                                    error:
                                      type: string
                                  required:
                                    - _id
                                    - error
                                  additionalProperties: false
                                  description: >-
                                    The entity could not be loaded; `_id`
                                    identifies it.
                                game:
                                  anyOf:
                                    - type: object
                                      properties:
                                        isSpecials:
                                          type: boolean
                                        isYesNo:
                                          description: >-
                                            A Yes/No market: name it by eventName,
                                            its sides by homeAway (away = Yes).
                                          type: boolean
                                        eventName:
                                          type: string
                                        tournamentName:
                                          nullable: true
                                          type: string
                                        periodName:
                                          type: string
                                        id:
                                          type: string
                                          pattern: ^[0-9a-fA-F]{24}$
                                        ended:
                                          type: boolean
                                        league:
                                          type: string
                                        live:
                                          type: boolean
                                        parentGameID:
                                          nullable: true
                                          type: string
                                          pattern: ^[0-9a-fA-F]{24}$
                                        start:
                                          type: string
                                          description: ISO 8601 timestamp
                                          example: '2026-08-01T00:00:00.000Z'
                                        sport:
                                          type: string
                                        participants:
                                          type: array
                                          items:
                                            anyOf:
                                              - type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    pattern: ^[0-9a-fA-F]{24}$
                                                  longName:
                                                    type: string
                                                  shortName:
                                                    type: string
                                                  mainPitcher:
                                                    type: string
                                                  homeAway:
                                                    description: Absent on outright games.
                                                    type: string
                                                    enum:
                                                      - home
                                                      - away
                                                  score:
                                                    type: number
                                                  rotationNumber:
                                                    type: string
                                                  futuresSide:
                                                    type: string
                                                required:
                                                  - id
                                                  - longName
                                                  - shortName
                                                  - futuresSide
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    pattern: ^[0-9a-fA-F]{24}$
                                                  longName:
                                                    type: string
                                                  shortName:
                                                    type: string
                                                  mainPitcher:
                                                    type: string
                                                  homeAway:
                                                    description: Absent on outright games.
                                                    type: string
                                                    enum:
                                                      - home
                                                      - away
                                                  score:
                                                    type: number
                                                  rotationNumber:
                                                    type: string
                                                  futuresSide:
                                                    type: string
                                                required:
                                                  - id
                                                  - longName
                                                  - shortName
                                                  - futuresSide
                                                additionalProperties: false
                                          minItems: 2
                                          maxItems: 2
                                          description: Away participant first, then home.
                                      required:
                                        - isSpecials
                                        - tournamentName
                                        - periodName
                                        - id
                                        - league
                                        - live
                                        - sport
                                        - participants
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        _id:
                                          type: string
                                        error:
                                          type: string
                                      required:
                                        - _id
                                        - error
                                      additionalProperties: false
                                      description: >-
                                        The entity could not be loaded; `_id`
                                        identifies it.
                                settledAt:
                                  type: string
                                  description: ISO 8601 timestamp
                                  example: '2026-08-01T00:00:00.000Z'
                                matchedTime:
                                  type: string
                                  description: ISO 8601 timestamp
                                  example: '2026-08-01T00:00:00.000Z'
                              required:
                                - txID
                                - ticketNumber
                                - id
                                - game
                              additionalProperties: false
                      summary:
                        type: object
                        properties:
                          pnl:
                            type: number
                            description: Sum of `result` over the rows, whole dollars.
                          volume:
                            type: number
                            description: >-
                              Sum of min(risk, win) over the rows, whole
                              dollars.
                        required:
                          - pnl
                          - volume
                        additionalProperties: false
                    required:
                      - graded
                      - summary
                    additionalProperties: false
                required:
                  - data
                additionalProperties: false
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid auth token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The account may not perform this action
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited — see Retry-After
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - authToken: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
      additionalProperties: false
  securitySchemes:
    authToken:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        The auth token returned by `POST /user/login` (`data.user.auth`), sent
        as the raw header value — no `Bearer` prefix.

````

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