v1

latestOpenAPI 3.0.02026-07-243678114.1 KB
Rates

Get Ramp Quotes

This endpoint provides a quote for buying a specified amount of cryptocurrency using fiat currency. The user needs to specify the fiat currency, the cryptocurrency token address, and other relevant parameters to get a quote.

get/ramp/quote

Query parameters

sell_currency'EUR' required

The fiat currency you want to sell. At the moment only EUR is supported.

buy_tokenstring required

The token address of the cryptocurrency you want to buy. Find the available tokens on swap.boomfi.xyz.

buy_currencystring required

The symbol of the cryptocurrency you want to buy (for easier debugging).

payment_method'Card' required

The payment method. Currently, only "Card" is supported.

chain_idinteger required

The chain ID of the blockchain on which you would like to buy the token. Refer to the documentation for the supported chain IDs.

sell_amountnumber

The amount of fiat currency you want to sell. ⚠️<small> Required if buy_amount not informed. </small>⚠️

buy_amountnumber

The amount of cryptocurrency you want to buy. ⚠️<small> Required if sell_amount not informed. </small>⚠️

Response

A successful response containing the quote details.

Example response

{
  "data": {
    "buy_currency": "USDC",
    "buy_amount": "72.22",
    "sell_currency": "EUR",
    "sell_amount": "100",
    "payment_method": "Card",
    "quote_time": "2024-05-23T21:13:24.531851848Z",
    "expiry": "2024-05-23T21:13:34.531851848Z",
    "rate": "1.035",
    "fees": {
      "fee_ccy": "EUR",
      "network_fee": "29.231662792647756526654796064",
      "boomfi_fee": "1",
      "total_fee": "30.231662792647756526654796064"
    },
    "quote_amount": "100",
    "settlement_ccy": "USDC",
    "settlement_chain_id": 1,
    "settlement_token_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "session": "abc123xyz456def789ghi012jkl345mno678pqr901stu234vwx567yz890"
  }
}