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

# Get Market Rates

> Returns the last market rates (BUY and SELL) for each account pair enabled, grouped by payment method type. These rates are for reference only and do not represent a held rate.



## OpenAPI

````yaml ramps-api/openapi.json GET /api/v1/rates/
openapi: 3.1.0
info:
  title: Ripio Ramp API
  version: v1
  description: >-
    API for Ripio ramp services, enabling partners to integrate On-Ramp,
    Off-Ramp, customer management, KYC processes, and other financial
    functionalities. This API is RESTful, uses JSON for requests and responses,
    and standard HTTP status codes. This document is based on the
    'onramp-api.pdf' provided and aims to be compliant with OpenAPI
    Specification v3.1.0. The PDF indicates that the API documentation is a
    draft and subject to change.
servers:
  - url: https://skala-sandbox.ripio.com
    description: Sandbox environment
  - url: https://skala.ripio.com
    description: Production environment
security:
  - BearerToken: []
tags:
  - name: Authentication
    description: Operations related to API authentication and authorization.
  - name: Support Tickets
    description: >-
      Operations for raising and tracking customer support tickets with Ripio's
      support team. This feature must be enabled for your account by the Ripio
      team.
  - name: Customers
    description: Operations related to customer management.
  - name: KYC
    description: Operations related to Know Your Customer processes.
  - name: Investor Profile
    description: >-
      Brazilian accounts only: the investor-profile (suitability) questionnaire
      required by Resolução BCB nº 520/2025.
  - name: Fiat Accounts
    description: Operations related to managing fiat accounts and their requirements.
  - name: Quotes
    description: Operations related to obtaining and managing conversion quotes.
  - name: On-Ramp
    description: Operations related to fiat-to-crypto (on-ramp) processes.
  - name: Off-Ramp
    description: Operations related to crypto-to-fiat (off-ramp) processes.
  - name: Refunds
    description: >-
      Operations for returning the money of an on-ramp or off-ramp operation
      that could not be completed. Each ramp must be enabled for your account by
      the Ripio team.
  - name: Transactions
    description: Operations related to listing and managing all transaction types.
  - name: Networks
    description: >-
      Operations related to retrieving available deposit and withdrawal
      networks.
  - name: Rates
    description: Operations related to retrieving market rates.
  - name: Transaction Limits
    description: >-
      Operations related to retrieving per-transaction limits by currency and
      ramp operation.
  - name: Sandbox
    description: Operations specific to the sandbox environment for testing purposes.
  - name: Webhooks
    description: Webhook event notifications from Ripio Ramp API.
  - name: Sell and Pay
    description: >-
      Endpoints for managing Sell and Pay transactions, which allow customers to
      convert cryptocurrency to fiat currency and pay merchants via QR codes
paths:
  /api/v1/rates/:
    get:
      tags:
        - Rates
      summary: Get Market Rates
      description: >-
        Returns the last market rates (BUY and SELL) for each account pair
        enabled, grouped by payment method type. These rates are for reference
        only and do not represent a held rate.
      operationId: getMarketRates
      parameters:
        - name: payment_method_type
          in: query
          description: >-
            Filter the rates by a single payment method type (e.g.
            `bank_transfer`, `mercado_pago`, `credit_card`, `breb`,
            `r2p_bancolombia`, `r2p_nequi`, `pix`). When omitted, rates for
            every payment method enabled for the account are returned.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: >-
            An array of payment method types with their associated pairs and
            buy/sell rates.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RatesResponse'
              example:
                - payment_method_type: bank_transfer
                  rates:
                    - pair: ETH_ARS
                      last_buy_rate: 1312.1
                      last_sell_rate: 1311.1
                      final_buy_rate: 1320.1
                      final_sell_rate: 1320.1
                - payment_method_type: mercado_pago
                  rates:
                    - pair: ETH_ARS
                      last_buy_rate: 1312.1
                      last_sell_rate: 1311.1
                      final_buy_rate: 1312.1
                      final_sell_rate: 1311.1
        '401':
          description: Unauthorized - Invalid or missing access token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: 40001
                type: NotAuthenticated
                detail:
                  message: Authentication credentials were not provided.
                  code: not_authenticated
                status: 401
components:
  schemas:
    RatesResponse:
      type: array
      items:
        $ref: '#/components/schemas/RatesByPaymentMethod'
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
          description: Application-specific error code.
        type:
          type: string
          description: Type of error or exception.
        detail:
          type:
            - object
            - array
          description: >-
            Error details. The shape depends on the error:


            - Most business errors return an object with a `message` key.

            - Field validation errors return an object keyed by field name, each
            holding an array of `{ message, code }`.

            - Request-level validation errors (e.g. a missing query parameter)
            return a bare array of `{ message, code }`.
          properties:
            message:
              type: string
              description: Detailed error message.
          additionalProperties: true
        status:
          type: integer
          description: HTTP status code.
      required:
        - code
        - type
        - detail
        - status
    RatesByPaymentMethod:
      type: object
      properties:
        payment_method_type:
          type: string
          description: Payment method type these rates apply to.
          example: bank_transfer
        rates:
          type: array
          items:
            $ref: '#/components/schemas/RatePair'
      required:
        - payment_method_type
        - rates
    RatePair:
      type: object
      properties:
        pair:
          type: string
          description: >-
            Base currency and Quote currency used to establish the exchange
            rate.
          example: ETH_ARS
        last_buy_rate:
          type: number
          format: double
          nullable: true
          description: Last Buy market rate. `null` when the pair has no rate available.
        last_sell_rate:
          type: number
          format: double
          nullable: true
          description: Last Sell market rate. `null` when the pair has no rate available.
        final_buy_rate:
          type: number
          format: double
          nullable: true
          description: >-
            Represents the last buy market rate with fees applied. `null` when
            the pair has no rate available.
        final_sell_rate:
          type: number
          format: double
          nullable: true
          description: >-
            Represents the last sell market rate with fees applied. `null` when
            the pair has no rate available.
      required:
        - pair
        - last_buy_rate
        - last_sell_rate
        - final_buy_rate
        - final_sell_rate
  securitySchemes:
    BearerToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Access token obtained via
        [/oauth2/token/](/ramps-api/authentication/acquire-access-token). Use as
        `Authorization: Bearer <access_token>`.

````

## Related topics

- [Get Last Market Rates](https://docs.ripio.com/crypto-as-a-service/rates/get-last-market-rates.md)
- [Trading integration](https://docs.ripio.com/crypto-as-a-service/guides/trading-integration.md)
- [Create Reusable Quote](https://docs.ripio.com/crypto-as-a-service/reusable-quotes/create-reusable-quote.md)
- [Retrieve Account Reusable Quote](https://docs.ripio.com/crypto-as-a-service/reusable-quotes/retrieve-account-reusable-quote.md)
- [List Account Reusable Quotes](https://docs.ripio.com/crypto-as-a-service/reusable-quotes/list-account-reusable-quotes.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.