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

# TC del dólar

> TC del dólar: oficial + alias de compatibilidad.

Devuelve el TC **oficial** y, por compatibilidad, el campo legado `tc_referencial_usd` (deprecado:
bajo el régimen flexible coincide con el oficial). Útil para integraciones previas a 2026.

<RequestExample>
  ```bash cURL theme={"system"}
  curl https://bcb.cucu.bo/api/v1/tc/usd
  ```

  ```javascript JavaScript theme={"system"}
  const res = await fetch('https://bcb.cucu.bo/api/v1/tc/usd');
  const data = await res.json();
  ```

  ```python Python theme={"system"}
  import requests
  data = requests.get('https://bcb.cucu.bo/api/v1/tc/usd').json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={"system"}
  {
    "tc_oficial": {
      "regimen": "flexible",
      "valor": 9.73,
      "base": 9.73,
      "compra": 9.73,
      "venta": 9.83,
      "moneda": "USD/BOB",
      "fecha": "2026-06-29",
      "fecha_publicacion": "2026-06-26",
      "nota": "Tipo de Cambio Oficial flexible (RD BCB 88/2026)."
    },
    "tc_referencial_usd": {
      "compra": 9.73,
      "venta": 9.83,
      "moneda": "USD/BOB",
      "fecha": "2026-06-29",
      "regimen": "flexible",
      "deprecado": true,
      "nota": "Desde 2026-06-29 el TC referencial coincide con el oficial."
    },
    "fuente": "Banco Central de Bolivia (bcb.gob.bo)",
    "disclaimer": "Datos informativos sin garantía. Uso bajo su responsabilidad."
  }
  ```
</ResponseExample>
