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

# Get exchange rate for a currency pair



## OpenAPI

````yaml /openapi/exchange-rates.json get /exchange-rates
openapi: 3.1.1
info:
  title: ARTU Compliance API
  version: 1.0.0
  description: 'API for compliance management. Documentation: https://docs.artu.ai'
servers:
  - url: https://api.artu.ai
security:
  - bearerAuth: []
    environmentHeader: []
paths:
  /exchange-rates:
    get:
      tags:
        - Exchange Rates
      summary: Get exchange rate for a currency pair
      operationId: exchangeRates.getRate
      parameters:
        - name: baseCurrency
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 10
          allowEmptyValue: true
          allowReserved: true
        - name: targetCurrency
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 10
          allowEmptyValue: true
          allowReserved: true
        - name: timestamp
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: string
                format: date-time
          allowEmptyValue: true
          allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  baseCurrency:
                    type: string
                  targetCurrency:
                    type: string
                  rate:
                    type: number
                  timestamp:
                    type: string
                    format: date-time
                required:
                  - baseCurrency
                  - targetCurrency
                  - rate
                  - timestamp
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key authentication. Obtain your API key from the dashboard.
    environmentHeader:
      type: apiKey
      in: header
      name: X-Environment
      description: Target environment for the request. Must be "test" or "live".

````