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

# Get Exchange Rates

> Retrieve the current active exchange rates for supported currency pairs

## Authentication

This endpoint does **not** require authentication. It is publicly accessible.

## Description

Returns the latest exchange rates used by the Open Pay platform for converting between fiat and cryptocurrency. Rates are sourced from aggregated exchange data and updated frequently.

## Response

<ResponseField name="rates" type="array">
  An array of active exchange rate objects.

  <Expandable title="rate fields">
    <ResponseField name="pair" type="string">
      The currency pair (e.g., `USDT/LKR`, `USDT/USD`).
    </ResponseField>

    <ResponseField name="rate" type="number">
      The current exchange rate.
    </ResponseField>

    <ResponseField name="source" type="string">
      The data source for the rate (e.g., `binance`, `coingecko`, `manual`).
    </ResponseField>

    <ResponseField name="updatedAt" type="string">
      ISO 8601 timestamp of when the rate was last updated.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://olp-api.nipuntheekshana.com/v1/exchange-rates/active"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "rates": [
      {
        "pair": "USDT/LKR",
        "rate": 298.50,
        "source": "binance",
        "updatedAt": "2026-03-26T14:30:00Z"
      },
      {
        "pair": "USDT/USD",
        "rate": 1.0002,
        "source": "coingecko",
        "updatedAt": "2026-03-26T14:30:00Z"
      }
    ]
  }
  ```
</ResponseExample>
