Skip to main content
Use quotes to compare provider routing before you create an order.
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

Buy quotes accept fiatAmount and should not include tokenAmount. Sell quotes accept tokenAmount and should not include fiatAmount.

Choosing a provider

string
Optional. A provider name from a previous quote’s quotes list, such as "Paycrest". Matching ignores case.
When you send 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:
Leave preferredProvider out to get the best rate, as before.

Response shape

The response returns bestQuote plus the full quotes list for comparison.

Notes

  • Always include asset, chain, and fiatCurrency. chain is one of the values in Networks, which also lists the tokens each network carries.
  • fiatCurrency is NGN or one of the African currencies, such as KES. For XOF, also send country.
  • 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 bestQuote as the default route.
  • Keep quotes for 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 and preferredProvider apply to live keys.