> ## 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.

# Rates, Pricing and Fees

> Live midmarket rate and spread per pair, what you pay, and where each coin's midmarket rate comes from.

Every pair is quoted against USDC, both ways. The table reads `GET /levels` from the staging gateway once a
minute; it is the same data your integration gets.

\<table><thead><tr><th>Pair</th>
              
                  \<th>Midmarket
USD per coin</th>
                  \<th>Spread, bps
buy / sell</th></tr></thead>
          \<tbody /></table>

**Midmarket** is the mid rate the maker prices from, in USD per coin; **Spread** is the distance of the firm
quote's price from it, in basis points, for buying the coin with USDC and for selling it. Sizes are on
[Supported Ticket Sizes](https://staging.docs.aile.tech/reference/ticket-sizes.md).## 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; its distance from `referenceRate` is the spread in the table above. |
| Protocol fee | Aile | **None today.** `fees.bps` and `fees.amount` in every quote read `0`; `fees.recipient` is the zero address. If a fee is ever introduced it appears in these fields first. |
| Gas | You, on Base | A fill uses about 120k gas: a fraction of a cent on Base. |There is no subscription, no minimum volume, no charge for quotes you do not fill, and no fee on `/config`,
`/levels` or `/orders`.Because a quote is a signed order, the rate you see is the rate you get: no re-pricing between the quote and
the fill, no slippage tolerance to set. The quote carries `referenceRate` (the midmarket rate it was priced
from) and `sellAmount`/`buyAmount` (the exact amounts), so the spread of every quote can be checked.## Midmarket ratesThe midmarket rate is the one the maker actually prices from. It is not the same source for every currency:
where a coin trades at par with its fiat (EUR, GBP, CAD, SGD) the interbank rate is the market, and the rate
comes from a public Chainlink FX feed on Base. Where the dollar stablecoin trades at a premium or discount in
the local market (IDR, TRY) the interbank rate is not a price anyone can trade at on chain, so the rate is
read from the local stablecoin market. `reference.source` on each level says which: `chainlink` or `api`.### EURC| | |
| - | - |
| Midmarket rate | Chainlink **EUR/USD** feed on Base, [`0xc91D…3F0F`](https://basescan.org/address/0xc91D87E81faB8f93699ECf7Ee9B44D11e1D53F0F) |
| Updates | A new round when the rate moves 0.1 % or after 1 hour, during FX market hours; flat at the Friday close over the weekend |
| Why this rate | EURC trades at par with the euro: Coinbase EURC-USDC and the Base pools sit within a few bps of the interbank rate |### XSGD| | |
| - | - |
| Midmarket rate | Chainlink **SGD/USD** feed on Base, [`0x8157…949b`](https://basescan.org/address/0x81575495532fB311Efc5C993B612564274F0949b) |
| Updates | A new round when the rate moves 0.5 % or after 24 hours — in practice one print a day; flat over the weekend |
| Why this rate | XSGD trades at par with the Singapore dollar. The feed's daily cadence means the Base pool can sit up to \~25 bps away intraday |### IDRX| | |
| - | - |
| Midmarket rate | **Local market**: the Indodax USDT/IDR order book (mid at 10,000 USDT depth) converted to USDC at the Base USDC/USDT rate (Uniswap v3, 2,500 USDC) |
| Updates | Every few seconds, 24/7 |
| Checks | Tokocrypto USDT/IDR must agree with Indodax within 75 bps and Binance USDC/USDT with the Base pool within 10 bps, else the rate halts and the pair answers `no-price` instead of a bad quote |
| Why this rate | In Indonesia the dollar stablecoin trades 10–30 bps below the interbank rate most days. This is the price at which rupiah actually becomes a dollar stablecoin on chain. Priced from the local market since 9 November 2026 |### TGBP| | |
| - | - |
| Midmarket rate | Chainlink **GBP/USD** feed on Base, [`0xCceA…Fa15`](https://basescan.org/address/0xCceA6576904C118037695eB71195a5425E69Fa15) |
| Updates | A new round when the rate moves 0.5 % or after 24 hours; flat over the weekend |
| Why this rate | tGBP trades a few bps around sterling on Coinbase and Kraken |### TRYB| | |
| - | - |
| Midmarket rate | **Local market**: the Binance USDT/TRY order book (mid at 10,000 USDT depth) converted to USDC at the Base USDC/USDT rate |
| Updates | Every few seconds; **paused Friday 21:00 to Sunday 21:00 UTC** (the FX weekend), when the pair is not quoted |
| Checks | BtcTurk USDT/TRY must agree with Binance within 50 bps, Binance USDC/USDT with the Base pool within 10 bps |
| Why this rate | The lira's dollar-stablecoin market moves with local demand for dollars, not only with the interbank fix. Priced from the local market since 9 November 2026 |### CADC| | |
| - | - |
| Midmarket rate | Chainlink **CAD/USD** feed on Base, [`0xA840…5D5d`](https://basescan.org/address/0xA840145F87572E82519d578b1F36340368a25D5d) |
| Updates | A new round when the rate moves 0.1 % or after 1 hour, during FX market hours |
| Why this rate | CADC trades at par with the Canadian dollar |## Reading it from the API```bash theme={null}
curl -s https://staging.app.aile.tech/api/base/v1/levels | jq '.levels[] | {sellToken, buyToken, reference, maxFirmSize}'
````reference.rate` is the midmarket rate, `reference.source` its kind (`chainlink` or `api`), `reference.at` its
time. No key is needed; the machine-readable form is documented at [`GET /v1/levels`](https://staging.docs.aile.tech/api-reference/get-levels).


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