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

# Get USD to EUR exchange rate

> Retrieves the current exchange rate for converting USD to EUR (USDC to EURC).
    
This endpoint provides real-time exchange rate information for stablecoin conversions:
- Mid-market rate for reference pricing
- Buy rate for actual conversion calculations
- Sell rate for reverse conversion scenarios

## Use Cases
- Display current exchange rates in dashboards
- Calculate conversion amounts for USDC to EURC transfers
- Financial reporting and analytics
- Real-time pricing for multi-currency operations

## Rate Information
- **Mid-market rate**: The theoretical middle rate between buy and sell
- **Buy rate**: Rate used when converting FROM USD TO EUR (what you get)
- **Sell rate**: Rate used when converting FROM EUR TO USD (what you pay)

The rates are updated in real-time and reflect current market conditions.



## OpenAPI

````yaml /swagger.yml get /api/v0/exchange-rate/usd-to-eur
openapi: 3.0.0
info:
  title: Devdraft AI Payment & Business Management API
  description: >-

    A comprehensive payment processing and business management API that enables
    seamless integration of cryptocurrency and traditional payment methods.
        
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.devdraft.ai
    description: Production Server
security: []
tags: []
paths:
  /api/v0/exchange-rate/usd-to-eur:
    get:
      tags:
        - Exchange Rates
      summary: Get USD to EUR exchange rate
      description: >-
        Retrieves the current exchange rate for converting USD to EUR (USDC to
        EURC).
            
        This endpoint provides real-time exchange rate information for
        stablecoin conversions:

        - Mid-market rate for reference pricing

        - Buy rate for actual conversion calculations

        - Sell rate for reverse conversion scenarios


        ## Use Cases

        - Display current exchange rates in dashboards

        - Calculate conversion amounts for USDC to EURC transfers

        - Financial reporting and analytics

        - Real-time pricing for multi-currency operations


        ## Rate Information

        - **Mid-market rate**: The theoretical middle rate between buy and sell

        - **Buy rate**: Rate used when converting FROM USD TO EUR (what you get)

        - **Sell rate**: Rate used when converting FROM EUR TO USD (what you
        pay)


        The rates are updated in real-time and reflect current market
        conditions.
      operationId: ExchangeRateController_getUSDToEURRate
      parameters: []
      responses:
        '200':
          description: Exchange rate retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExchangeRateResponseDto'
        '401':
          description: Unauthorized - Invalid or missing API credentials
        '404':
          description: App not found or no access permission
        '500':
          description: Internal server error
      security:
        - x-client-secret: []
        - x-client-key: []
components:
  schemas:
    ExchangeRateResponseDto:
      type: object
      properties:
        from:
          type: string
          example: usd
          description: Source currency code (USD for USDC)
        to:
          type: string
          example: eur
          description: Target currency code (EUR for EURC)
        midmarket_rate:
          type: string
          example: '0.85000'
          description: Mid-market exchange rate from source to target currency
        buy_rate:
          type: string
          example: '0.84500'
          description: >-
            Rate for buying target currency (what you get when converting from
            source to target)
        sell_rate:
          type: string
          example: '0.85500'
          description: >-
            Rate for selling target currency (what you pay when converting from
            target to source)
        timestamp:
          type: string
          example: '2024-01-15T10:30:00Z'
          description: Timestamp when the exchange rate was last updated
      required:
        - from
        - to
        - midmarket_rate
        - buy_rate
        - sell_rate
  securitySchemes:
    x-client-secret:
      type: apiKey
      in: header
      name: x-client-secret
      description: >-
        Your secret API key. Keep this secure and never expose it in client-side
        code.
    x-client-key:
      type: apiKey
      in: header
      name: x-client-key
      description: Your unique client API key. Obtain this from your Devdraft AI dashboard.

````