# HTTP — `GET /v1/outcomeSettlements`

:::note\[Not open in production yet]
Outcome trading is not open in production yet. `GET /v1/outcomeMeta` answers
`tradingEnabled: false` and no market until Mosaiq opens it.
:::

The HIP-4 settlements that Mosaiq booked for an account, newest first. Public
endpoint.

```http
GET /v1/outcomeSettlements?user=0x00000000000000000000000000000000000000a1
```

A parameter that breaks its rule fails the request with HTTP `400` and
`invalid_request`. The table names the `detail` of each case.

| Parameter | Required | Meaning |
| --- | --- | --- |
| `user` | yes | The EVM address of the account. Missing or malformed fails with the detail `invalid_query`. |
| `cursor` | no | The `nextCursor` of the previous page. A malformed cursor fails with the detail `invalid_cursor`. |
| `limit` | no | Settlements per page, clamped to `1` to `500`, default `500`. A value that is not an integer from `0` to `65535` fails with the detail `invalid_query`. |

```jsonc
{
  "status": "ok",
  "data": {
    "settlements": [
      {
        "settlementId": "0192f0c4-0000-7000-8000-0000000151a1",
        "a": "BTC-1D-261022-0600-GE108000-NO/USDC",
        "side": "NO",
        "sideName": "No",
        "settleFraction": "1",
        "tokens": "34",
        "payoutUsdc": "34",
        "venueFeeUsdc": "0.0051",
        "mosaiqFeeUsdc": "0.0034",
        "exchangeRefundUsdc": "0.017748",
        "netUsdc": "33.973752",
        "venueFillId": "979242135627312",
        "settledAtMs": 1792648828630
      }
    ],
    "nextCursor": null
  },
  "server_time_ms": 1792648900000
}
```

At the expiry, Hyperliquid redeems every token of an outcome on the
sub-account of your account: the winning side pays 1 USDC per token, and the
losing side pays 0. Each row of `settlements` is one such settlement row, and
holds your one leg of it.

## Fields

| Field | Meaning |
| --- | --- |
| `settlementId` | The Mosaiq id of the settlement. |
| `a`, `side`, `sideName` | The market of the redeemed token in [`GET /v1/outcomeMeta`](/api/outcome-meta), its side, and the venue's name of the side. |
| `settleFraction` | The payout of one token: `1` for the winning side, `0` for the other. |
| `tokens` | The tokens redeemed. |
| `payoutUsdc` | `tokens × settleFraction`. |
| `venueFeeUsdc` | The part of the venue fee that you pay, at most Hyperliquid's best published spot taker rate, 1.5 bps of the payout. |
| `mosaiqFeeUsdc` | Mosaiq's fee, 1 bp of a winning payout. |
| `exchangeRefundUsdc` | The venue fee above your cap. The venue took it on your sub-account, and Mosaiq paid it back to your USDC balance. |
| `netUsdc` | What the settlement moved into your token cash: the payout less the whole venue fee and the Mosaiq fee. |
| `venueFillId` | The `tid` of the Hyperliquid settlement row. |
| `settledAtMs` | The time of the Hyperliquid settlement row, in Unix milliseconds. |

## Where the USDC lands

The payout lands in your token cash, the USDC on your sub-account that pays your
token buys ([token cash](/api/clearinghouse-state#token-cash)). In the example,
you held the 34 winning tokens:

* Hyperliquid took its whole fee, 0.022848 USDC, from the payout on your
  sub-account.
* Your venue fee is capped at 1.5 bps of 34, so `venueFeeUsdc` is 0.0051, and
  Mosaiq paid the other 0.017748 back to your USDC balance:
  `exchangeRefundUsdc`.
* Mosaiq took 1 bp of 34: `mosaiqFeeUsdc` 0.0034.
* Your token cash grew by `34 - 0.022848 - 0.0034` = 33.973752: `netUsdc`.

In all, you received `payoutUsdc - venueFeeUsdc - mosaiqFeeUsdc`, which is
`netUsdc + exchangeRefundUsdc`: 33.9915 USDC. A losing side redeems its tokens
for 0 and charges no fee, so every amount of its leg is `0`.

## Paging and limits

* Rows come newest first by the time Mosaiq booked them, then by
  `settlementId`. A row that
  Mosaiq booked late, such as one that it caught up after a restart, comes
  first, so a client that reads newest first until it meets a row it has seen
  misses none. `settledAtMs` stays the time of the venue row. Pass `nextCursor`
  as `cursor` to read the next page. It is `null` on the last page.
* An address with no account reads an empty list.
* The endpoint reads the database on every request. When all the read slots
  are busy, it returns HTTP `503` with `temporarily_unavailable` and the detail
  `public_reads_busy`, as [Busy server](/api/http-public#busy-server) describes.
