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",
  "blockchain": "stellar",
  "customerId": "34fcc67a-2454-4578-8435-e2bf03b4dc30",
  "quoteAssets": {
    "type": "offramp",
    "sourceAsset": "USDC",
    "destinationAsset": "MXN"
  },
  "sourceAmount": "1.00",
  "destinationAmount": "18.50",
  "createdAt": "2024-01-01T00:00:00Z",
  "updatedAt": "2024-01-01T00:00:00Z",
  "exchangeRate": "18.50",
  "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 identifier (Currently only stellar is supported)

Available options:
stellar
quoteAssets
Onramp · object
required

Quote assets configuration based on quote type

  • Onramp
  • Offramp
  • Swap
sourceAmount
string
required

Amount of the source asset

Response

Quote retrieved successfully

quoteId
string<uuid>
required

Unique identifier for the quote

blockchain
enum<string>
required

Blockchain identifier (Currently only supports stellar)

Available options:
stellar
customerId
string<uuid>
required

ID of the customer requesting the quote

quoteAssets
Onramp · object
required
  • Onramp
  • Offramp
  • Swap
sourceAmount
string
required

Amount of the source asset

destinationAmount
string
required

Amount of the destination asset after conversion

createdAt
string<date-time>
required

Timestamp when the quote was created

updatedAt
string<date-time>
required

Timestamp when the quote was last updated

expiresAt
string<date-time>
required

Timestamp when the quote expires

exchangeRate
string
required

Exchange rate between source and destination assets