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

# Get pair rate

> Live indicative quote for a Solana EURC↔USDC pair. Optional `amount` and `tradeType` query params. Requires `api:read` scope.




## OpenAPI

````yaml /openapi.yaml get /rates/{from}/{to}
openapi: 3.1.0
info:
  title: Remitflex API
  version: 1.0.0
  description: >
    Programmatic access to Remitflex payment routes, fiat rates, customers, and
    transactions.


    **Dashboard:** Create API keys at https://dashboard.remitflex.io


    **Authentication:** Send your API key as `Authorization: Bearer
    rmf_live_...` or `rmf_test_...`.


    **Idempotency:** Mutating requests (`POST`, `PUT`, `PATCH`, `DELETE`)
    require an `Idempotency-Key` header when authenticated with an API key.
servers:
  - url: http://localhost:4000/v1
    description: Local development
  - url: https://api.remitflex.io/v1
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /rates/{from}/{to}:
    get:
      tags:
        - Rates
      summary: Get pair rate
      description: >
        Live indicative quote for a Solana EURC↔USDC pair. Optional `amount` and
        `tradeType` query params. Requires `api:read` scope.
      operationId: getPairRate
      parameters:
        - name: from
          in: path
          required: true
          schema:
            type: string
            enum:
              - USDC
              - EURC
          example: USDC
        - name: to
          in: path
          required: true
          schema:
            type: string
            enum:
              - USDC
              - EURC
          example: EURC
        - name: amount
          in: query
          required: false
          schema:
            type: number
          description: Probe amount (human decimal)
        - name: tradeType
          in: query
          required: false
          schema:
            type: string
            enum:
              - exact_input
              - exact_output
            default: exact_input
      responses:
        '200':
          description: Rate fetched
          content:
            application/json:
              examples:
                success:
                  $ref: b727f20e-94cb-4425-80e2-10ea895fd8d2
        '503':
          description: Rate not available yet
          content:
            application/json:
              examples:
                error:
                  value:
                    status: error
                    message: Rate for USDC/EURC not available yet. Try again shortly.
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: >
        API key created in the Remitflex Dashboard at dashboard.remitflex.io
        (`rmf_live_...` or `rmf_test_...`).

        Key management endpoints require a dashboard JWT and are not part of
        this reference.

````