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

# Fees and pricing

> No protocol fee today. The maker's spread is the only cost besides gas, and every quote names the reference mid it was priced from.

## What you pay

| Cost | Who takes it | How much |
| - | - | - |
| Spread | The market maker that signed the quote | Inside the rate. `buyAmount / sellAmount` is the all-in price; compare it with `referenceRate`. |
| Protocol fee | Aile | **None today.** `fees.bps` and `fees.amount` in every quote read `0`, and `fees.recipient` is the zero address. A fee, if one is ever introduced, will appear in these fields first. |
| Gas | You, on Base | A fill uses about 120k gas. On Base at current prices that is a fraction of a cent. |

There is no subscription, no minimum volume and no charge for quotes you do not fill.

## How a quote is priced

The maker reads the pair's reference mid (a Chainlink FX feed: CAD, EUR, SGD, IDR, GBP or TRY against
USD) and applies its own bid or ask spread. The spread is the maker's business and is not published as a
number; the result is. Every quote carries:

* `referenceRate`: the mid the quote was priced from, in human units.
* `sellAmount` and `buyAmount`: the exact amounts of the fill. Their ratio is your all-in rate.
* `maxFirmSize`: the largest amount available right now at this rate, in both tokens.

Because a quote is a signed order, the rate you see is the rate you get. There is no re-pricing between
the quote and the fill, and no slippage tolerance to set.

## Levels before quotes

[`GET /levels`](https://staging.docs.aile.tech/api-reference/get-levels) returns, for every direction the makers quote, the largest size
available now, its price after the spread, and the `reference` mid, without a key and without signing
anything. Use it to show a price, to decide whether to route through Aile, and to pick a size.

> [!NOTE]
>
> Levels are indicative: only `GET /quote` signs. A direction with `firmQuoted: false` will not give a quote
> right now, and its `reason` tells you why.

## Staging limits

The staging gateway trades real assets on Base mainnet under small limits so that integrations can be
tested end to end. On 8 November 2026 `GET /config` reported `limits.maxTicketUsd` 5,000,
`maxDailyWalletUsd` 20,000 and `maxDailyGlobalUsd` 100,000; the live values are in `GET /config`.


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