# Fees

Only confirmed fills pay a fee:

```text
total fee = venue fee charged to the user + Mosaiq fee
```

Mosaiq computes both parts from the fill notional and the liquidity role, and
settles them with the fill. An unfilled order pays nothing.
[`GET /v1/fees`](/api/fees) publishes the rates of each venue market.
`userFills[].fees` shows the amounts that each fill paid.

## Venue fee

Mosaiq executes through pooled venue accounts, so the venue fee tier is the
tier of the Mosaiq account, not of each trader.

Mosaiq charges you the venue's best published rate. You do not need to stake
or to reach any volume. If the Mosaiq account pays more, Mosaiq pays the
difference.

| Venue | Venue rate charged (maker / taker) |
| --- | --- |
| Hyperliquid (`hyperliquid`) | 0 / 1.44 bps, the VIP 6 tier with the Diamond staking discount |
| Lighter (`lighter`) | 0.28 / 1.96 bps |
| Lighter Robinhood (`lighter:robinhood`) | 0.84 / 2.45 bps |

HIP-3 markets such as `hyperliquid:xyz` start from the Hyperliquid rate and
apply the fee scale and the growth-mode multiplier that the DEX deployer
publishes. A HIP-3 market in growth mode, as most `hyperliquid:xyz` markets
are, has a venue rate of 0 / 0.288 bps. Out of growth mode, the taker rate is
higher, such as 2.88 bps. Read the rate of each market in
[`GET /v1/fees`](/api/fees).

On Lighter, all Mosaiq orders share one venue account. When your order meets
a resting order of another Mosaiq trader there, Lighter prints no trade.
Mosaiq books the match as a fill for both traders, at the resting order's
price, with the usual fees. Its `fillId` starts with `xc:`.

## Spot venue fee

:::note\[Not open in production yet]
Spot trading is not open in production yet. `GET /v1/spotMeta` lists no
market until Mosaiq opens it.
:::

On a spot market such as `HYPE/USDC`, Mosaiq also charges the best published
Hyperliquid spot rate: 0 maker / 1.5 bps taker, the VIP 6 spot tier with the
Diamond staking discount. The order keeps the rate in force when Mosaiq
accepts it.

Hyperliquid takes the fee of a spot buy in the base token and the fee of a
sale in USDC. You receive the fill net of that fee, as on Hyperliquid. When
the fee is above the best published rate on your share of the fill, Mosaiq
pays the difference back to you in USDC, with the fill. A base token fee
counts at the fill price.

Example: a taker buy of 2.5 HYPE at 40 USDC has a notional of 100 USDC. If
Hyperliquid takes 0.001575 HYPE (6.3 bps, 0.063 USDC), you receive
2.498425 HYPE and Mosaiq pays you 0.048 USDC back. Your venue fee is then
0.015 USDC, 1.5 bps.

`userFills[].fees.exchange` of a spot fill is the fee that Hyperliquid took,
in `fees.feeToken`. `fees.exchangeRefund` is the USDC that Mosaiq paid back.

## Mosaiq fee

The default Mosaiq fee is 0 bps maker and 0.3 bps taker. When the venue taker
rate is below 0.3 bps, as on HIP-3 markets in growth mode, the Mosaiq taker fee
is 0.1 bps. A spot order pays 0.3 bps, in USDC. Mosaiq can agree another rate
with an owner, and `GET /v1/fees?user=` shows it. Read
[`GET /v1/fees`](/api/fees) instead of hardcoding rates.

Published venue rates can lag a change of a venue fee tier.
`userFills[].fees` shows the amounts that each fill paid.
