Get exchange rates
Returns the current on-ramp exchange rate from fiat to crypto.
Rates are updated approximately every 30 seconds. This endpoint provides an estimate only — rates are not locked in and may differ at transaction time.
Which tokens are quotable depends on the source currency, and matches
GET /v1/on-ramps/supported-pairs:
- EUR → EURC, USDB, USDC, USDG, USDP
- USD → BTC, DAI, ETH, EURC, PYUSD, USDB, USDC, USDG, USDP, USDT
When a rate cannot be returned, branch on code, not on the status alone:
rate_unavailable(503) — the pair is quotable but has no rate right now. Transient; retry.unsupported_currency_pair(400) — the pair is not quoted at all. Permanent; retrying will not help.exchange_rate_provider_error(502) — the rate provider failed for another reason.
Authorizations
Cognito JWT token for regular user authentication
Query Parameters
Fiat currency to convert from (case-insensitive). Must be a currency listed by GET /v1/on-ramps/supported-pairs.
"USD"
Token to convert to (case-insensitive). Must be a token that GET /v1/on-ramps/supported-pairs lists against the requested from currency.
"USDT"
Response
Response for status 200
Current exchange rate from fiat to crypto
"1.0012"