Skip to main content
POST
/
ramp
/
quote
Get quote for conversion
curl --request POST \
  --url https://api.etherfuse.com/ramp/quote \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "quoteId": "844393ca-be57-4817-a58a-5b60e2792c06",
  "customerId": "34fcc67a-2454-4578-8435-e2bf03b4dc30",
  "blockchain": "stellar",
  "quoteAssets": {
    "type": "offramp",
    "sourceAsset": "USDC",
    "destinationAsset": "MXN"
  },
  "sourceAmount": "1.00"
}'
{
  "quoteId": "844393ca-be57-4817-a58a-5b60e2792c06",
  "sourceAmount": "1.00",
  "destinationAmount": "18.50",
  "exchangeRate": "18.50",
  "fees": {
    "amount": "0.10",
    "currency": "MXN"
  },
  "expiresAt": "2024-01-01T00:15:00Z"
}

Authorizations

Authorization
string
header
required

API key for authentication

Body

application/json
quoteId
string<uuid>
required

Unique identifier for the quote

customerId
string<uuid>
required

ID of the customer requesting the quote

blockchain
enum<string>
required

Blockchain type for the quote

Available options:
solana,
stellar,
base,
polygon
quoteAssets
object
required
sourceAmount
string
required

Amount of the source asset

Response

Quote retrieved successfully

quoteId
string<uuid>

Unique identifier for the quote

sourceAmount
string

Amount of the source asset

destinationAmount
string

Amount of the destination asset after conversion

exchangeRate
string

Exchange rate between source and destination assets

fees
object

Fee breakdown for the quote

expiresAt
string<date-time>

Timestamp when the quote expires