# Amounts and fees

> Wagyu's fees, minimums and limits at a glance, how the API represents money (atomic integer strings), how to convert amounts safely, what each route costs today, and which fields are settlement evidence.

## Fees, minimums and large orders at a glance

Wagyu charges one published fee, shown in the quote before you send. There is no daily limit.

| Term | Now | Notes |
| --- | --- | --- |
| Wagyu fee into Monero | 2% | Read `feeFraction` from each quote. |
| Wagyu fee out of Monero | 0% | Routes with a `0` fee return no `feeBreakdown`. |
| Other route costs | Itemised in the quote | `feeBreakdown` lists the Hyperliquid trading fee and any bridge fee apart from the Wagyu fee, and `totalCostUsd` is the full cost. The network fee for your deposit is set in your own wallet. |
| Minimum deposit from Solana, Ethereum, Arbitrum, Base, BSC, HyperEVM, Robinhood Chain, Arc | $20 | `minDepositUsd` in the terms. A deposit under it: see [deposits](https://docs.wagyu.xyz/deposits.md). |
| Minimum deposit from Monero | $25 | `minDepositUsd` in the terms. A deposit under it: see [deposits](https://docs.wagyu.xyz/deposits.md). |
| Minimum deposit from Bitcoin | $40 | `minDepositUsd` in the terms. A deposit under it: see [deposits](https://docs.wagyu.xyz/deposits.md). |
| Minimum deposit from Tron | $1,500 | `minDepositUsd` in the terms. A deposit under it: see [deposits](https://docs.wagyu.xyz/deposits.md). |
| Daily limit | None | Large orders are filled in slices, with TWAP execution on the Hyperliquid leg. |
| Default rate limits | 60 quotes and 6 order creations per minute, 5 unfinished orders at once | Anonymous or per IP. A key can have higher limits: see [rate limits](https://docs.wagyu.xyz/actions-and-retries.md#rate-limits). |

_Live from `POST /v2/swaps/quote` and `GET /v2/swaps/terms`, read when this page was built (4 Dec 2026, 19:24 UTC)._

### Swapping a large amount

Create one order and send the exact `depositAmount` it returns. Wagyu fills the Monero leg in slices on Hyperliquid's orderbook with TWAP execution, so a large order trades over time close to the orderbook price instead of in one block. The quote shows the estimated output for your exact amount before you send, and one slippage budget covers the whole route (see [what the quote does not show](#what-the-quote-does-not-show)).

### Live costs for your amount

`POST /v2/swaps/quote` returns the fee, the other costs and the expected output for your amount. `GET /v2/swaps/terms` returns the minimum per chain and the default limits, and `GET /v2/swaps/route-stats` the median time per route. All three are public and need no key. For every route with its fee, minimum and time, see [Monero swaps on Wagyu](https://wagyu.xyz/monero).

## Amounts are atomic integer strings

Every amount that moves money is a **positive base-10 integer string in the asset's smallest unit**. `"1000000"` BTC-side means 0.01 BTC, because BTC has 8 decimals.

| You send or read | Format | Use it for |
| --- | --- | --- |
| `fromAmount`, `toAmount` in a request | Integer string, atomic units | The user's input, converted with the token's `decimals`. |
| `toAmount`, `fromAmount` in a quote | Integer string | An estimate only. Never a guaranteed minimum. |
| `depositAmount`, `expectedOutput` on an order | Integer string | The exact funding instruction, and the display estimate. |
| `actualOutput` on a completed order | Integer string | What was delivered, in `deliveredToken` units when present, else `toToken`. |
| `amountUsd` and every `…Usd` field | Number or decimal string | Display only. Never use a USD value to settle or compute a transfer. |

The API refuses anything else. A decimal amount:

<!-- POST /v2/swaps/quote · 400 -->
```json
{
  "code": "invalid_request",
  "error": "invalid body/fromAmount: Expected a positive atomic integer amount."
}
```

A JSON number instead of a string is refused too (`invalid_request`).

### Convert between display and atomic amounts

Get `decimals` from the catalog (`featuredTokens`, the token search, or the order's `…Decimals` fields). Never use floating-point maths on money:

<!-- JavaScript -->
```javascript
// "0.5" with 18 decimals → "500000000000000000"
function toAtomic(display, decimals) {
  const [whole, frac = ''] = display.trim().split('.');
  if (!/^\d+$/.test(whole) || !/^\d*$/.test(frac) || frac.length > decimals) throw new Error('bad amount');
  return (BigInt(whole) * 10n ** BigInt(decimals) + BigInt(frac.padEnd(decimals, '0') || '0')).toString();
}

// "1224614125000" with 12 decimals → "1.224614125"
function fromAtomic(atomic, decimals) {
  const s = BigInt(atomic).toString().padStart(decimals + 1, '0');
  const frac = s.slice(-decimals).replace(/0+$/, '');
  return s.slice(0, -decimals) + (frac ? '.' + frac : '');
}
```

<!-- Python -->
```python
from decimal import Decimal

def to_atomic(display: str, decimals: int) -> str:
    value = Decimal(display) * (Decimal(10) ** decimals)
    if value != value.to_integral_value():
        raise ValueError("more decimals than the token supports")
    return str(int(value))

def from_atomic(atomic: str, decimals: int) -> str:
    return format(Decimal(atomic) / (Decimal(10) ** decimals), "f")
```

## The order's instruction beats the quote

A quote is a public estimate. After you create an order, show its `depositAddress`, `depositAmount`, deposit token and `expiresAt` exactly as returned. Never rebuild an address or an amount from the quote.

## Fees

Every fee rate in the API is a **fraction**: `0.02` means 2%. The Wagyu fee depends on the route, so read `feeFraction` from each quote. Here is what real quotes return right now:

| Route | Wagyu fee | feeFraction | Quoted size |
| --- | --- | --- | --- |
| BTC → XMR | 2% | `0.02` | $491 |
| ETH → XMR | 2% | `0.02` | $155 |
| SOL → XMR | 2% | `0.02` | $125 |
| USDC (Ethereum) → exactly 1 XMR | 2% | `0.02` | $326 |
| XMR → USDT (Ethereum) | 0% | `0` | $316 |

_Live from `POST /v2/swaps/quote`, read when this page was built (4 Dec 2026, 19:24 UTC)._

### Fee breakdown

Quotes on routes that charge a Wagyu fee also return `feeBreakdown` (in the table above: every route into XMR). Routes with a `0` fee omit it.

| Field | Meaning |
| --- | --- |
| `platformFeeRate`, `platformFeeXmr`, `platformFeeUsd` | Wagyu's fee, as a rate, in XMR and in USD. |
| `bridgeFlatFeeXmr`, `bridgeFlatFeeUsd` | A flat bridge fee, when one applies. |
| `hlTakerFeeXmr`, `hlTakerFeeUsd` | The Hyperliquid trading fee. |
| `hlSizeRoundingXmr`, `hlSizeRoundingUsd` | What is lost to Hyperliquid's order-size rounding. |
| `totalFeeUsd` | Wagyu's fees: the platform fee plus any bridge flat fee. |
| `totalCostUsd` | Everything the route costs the user: `totalFeeUsd` plus the Hyperliquid fee and rounding. |

Your own [integrator fee](https://docs.wagyu.xyz/authentication.md#your-fee), if any, is added on top and shown in `integratorFee`.

### What the quote does not show

The public quote shows public fees only. When the order executes, Wagyu freezes a private expectation of the final output after its own fee, your integrator fee, bridge fees and the source-side costs the user pays. One end-to-end slippage budget applies once to that expectation, across every step of the route (route providers, Hyperliquid, settlement and recovery). It is not granted again at each step. Neither that expectation nor its minimum is returned before completion.

Native-bridge fees and minimums are on [the bridge page](https://docs.wagyu.xyz/native-bridge.md). `bridgeSettlement.fee` on a bridge order can be `null`: its absence does not prove there was no fee.

## Completed is not always "received"

If the user opted into the bonus flip on a swap, a `completed` order can end with nothing delivered. Check `coinflipLost` and the flip result before showing a received amount.

---
Source: https://docs.wagyu.xyz/money-and-settlement · Built from the live Wagyu API on 2026-12-04.
