Ramp Quotes
Ramp quotes provide real-time exchange rates for converting between local African currencies and USD stablecoins. Each quote is valid for a limited time and must be used or refreshed before expiration.
Getting a Quote
Arguments
customer
ID!
amount
Decimal!
Amount to convert
currency
P2PPaymentCurrency!
local_currency
or usd
paymentType
PaymentType
deposit
or withdrawal
paymentMethodType
String!
Payment rail identifier (e.g., bank_transfer_ng
)
Getting a quote might fail if there's insufficient liquidity for the requested amount or payment method.
Response
id
Ramp quote global ID for use in subsequent calls
exchangeRate
Current rate for the currency pair
paymentType
deposit
or withdrawal
Quote Lifecycle
Creation: Quote is generated with current market rate
Valid Period: 30-180 seconds depending on market volatility
Expiration: Quote becomes invalid and must be refreshed
Usage: Quote is consumed by initiating a deposit or withdrawal
Refreshing Quotes
When a quote expires or is close to expiring, refresh it to get updated rates.
Arguments
rampQuote
ID!
ID of the quote to refresh
amount
Decimal
Optional new amount (keeps original if omitted)
Refreshing a quote might fail if there's insufficient liquidity for the requested amount or payment method.
Last updated