# List exchange rates

> Get the cached exchange rates against a base currency.

`GET https://api.camelpayment.com/v1/fx/rates`

Each rate is the units of currency per one unit of base, as a decimal string.

## Query parameters

- `base` (string): Three-letter ISO code. Defaults to USD.

## Request

**cURL**

```bash
curl https://api.camelpayment.com/v1/fx/rates?base=USD \
  -H "Authorization: Bearer $CAMEL_API_KEY"
```

**Node.js**

```javascript
const response = await fetch('https://api.camelpayment.com/v1/fx/rates?base=USD', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.CAMEL_API_KEY}`
  }
});
const data = await response.json();
```

**Python**

```python
import os
import requests

response = requests.get(
    "https://api.camelpayment.com/v1/fx/rates?base=USD",
    headers={
        "Authorization": f"Bearer {os.environ['CAMEL_API_KEY']}",
    },
)
data = response.json()
```

## Response

**200**

```json
{
  "object": "list",
  "base": "USD",
  "data": [
    {
      "currency": "ARS",
      "rate": "1540.0000000000",
      "as_of": "2026-11-12T15:00:00Z"
    }
  ]
}
```

## Errors

| Status | When |
| --- | --- |
| `401` | The API key is missing, malformed, or revoked. |
| `422` | The base currency is not supported. |
| `429` | Too many requests. Wait for Retry-After seconds. |
