# Points

Lighter Robinhood (`lighter:robinhood`) runs a points program. It gives points
to the venue accounts that trade on it. Mosaiq executes through pooled venue
accounts, so the points go to the Mosaiq accounts, not to each trader.

Mosaiq keeps 10% of these points. Clients earn the other 90%, in proportion to
their fees on the venue. A client is an owner: the fees of the master account
and of every [sub-account](/concepts/sub-accounts) count together, and the
points go to the owner's wallet.

```text
client pool = venue points × (1 - Mosaiq share), rounded down to 6 places
your fees   = sum over the fills of all your accounts on the venue in the period of
              max(0, exchange + fees.mosaiq + fees.priority),
              plus sum over your outcome settlements on the venue in
              the period of max(0, venueFeeUsdc + mosaiqFeeUsdc),
              rounded half to even to 6 places
exchange    = fees.exchange × price, if fees.feeToken is a token other
              than USDC; else fees.exchange; less fees.exchangeRefund
your points = client pool × your fees / (sum of all clients' fees),
              rounded down to 6 places
```

The Mosaiq share is 0.1. `fees` and `price` are fields of each fill in
[`GET /v1/userFills`](/api/user-fills). `venueFeeUsdc` and `mosaiqFeeUsdc` are
fields of each settlement in
[`GET /v1/outcomeSettlements`](/api/outcome-settlements).
[`GET /v1/points`](/api/points) shows the points that an owner earned in each
period. Today Mosaiq shares only the points of Lighter Robinhood.

Lighter runs the points program. Mosaiq makes no promise about the value of
venue points.

These points are venue points. They are not the `points` of
[`GET /v1/portfolioHistory`](/api/portfolio-history), which are samples of
account value.

## Periods

Lighter gives points to the Mosaiq account all week. Lighter's API answers the
running total of these points. Mosaiq reads that total about once a week. The
points of a period are the total at that read, less the points of the periods
before it.

Mosaiq shares the points one period at a time. A period is a UTC time window
from `startMs`, included, to `endMs`, excluded. A period lasts about a week.
Read its exact bounds from `startMs` and `endMs`. Each period of a venue starts
where the previous one ends. So the periods have no gap, and no fill is in two
periods.

The period appears in `GET /v1/points` when Mosaiq records it. Mosaiq computes
the split once, at that time. `GET /v1/points` reads the recorded split, so a
recorded figure changes only with a [correction](#corrections).

## What counts

Only client accounts take part. Client accounts are all accounts except the
Mosaiq fee and House accounts. The fills of these two accounts never count, and
these accounts earn no points.

Your fees in a period follow these rules:

* A fill is in the period when its `createdAtMs` in `GET /v1/userFills` is at
  or after `startMs` and before `endMs`.
* The fills of all your accounts count: the master account and every
  sub-account.
* Each of your fills on the venue counts with the fees shown in
  `userFills[].fees`: `exchange + mosaiq + priority`. An absent `priority`
  counts as 0.
* A spot fill pays its venue fee in the token that `fees.feeToken` names. A
  fee in a token other than USDC counts at `fees.exchange × price` of that
  fill. A `USDC` fee counts as is. For example, a buy of 0.14 HYPE at a
  `price` of 82.023 shows `fees.exchange` 0.00009799 in `HYPE`. Its venue fee
  counts as 0.00009799 × 82.023 = 0.00803743377 USDC.
* On a spot fill, `fees.exchangeRefund` is the USDC that Mosaiq paid back
  because the venue fee was above the best published spot rate. The refund
  does not count: subtract it from the venue fee. If the buy above shows
  `fees.exchangeRefund` 0.006315, its venue fee counts as
  0.00803743377 - 0.006315 = 0.00172243377 USDC.
* A fill with a total fee below 0, such as a maker rebate, counts as 0. It does
  not reduce the fees of your other fills.
* The fills of liquidation orders on your account count, with their fees. The
  liquidation penalty does not count. It is not in `userFills[].fees`.
* Fills on other venues do not count.
* A fill that the venue never printed does not count. Its `fillId` starts
  with one of these prefixes:
  * `xc:`, a match between two Mosaiq traders on Lighter. Lighter records no
    trade for it.
  * `lt:`, a House takeover in a [liquidation](/concepts/liquidation).
  * `ls:`, the close of a position on a market that its venue settled.
* HIP-4 outcome settlements are on Hyperliquid, so they count only in a
  Hyperliquid period. Mosaiq shares no Hyperliquid points today. In a
  Hyperliquid period, a settlement of any of your accounts counts when its
  `settledAtMs` in `GET /v1/outcomeSettlements` is at or after `startMs` and
  before `endMs`. It counts with `venueFeeUsdc + mosaiqFeeUsdc`.
  `exchangeRefundUsdc` does not count. A losing side pays no fee, so its
  settlement counts 0.

If your fees in a period are 0, you earn no points for that period.

[`GET /v1/fees`](/api/fees) publishes the fee rates. `userFills[].fees` shows
the fees of each fill.

## Example week

Lighter gives Mosaiq 10,000 points for the period from Friday 2026-10-02
00:00 UTC to Friday 2026-10-09 00:00 UTC. The client pool is
10,000 × 0.9 = 9,000 points. Three clients and the House account trade on
`lighter:robinhood` in that period:

| Account | Fees shown in `userFills` | `feesUsdc` | `earnedPoints` |
| --- | --- | --- | --- |
| Client A | 30 USDC | `30` | `6000` |
| Client B | 10 USDC on taker fills, and a 2 USDC rebate on one maker fill | `10` | `2000` |
| Client C | 5 USDC | `5` | `1000` |
| House | 40 USDC | `0` | `0` |

B's maker fill has a total fee of -2 USDC, so it counts as 0. B's fees are 10
USDC, not 8. The House fees do not count. The clients' fees add up to 45 USDC,
the `clientFeesUsdc` of the period. A earns 9,000 × 30 / 45 = 6,000 points, B
earns 9,000 × 10 / 45 = 2,000 points, and C earns 9,000 × 5 / 45 = 1,000
points. The clients earn the whole pool, and Mosaiq keeps 1,000 points.

Mosaiq records the period on Monday 2026-10-12 at 09:00 UTC. From then on,
`GET /v1/points` returns this period for the wallet of client B:

```json
{
  "startMs": 1790899200000,
  "endMs": 1791504000000,
  "revision": 1,
  "recordedAtMs": 1791795600000,
  "venuePoints": "10000",
  "mosaiqShare": "0.1",
  "clientPoolPoints": "9000",
  "clientFeesUsdc": "45",
  "feesUsdc": "10",
  "earnedPoints": "2000"
}
```

The example response on the [`GET /v1/points`](/api/points) page is client A's.
It shows this period and the period before it.

## A period without client fees

If no client has fees above 0 in a period, no client earns points for that
period. Mosaiq keeps all the venue points of that period. Nothing carries over
to the next period.

## Rounding

Mosaiq rounds the client pool down to 6 decimal places. It rounds the fees of
each client to 6 decimal places, half to even. It rounds the points of each
client down to 6 decimal places. So the sum of client points never exceeds the
client pool. What the rounding leaves, less than 0.000001 point per client,
stays with Mosaiq.

Half to even rounds a value that is exactly halfway to the even digit:
0.0000025 becomes 0.000002, and 0.0000035 becomes 0.000004.

For example, take a client pool of 100 points and three clients with the same
fees. Each client earns 100 / 3 points, rounded down to 33.333333. The clients
earn 99.999999 points together, and Mosaiq keeps the 0.000001 point that is
left.

## Corrections

A correction is a new revision of a recorded period, with the same `startMs`
and `endMs`. Mosaiq records a correction when Lighter reverses points that it
gave for the period. Mosaiq can also record a correction for late fills. A late
fill is a fill of the period that Mosaiq recorded after the period itself. The
recorded split does not count a late fill until a correction. A late settlement
is a settlement of the period that Mosaiq booked after it recorded the period.
It counts the same way: only in a correction of its own period, never in a
later period.

A correction computes the split again, from the venue points of the new
revision and every fill and settlement recorded at that time. It keeps the Mosaiq share and
the rule of the first revision. A correction can raise or lower your points for
the period.

`revision` is 1 for the first record of a period, and each correction adds 1.
`recordedAtMs` is when Mosaiq recorded the revision that the response shows.
`GET /v1/points` shows the latest revision of each period. Mosaiq keeps the
earlier revisions as a record.

## Check your figure

You can compute `feesUsdc` and `earnedPoints` of a period from your own fills
and settlements. Read the fills of the period from `GET /v1/userFills`, for the
master account and for each sub-account. Set `startTime` to `startMs` and
`endTime` to `endMs - 1`. `endTime` is inclusive, so `endMs - 1` is the last
millisecond of the period. For the master account of client A in the example:

```http
GET /v1/userFills?user=0x00000000000000000000000000000000000000a1&startTime=1790899200000&endTime=1791503999999
```

Then do these steps:

1. While `hasMore` is `true`, pass `nextCursor` as `cursor` and read the next
   page. Do the same for each of your accounts.
2. Keep the fills whose `venue` is the venue of the period. Drop the fills
   whose `fillId` starts with `xc:`, `lt:`, or `ls:`.
3. For each fill, compute `max(0, exchange + mosaiq + priority)` from its
   `fees`. Count an absent `priority` as 0. If `feeToken` names a token other
   than USDC, use `exchange × price` as `exchange`. Subtract
   `exchangeRefund` from `exchange`, and count an absent `exchangeRefund` as 0.
4. For a Hyperliquid period, read every page of `GET /v1/outcomeSettlements`
   for each of your accounts. Keep the rows whose `settledAtMs` is at or after
   `startMs` and before `endMs`. For each row, compute
   `max(0, venueFeeUsdc + mosaiqFeeUsdc)`.
5. Add the results of steps 3 and 4, and round the sum to 6 decimal places,
   half to even. The result is `feesUsdc`.
6. Compute `clientPoolPoints × feesUsdc / clientFeesUsdc`, and round it down
   to 6 decimal places. The result is `earnedPoints`.

`clientPoolPoints` is `venuePoints × (1 - mosaiqShare)`, rounded down to 6
decimal places.

If your sum is higher than `feesUsdc`, the period has late fills or late
settlements of yours. They count only after a correction.
