Why this page mattersQuotes are where RampHub shows its value: one request, multiple provider paths, and a single best route you can trust by default.
Request
fiatAmount and should not include tokenAmount. Sell quotes accept tokenAmount and should not include fiatAmount.
Choosing a provider
Optional. A provider name from a previous quote’s
quotes list, such as "Paycrest". Matching ignores case.preferredProvider, that provider’s quote is returned as bestQuote (even if another provider pays more), and quotes still lists every provider. If that provider cannot take this trade, the quote fails with a 400 that says why, for example:
preferredProvider out to get the best rate, as before.
Response shape
The response returnsbestQuote plus the full quotes list for comparison.
Notes
- Always include
asset,chain, andfiatCurrency.chainis one of the values in Networks, which also lists the tokens each network carries. fiatCurrencyisNGNor one of the African currencies, such asKES. ForXOF, also sendcountry.- On a network RampHub has paused, quotes fail with a
400:"Trading on Arbitrum One is temporarily unavailable."See When a network is paused. - Use
bestQuoteas the default route. - Keep
quotesfor comparison only. - The minimum trade is $1 of crypto. A smaller quote fails with a
400:"The minimum trade is $1.00; this one is about $0.80." - Each provider can also have its own minimum. UseBread’s is $1, measured on what it receives after fees.
- Sandbox (
rh_test_) keys return sample quotes; the minimum andpreferredProviderapply to live keys.