# Convert an amount between currencies at the BNR rate

Converts an amount between any two currencies quoted by BNR (RON included), using the official fixing of the given day (default: latest). Cross rates go through RON, e.g. EUR→USD = (EUR→RON)/(USD→RON). Free of charge.

- REST: `GET https://api.datero.ro/v1/fx-rates/convert`
- Tool MCP: `convert_currency` (endpoint: https://api.datero.ro/mcp)
- Cost: gratuit (0 credite)
- Autentificare: opțională — funcționează și fără cheie (doar rate-limited)

## Parametri

| Nume | În | Tip | Obligatoriu | Descriere |
| --- | --- | --- | --- | --- |
| `amount` | query | string | da | Amount to convert, e.g. "1500" or "99.90". |
| `from` | query | string | da | Source currency, e.g. "EUR". |
| `to` | query | string | da | Target currency, e.g. "RON". |
| `date` | query | string | nu | Fixing day, YYYY-MM-DD. Default: the latest published fixing. |

## Exemplu: Conversie EUR → USD (cross prin RON)

EUR→USD = (EUR→RON)/(USD→RON), la fixing-ul zilei cerute.

```bash
curl "https://api.datero.ro/v1/fx-rates/convert?amount=2500&from=EUR&to=USD&date=2026-06-10"
```

Răspuns:

```json
{
  "amount": 2500,
  "from": "EUR",
  "to": "USD",
  "date": "2026-06-10",
  "rate": 1.155854,
  "result": 2889.6348,
  "source": "BNR"
}
```

Documentație completă: https://datero.ro/docs/api/fx/convert · OpenAPI: https://api.datero.ro/openapi.json
