---
updatedAt: 2025-09-08T22:30:50.000Z
agentTools:
  projectIndex: https://boomfi.readme.io/llms.txt
---

# 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.

<HTMLBlock>{`
<style>
  :root {
    --callout-border: 0;
    --callout-border-radius: 4px;
    --text-color: #000000;

    /* Info Callout Colors */
    --info-light-bg: #DAF8FF;
    --info-light-border: #7CCEDF;
    --info-light-header: #57B3C7;
    --info-light-text: #283652;
    --info-light-link: #57B3C7;
    --info-dark-bg: #DAF8FF;
    --info-dark-border: #7CCEDF;
    --info-dark-header: #57B3C7;
    --info-dark-text: #97B5BC;
    --info-dark-link: #57B3C7;

    /* Okay Callout Colors */
    --okay-light-bg: #DFFFE8;
    --okay-light-border: #116E5F;
    --okay-light-header: #116E5F;
    --okay-light-text: #116E5F;
    --okay-light-link: #61AEA0;
    --okay-dark-bg: #DFFFE8;
    --okay-dark-header: #5BB2A4;
    --okay-dark-text: #7B9792;
    --okay-dark-link: #61AEA0;

    /* Default Callout Colors */
    --default-light-bg: #e8e8e8;
    --default-light-border: #ACACAC;
    --default-light-text: #8A8A8A;
    --default-dark-bg: #e8e8e8;
    --default-dark-text: #FFFFFF;

    /* Warn Callout Colors */
    --warn-light-bg: #fff9c2;
    --warn-light-border: #FFB293;
    --warn-light-header: #FF966B;
    --warn-light-text: #80776C;
    --warn-light-link: #FF966B;
    --warn-dark-bg: #fff9c2;
    --warn-dark-header: #FF966B;
    --warn-dark-text: #989693;
    --warn-dark-link: #FF966B;

    /* Error Callout Colors */
    --error-light-bg: #ffdada;
    --error-light-border: #FA94A6;
    --error-light-header: #FF728B;
    --error-light-text: #B56978;
    --error-light-link: #FF728B;
    --error-dark-bg: #ffdada;
    --error-dark-header: #FF728B;
    --error-dark-text: #C6A5AB;
    --error-dark-link: #FF728B;
  }

  .field-description blockquote,
  .markdown-body blockquote {
    border-left: 0;
  }

  .callout {
    border-radius: var(--callout-border-radius);
    border: var(--callout-border);
  }

  .callout .callout-heading p,
  .callout p,
  .callout ul {
    color: var(--text-color) !important;
  }

  @media (prefers-color-scheme: dark) {

    [data-color-mode="system"] .callout .callout-heading p,
    [data-color-mode="system"] .callout p,
    [data-color-mode="system"] .callout ul {
      color: var(--text-color) !important;
    }
  }

  [data-color-mode="dark"] .callout .callout-heading p,
  [data-color-mode="dark"] .callout p,
  [data-color-mode="dark"] .callout ul {
    color: var(--text-color) !important;
  }

  /* INFO CALLOUT */
  .callout.callout_info {
    background: var(--info-light-bg);
  }

  .callout.callout_info a {
    color: var(--info-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_info {
      background-color: var(--info-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_info a {
      color: var(--info-dark-link) !important;
    }
  }

  [data-color-mode="dark"] .callout.callout_info {
    background-color: var(--info-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_info a {
    color: var(--info-dark-link) !important;
  }

  /* INFO CALLOUT */

  /* OKAY CALLOUT */
  .callout.callout_okay {
    background: var(--okay-light-bg);
  }

  .callout.callout_okay a {
    color: var(--okay-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_okay {
      background-color: var(--okay-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_okay a {
      color: var(--okay-dark-link) !important;
    }
  }

  [data-color-mode="dark"] .callout.callout_okay {
    background-color: var(--okay-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_okay a {
    color: var(--okay-dark-link) !important;
  }

  /* OKAY CALLOUT */

  /* DEFAULT CALLOUT */
  .callout.callout_default {
    background: var(--default-light-bg);
  }

  .callout.callout_default a {
    color: var(--text-color) !important;
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_default {
      background-color: var(--default-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_default a {
      color: var(--text-color) !important;
    }

  }

  [data-color-mode="dark"] .callout.callout_default {
    background-color: var(--default-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_default a {
    color: var(--text-color) !important;
  }

  /* DEFAULT CALLOUT */

  /* WARN CALLOUT */
  .callout.callout_warn {
    background: var(--warn-light-bg);
  }

  .callout.callout_warn a {
    color: var(--warn-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_warn {
      background-color: var(--warn-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_warn a {
      color: var(--warn-dark-link);
    }
  }

  [data-color-mode="dark"] .callout.callout_warn {
    background-color: var(--warn-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_warn a {
    color: var(--warn-dark-link);
  }

  /* WARN CALLOUT */

  /* ERROR CALLOUT */
  .callout.callout_error {
    background: var(--error-light-bg);
  }

  .callout.callout_error a {
    color: var(--error-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_error {
      background-color: var(--error-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_error a {
      color: var(--error-dark-link);
    }
  }

  [data-color-mode="dark"] .callout.callout_error {
    background-color: var(--error-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_error a {
    color: var(--error-dark-link);
  }

  /* ERROR CALLOUT */

  img {
    border-radius: 14px !important;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);
  }

  .Sidebar-listWrapper6Q9_yUrG906C.rm-Sidebar-section:nth-child(3),
  .rm-Sidebar-section:nth-child(3), .rm-Sidebar-section:nth-child(4) {
    display: none;
  }

  .Select option {
    color: var(--color-input-text);
  }
</style>
`}</HTMLBlock>

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "BoomFi Rates API",
    "version": "1.0.0",
    "description": "API for retrieving quotes for purchasing cryptocurrency using fiat currencies."
  },
  "servers": [
    {
      "url": "https://capi.boomfi.xyz/v1"
    }
  ],
  "paths": {
    "/ramp/quote": {
      "get": {
        "summary": "Get Ramp Quotes",
        "tags": [
          "Rates"
        ],
        "operationId": "get-ramp-quotes",
        "description": "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.",
        "parameters": [
          {
            "name": "sell_currency",
            "in": "query",
            "required": true,
            "description": "The fiat currency you want to sell. At the moment only EUR is supported.",
            "schema": {
              "type": "string",
              "enum": [
                "EUR"
              ]
            }
          },
          {
            "name": "buy_token",
            "in": "query",
            "required": true,
            "description": "The token address of the cryptocurrency you want to buy. Find the available tokens on [swap.boomfi.xyz](swap.boomfi.xyz).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "buy_currency",
            "in": "query",
            "required": true,
            "description": "The symbol of the cryptocurrency you want to buy (for easier debugging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "payment_method",
            "in": "query",
            "required": true,
            "description": "The payment method. Currently, only \"Card\" is supported.",
            "schema": {
              "type": "string",
              "enum": [
                "Card"
              ]
            }
          },
          {
            "name": "chain_id",
            "in": "query",
            "required": true,
            "description": "The chain ID of the blockchain on which you would like to buy the token. Refer to the documentation for the supported chain IDs.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sell_amount",
            "in": "query",
            "required": false,
            "description": "The amount of fiat currency you want to sell. \n⚠️<small> Required if `buy_amount` not informed. </small>⚠️\n",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "buy_amount",
            "in": "query",
            "required": false,
            "description": "The amount of cryptocurrency you want to buy. \n⚠️<small> Required if `sell_amount` not informed. </small>⚠️\n",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response containing the quote details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "buy_currency": {
                          "type": "string",
                          "description": "The symbol of the cryptocurrency being bought.",
                          "example": "USDC"
                        },
                        "buy_amount": {
                          "type": "string",
                          "description": "The amount of cryptocurrency that will be received.",
                          "example": "72.22"
                        },
                        "sell_currency": {
                          "type": "string",
                          "description": "The fiat currency used for the purchase.",
                          "example": "EUR"
                        },
                        "sell_amount": {
                          "type": "string",
                          "description": "The amount of fiat currency used in the transaction.",
                          "example": "100"
                        },
                        "payment_method": {
                          "type": "string",
                          "description": "The payment method used in the transaction.",
                          "example": "Card"
                        },
                        "quote_time": {
                          "type": "string",
                          "format": "date-time",
                          "description": "The time when the quote was generated.",
                          "example": "2024-05-23T21:13:24.531851848Z"
                        },
                        "expiry": {
                          "type": "string",
                          "format": "date-time",
                          "description": "The expiration time of the quote.",
                          "example": "2024-05-23T21:13:34.531851848Z"
                        },
                        "rate": {
                          "type": "string",
                          "description": "The exchange rate applied in the quote.",
                          "example": "1.035"
                        },
                        "fees": {
                          "type": "object",
                          "properties": {
                            "fee_ccy": {
                              "type": "string",
                              "description": "The currency in which the fees are charged.",
                              "example": "EUR"
                            },
                            "network_fee": {
                              "type": "string",
                              "description": "The fee charged by the network.",
                              "example": "29.231662792647756526654796064"
                            },
                            "boomfi_fee": {
                              "type": "string",
                              "description": "The fee charged by BoomFi.",
                              "example": "1"
                            },
                            "total_fee": {
                              "type": "string",
                              "description": "The total fees charged.",
                              "example": "30.231662792647756526654796064"
                            }
                          }
                        },
                        "quote_amount": {
                          "type": "string",
                          "description": "The total amount quoted for the transaction.",
                          "example": "100"
                        },
                        "settlement_ccy": {
                          "type": "string",
                          "description": "The currency in which the settlement will occur.",
                          "example": "USDC"
                        },
                        "settlement_chain_id": {
                          "type": "integer",
                          "description": "The chain ID of the blockchain where the settlement will occur.",
                          "example": 1
                        },
                        "settlement_token_address": {
                          "type": "string",
                          "description": "The token address of the cryptocurrency being bought.",
                          "example": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
                        },
                        "session": {
                          "type": "string",
                          "description": "The session identifier for the transaction.",
                          "example": "abc123xyz456def789ghi012jkl345mno678pqr901stu234vwx567yz890"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. One or more parameters might be missing or incorrect."
          },
          "500": {
            "description": "Internal server error. Something went wrong on the server side."
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```