> ## Documentation Index
> Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Crypto Currency limits

> Returns an object containing minimum and maximum buy amounts including or excluding fees for base and quote currencies.

It takes into account the payment method if it's provided, **otherwise it defaults to the payment method with the lowest fees.**




## OpenAPI

````yaml GET /v3/currencies/{currencyCode}/limits
openapi: 3.0.0
info:
  title: Ramps & Swaps
  version: 1.0.0
servers:
  - url: https://api.moonpay.com
security: []
tags:
  - name: Account details
    description: >-
      Get your account details, including the verification status and the
      current fees.
  - name: On-ramp
    description: Get quotes and transaction details for buying cryptocurrencies.
  - name: Off-ramp
    description: Get quotes and transaction details for selling cryptocurrencies.
  - name: Swaps
    description: Get quotes and transaction details for swapping cryptocurrencies.
  - name: Data
    description: >-
      Get currently supported countries, currencies, and payment methods. Also
      check the customers's IP address restrictions.
  - name: DefiToken
    description: Retrieve token data and token lists for DeFi assets.
paths:
  /v3/currencies/{currencyCode}/limits:
    get:
      tags:
        - On-ramp
      summary: Get Crypto Currency limits
      description: >
        Returns an object containing minimum and maximum buy amounts including
        or excluding fees for base and quote currencies.


        It takes into account the payment method if it's provided, **otherwise
        it defaults to the payment method with the lowest fees.**
      operationId: getCurrencyLimits
      parameters:
        - name: currencyCode
          in: path
          schema:
            type: string
          example: eth
          description: >
            The code of the cryptocurrency of interest from <a
            href="/reference/getcurrencies">the currencies list</a> with
            `type=crypto`
          required: true
        - name: query
          in: query
          style: form
          explode: true
          required: true
          schema:
            type: object
            properties:
              baseCurrencyCode:
                type: string
                example: usd
                description: >-
                  The code of the fiat currency used for the transaction from <a
                  href="/reference/getcurrencies">the currencies list</a> with
                  `type=fiat`
              areFeesIncluded:
                type: boolean
                example: false
                description: >-
                  A boolean indicating whether `minBuyAmount` and `maxBuyAmount`
                  should include extra fees. Defaults to <span
                  class="value">false</span>.
              paymentMethod:
                $ref: '#/components/schemas/PaymentMethods'
            required:
              - baseCurrencyCode
      responses:
        '200':
          description: Successful response — Crypto Currency limits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrencyLimits'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    PaymentMethods:
      type: string
      example: credit_debit_card
      enum:
        - ach_bank_transfer
        - credit_debit_card
        - paypal
        - gbp_bank_transfer
        - gbp_open_banking_payment
        - pix_instant_payment
        - sepa_bank_transfer
      description: The transaction's payment method.
    CurrencyLimits:
      type: object
      properties:
        quoteCurrency:
          type: object
          properties:
            code:
              type: string
              example: btc
              description: The code of the quote currency.
            minBuyAmount:
              type: number
              example: 0.00056
              description: The minimum transaction buy amount in quote currency.
            maxBuyAmount:
              type: number
              example: 0.20994
              description: The maximum transaction buy amount in quote currency.
        baseCurrency:
          type: object
          properties:
            code:
              type: string
              example: gbp
              description: The code of the base currency.
            minBuyAmount:
              type: number
              example: 30
              description: The minimum transaction buy amount in base currency.
            maxBuyAmount:
              type: number
              example: 9000
              description: The maximum transaction buy amount in base currency.
        paymentMethod:
          $ref: '#/components/schemas/PaymentMethods'
    Error:
      type: object
      properties:
        message:
          type: string
          description: A descriptive error message.
        type:
          type: string
          description: An error type.
  securitySchemes:
    apiKey:
      type: apiKey
      name: apiKey
      in: query

````