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

# Convertir monedas con una tasa por ID

> Consulta GET /v2/fx/convert con from, to, amount y via para convertir un importe usando la tasa identificada que elijas.

```bash curl theme={null}
curl "https://api.cotizave.com/v2/fx/convert?from=USD&to=COP&amount=100&via=co-trm" \
  -H "X-API-Key: $COTIZAVE_API_KEY"
```

```json theme={null}
{
  "from": {
    "currency": "USD",
    "amount": 100
  },
  "to": {
    "currency": "COP",
    "amount": 390012
  },
  "rate": 3900.12,
  "via": "co-trm",
  "type": "reference",
  "updated_at": "2026-10-25T00:00:00Z",
  "staleness_sec": 43200,
  "stale": false,
  "market": "co_trm"
}
```

`from`, `to` y `amount` son obligatorios; `via` selecciona un ID de tasa. Si no envías `via`, se usa la referencia compatible predeterminada.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.