๐ Get Quote
Retrieve a quote for an on/off-ramp transaction. This provides the estimated fiat value a user would receive when converting a specified amount of crypto, including any applied spreads.๐ Headers
Header | Description |
---|---|
partner-api-key | API key associated with your partner account. Required. See API Key Generation Guide. |
This endpoint requires authentication using a valid
partner-api-key
.๐ฅ Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
tokenSymbol | string | โ | Symbol of the crypto token (e.g., USDC, USDT,MXNe ). |
transactionType | string | โ | Type of transaction. Must be "ON_RAMP" or "OFF_RAMP" |
blockchainSymbol | string | โ | Symbol of the blockchain where the token resides (e.g., POL ,BASE ,SOL , BSC ). |
fiatCurrency | string | โ | Fiat currency symbol (e.g., MXN , DOP ). |
cryptoAmount | number | ๐ | Amount of crypto to be converted. Required if no fiatAmount input |
fiatAmount | number | ๐ | Amount of fiat to be converted. Required if no cryptoAmount input |
premiumSpread | number | ๐ | Optional spread applied to the exchange rate. If 0.01 it will increase the exchange rate by 1% |
๐จ Example Request
๐ค Response Body
Field | Type | Description |
---|---|---|
success | boolean | Indicates if the quote request was successful. |
transactionType | string | Transaction type: "ON_RAMP" or "OFF_RAMP" . |
fiatAmount | number | Estimated amount of fiat to be received or paid. |
fiatCurrency | string | Fiat currency symbol (e.g., MXN , DOP ). |
blockchainSymbol | string | Blockchain used for the transaction (e.g., POL , BASE ). |
tokenSymbol | string | Crypto token symbol (e.g., USDC , USDT , MXNe ). |
cryptoAmount | number | Amount of crypto involved in the transaction. |
rate | number | Exchange rate applied to the transaction. |
premiumSpread | number | Spread percentage applied to the exchange rate (optional, if applied). |
flow | string | Transaction flow type: โOTCโ, โPAYMENTโ OR โREGULARโ |
๐ Example Response
โ ๏ธ Important Notes & Requirements
- Use Before Create Transaction: Always retrieve a quote before initiating an off-ramp transaction to provide accurate values.
- Consistent Parameters: Ensure that the
tokenSymbol
,blockchainSymbol
, andfiatCurrency
match those used in the actual transaction. - Premium Spread: If
premiumSpread
is specified, it will reduce the rate to include the desired markup.
โ Use Cases
- Estimate Payout: Show users the estimated amount theyโll receive before confirming the off-ramp.
- Dynamic Pricing: Adjust UI pricing and availability dynamically using the returned rate and spread.
Headers
Api key for the affiliated partner that is performing the request
Query Parameters
The token symbol
Available options:
USDC
, USDT
, MXNe
, SOL
, ETH
, wBTC
, cbBTC
, PYSUD
, POL
, BNB
, WLD
, STK
, USDY
, CORE
, USDC.e
, wUSDL
, CoreBTC
, MATIC
, USDbC
Example:
"USDC"
Transaction type (ON_RAMP or OFF_RAMP)
Available options:
ON_RAMP
, OFF_RAMP
, CROSS_RAMP
Example:
"ON_RAMP"
The blockchain symbol
Available options:
POL
, SOL
, BASE
, ARB
, BSC
, OP
, WLD
, STK
, ETH
, MTN
, CORE
Example:
"POL"
The fiat currency
Available options:
MXN
, DOP
, USD
, EUR
Example:
"MXN"
The amount of crypto (required for OFF_RAMP)
Example:
100
The amount of fiat (required for ON_RAMP)
Example:
5000
Spread percentage to be applied to the exchange rate
Example:
0.01