Get Exchange Rates

Returns the exchange rate, the amount the other side receives and the full fee breakdown for a currency pair. Call it before showing a customer a price and before any order that converts currency. Always pass orderType: a payout rate is not an on-ramp rate.

Used in: Rates & Quotes

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

The amount to convert, as a string. Must be greater than 0.

string
required

The currency the money is converted from, fiat or crypto.

string
required

The currency the money is converted to, fiat or crypto.

string
enum
Defaults to forward

Which side the amount is on.

ValueMeaning
forwardThe amount you pass is what is sent; the quote tells you what is received
reverseThe amount you pass is what must be received; the quote tells you what to send
Allowed:
string
enum
required

The flow you want a rate for. Rates and fees differ by flow.

ValueMeaning
onrampYour user buys crypto with local currency
offrampYour user sells crypto for local currency
payinA customer pays you (collection)
payoutYou pay a person or business from your balance
fiat_prefundYou add your own fiat to your balance
crypto_prefundYou add your own crypto to your balance
swapYou convert a balance you hold into another currency
gamingA customer pays you through a custodial wallet created in their name
string
Defaults to DEFAULT

The specific payment method on the source side. Relevant for payin, onramp, fiat_prefund and fiat swaps.

string
enum
Defaults to DEFAULT

The kind of payment method on the source side. Relevant for payin, onramp, fiat_prefund and fiat swaps.

ValueMeaning
bank_transferBank rails — SEPA, SWIFT, local ACH, PIX, SPEI
local_walletMobile money or e-wallet — M-Pesa, GCash, OVO
cardDebit or credit card
DEFAULTNo preference — return or apply every method available
Allowed:
string

The specific payment method on the destination side. Relevant for fiat swaps.

string
enum

The kind of payment method on the destination side. Relevant for fiat swaps.

ValueMeaning
bank_transferBank rails
local_walletMobile money or e-wallet
cardCard
DEFAULTNo preference
Allowed:
Headers
string
required

Your merchant ID (MID). Required on every request; it scopes the call to one merchant or sub-merchant.

Responses

401

Unauthorized. Add the MID header, and check the Base64 credentials and that they belong to this environment.

429

Too many requests. Wait, then retry: 1 second, then 2, then 4.

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json