Zum Inhalt springen
GET /v1/history

Daily TRM over a date range

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/colombiatrm-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/colombiatrm-api/v1/history" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/colombiatrm-api/v1/history", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/colombiatrm-api/v1/history");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/colombiatrm-api/v1/history",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "to": "2026-06-09",
        "base": "USD",
        "from": "2026-05-01",
        "count": 24,
        "quote": "COP",
        "source": "Banco de la República (Colombia TRM)",
        "history": [
            {
                "date": "2026-05-01",
                "cop_per_usd": 3637.51
            },
            {
                "date": "2026-05-05",
                "cop_per_usd": 3707.58
            },
            {
                "date": "2026-05-06",
                "cop_per_usd": 3723.33
            },
            {
                "date": "2026-05-07",
                "cop_per_usd": 3706.44
            },
            {
                "date": "2026-05-08",
                "cop_per_usd": 3729.27
            },
            {
                "date": "2026-05-09",
                "cop_per_usd": 3747.1
            },
            {
                "date": "2026-05-12",
                "cop_per_usd": 3759
            },
            {
                "date": "2026-05-13",
                "cop_per_usd": 3775.07
            },
            {
                "date": "2026-05-14",
                "cop_per_usd": 3794.91
            },
            {
                "date": "2026-05-15",
                "cop_per_usd": 3784.7
            },
            {
                "date": "2026-05-16",
                "cop_per_usd": 3796.78
            },
            {
                "date": "2026-05-20",
                "cop_per_usd": 3796.87
            },
            {
                "date": "2026-05-21",
                "cop_per_usd": 3730.49
            },
            {
                "date": "2026-05-22",
                "cop_per_usd": 3701.37
            },
            {
                "date": "2026-05-23",
                "cop_per_usd": 3667.06
            },
            {
                "date": "2026-05-27",
                "cop_per_usd": 3644.47
            },
            {
                "date": "2026-05-28",
                "cop_per_usd": 3631.57
            },
            {
                "date": "2026-05-29",
                "cop_per_usd": 3646.58
            },
            {
                "date": "2026-05-30",
                "cop_per_usd": 3678.15
            },
            {
                "date": "2026-06-02",
                "cop_per_usd": 3560.24
            },
            {
                "date": "2026-06-03",
                "cop_per_usd": 3562
            },
            {
                "date": "2026-06-04",
                "cop_per_usd": 3572.85
            },
            {
                "date": "2026-06-05",
                "cop_per_usd": 3565.32
            },
            {
                "date": "2026-06-06",
                "cop_per_usd": 3588.09
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:00.652Z",
        "request_id": "2567698d-36ed-47d7-8fe6-55140c9abcdc"
    },
    "status": "ok",
    "message": "History retrieved successfully",
    "success": true
}