> ## 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.

# Comparar una tasa con la referencia oficial

> Consulta GET /v2/fx/{CC}/spread con against para calcular la diferencia respecto de la referencia oficial del país.

```bash curl theme={null}
curl "https://api.cotizave.com/v2/fx/CO/spread?against=co-p2p" \
  -H "X-API-Key: $COTIZAVE_API_KEY"
```

Respuesta ilustrativa; cifras y fechas de ejemplo.

```json theme={null}
{
  "country": "CO",
  "reference": {
    "id": "co-trm",
    "market": "co_trm",
    "value": 3900.12,
    "updated_at": "2026-10-25T00:00:00Z"
  },
  "compared": {
    "id": "co-p2p",
    "market": "co_p2p",
    "value": 4001.55,
    "updated_at": "2026-10-25T11:55:00Z"
  },
  "spread": {
    "absolute": 101.43,
    "percentage": 2.6007,
    "direction": "above"
  },
  "fetched_at": "2026-10-25T12:00:00Z"
}
```

`against` selecciona la tasa a comparar; si se omite, la API elige una alternativa compatible. Requiere Growth o Pro.


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