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

# Get Carbn Currency Exchange Rate

> Get the current exchange rate from source currency to target currency using Carbn's rates



## OpenAPI

````yaml /api-reference/openapi.json get /payment/api/v1/exchange/currency-rates/carbn
openapi: 3.0.0
info:
  title: Carbn Connect API
  version: 1.0.0
  description: >-
    API documentation for Carbn Connect services including user onboarding, KYC,
    wallet management, and transfers.
servers:
  - url: https://api.carbnconnect.com
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /payment/api/v1/exchange/currency-rates/carbn:
    get:
      tags:
        - Exchange
      summary: Get Carbn Currency Exchange Rate
      description: >-
        Get the current exchange rate from source currency to target currency
        using Carbn's rates
      operationId: getCarbnCurrencyRate
      parameters:
        - name: sourceCurrency
          in: query
          required: true
          schema:
            type: string
          example: USDC
          description: Source currency code (e.g., USDC, USD, EUR)
        - name: targetCurrency
          in: query
          required: true
          schema:
            type: string
          example: PHP
          description: Target currency code (e.g., PHP, EUR, USD)
      responses:
        '200':
          description: Exchange rate retrieved successfully
          content:
            application/json:
              schema:
                type: number
                example: 57.85
                description: Exchange rate from source currency to target currency
        '400':
          description: Invalid request - invalid currency codes
        '401':
          description: Unauthorized - API key is missing or invalid
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Must be included in the x-api-key header.

````