Retail Ramp
Create a crypto quote
Use this endpoint to request the current exchange rate of the selected fiat currency-cryptocurrency pair, and the required fees. Enter a fiat currency as the sourceCurrencyCode to buy crypto and enter a crypto currency in that field to sell crypto.
post/payments/crypto/quote
Query parameters
includeSwapstring
If true, include both direct ramp/offramp quotes and stitched ramp+swap/offramp+swap quotes (CRYPTO_PURCHASE_SWAP / CRYPTO_SELL_SWAP) in the response. When false, swap is only used as a fallback when no direct ramp or offramp providers return quotes. Swap quotes are gated by the per-account onrampSwapEnabled / offrampSwapEnabled preferences regardless of this flag.
Request body
Example request
{
"countryCode": "US",
"destinationCurrencyCode": "USD or BTC",
"sourceAmount": 50,
"sourceCurrencyCode": "BTC or USD",
"subdivision": "US-CA"
}Response
OK