Colombia TRM: official COP/USD exchange rate
Colombia's Tasa Representativa del Mercado (TRM), the official Colombian pesos per US dollar rate certified by the Superintendencia Financiera de Colombia: the current one, a given day or a date range, from datos.gov.co.
colombia_trm
Use it over MCP
- Connect the server
https://mcp.betterllama.com/mcpin your client (setup per client). - Ask your agent, for example:
- «What is Colombia's TRM today?»
- «Daily TRM for November 2026 and how it changed over the month»
- Or call the tool
colombia_trmwith these arguments:
{
"date": "2026-11-20"
}This tool needs no key.
Beta: free and with no sign-up while we test the service.
Direct HTTP call (JSON-RPC)
Without an MCP client, POST to the same server:
curl -s https://mcp.betterllama.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "colombia_trm", "arguments": {"date": "2026-11-20"}}}'import json, requests
# Call a Better Llama MCP tool over HTTP (JSON-RPC)
URL = "https://mcp.betterllama.com/mcp"
HEADERS = {"Accept": "application/json, text/event-stream"}
def call(tool, arguments):
body = {"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": tool, "arguments": arguments}}
r = requests.post(URL, json=body, headers=HEADERS, timeout=120)
r.raise_for_status()
result = r.json()["result"]
data = json.loads(result["content"][0]["text"])
if result.get("isError"):
raise RuntimeError(data["error"])
return data
data = call("colombia_trm", {"date": "2026-11-20"})
for row in data["results"]:
print(row)
print(data["attribution"])The answer text is JSON with results, count, warnings, attribution and source.
Example response
Real results returned by the source (2026-11-21), shortened:
{
"results": [
{
"date_from": "2026-11-21",
"date_to": "2026-11-23",
"value_cop_per_usd": 3461.92
},
{
"date_from": "2026-11-20",
"date_to": "2026-11-20",
"value_cop_per_usd": 3415.1
},
{
"date_from": "2026-11-19",
"date_to": "2026-11-19",
"value_cop_per_usd": 3326.96
},
{
"date_from": "2026-11-18",
"date_to": "2026-11-18",
"value_cop_per_usd": 3309.55
}
],
"attribution": "Fuente: Superintendencia Financiera de Colombia vía datos.gov.co (Portal de Datos Abiertos www.datos.gov.co, conjunto \"Tasa de Cambio Representativa del Mercado - TRM\", 32sa-8pi3). Licencia CC BY-SA 4.0. La fecha de última actualización del conjunto viene en sourceUpdatedAt."
}Parameters
| Argument | Description | Type |
|---|---|---|
date | Day (YYYY-MM-DD): returns the TRM in force that day. Do not combine with fromDate/toDate. | string |
fromDate | From (YYYY-MM-DD), for a TRM range. | string |
toDate | To (YYYY-MM-DD), inclusive. | string |
maxItems | Maximum number of results to return (1-400). Default 400. Default: 400; Max: 400 | integer |
Source and attribution
Fuente: Superintendencia Financiera de Colombia vía datos.gov.co (Portal de Datos Abiertos www.datos.gov.co, conjunto "Tasa de Cambio Representativa del Mercado - TRM", 32sa-8pi3). Licencia CC BY-SA 4.0. La fecha de última actualización del conjunto viene en sourceUpdatedAt. Source site: www.datos.gov.co/Econom-a-y-Finanzas/Tasa-de-Cambio-Representativa-del-Mercado-TRM/32sa-8pi3.
The «Tasa de Cambio Representativa del Mercado - TRM» dataset (32sa-8pi3) of the Superintendencia Financiera de Colombia is published on datos.gov.co under the CC BY-SA 4.0 license. If you reuse the data, cite «Fuente: Superintendencia Financiera de Colombia vía datos.gov.co» together with the update date that every answer includes in sourceUpdatedAt, and share derived works under the same license. CC BY-SA 4.0 license text.
FAQ
What is the TRM?
The Tasa Representativa del Mercado (TRM) is the official exchange rate of Colombian pesos per US dollar. The Superintendencia Financiera de Colombia calculates and certifies it from dollar buy and sell trades in the foreign exchange market, and it is used as the reference in contracts, invoices, tax filings and accounting.
What data does it return?
Rows of the «Tasa de Cambio Representativa del Mercado - TRM» dataset (32sa-8pi3) on datos.gov.co: date_from and date_to (validity) and value_cop_per_usd. With no arguments it returns the latest TRM in force; with date, the one in force that day; with fromDate and toDate, every TRM in the range, newest first (up to 400).
Which TRM applies on a weekend or holiday?
The same TRM stays in force for several days in a row, and the answer shows it as a single row whose validity (date_from to date_to) covers the whole period. For example, the TRM of 3,316.70 pesos applied from November 14 to 17, 2026, which includes the weekend and the Monday 16 holiday.
Do I need a key?
No. datos.gov.co open data needs no key for this query, and the server caches answers for 30 minutes.
How should I cite the source?
The dataset is licensed CC BY-SA 4.0. Cite «Fuente: Superintendencia Financiera de Colombia vía datos.gov.co» and the dataset update date, which comes in sourceUpdatedAt; the attribution field has the full text and source links to the dataset.
How much does it cost?
Free during the beta, with no sign-up and a limit of 60 requests per minute per IP. If paid plans come later, we will announce them on betterllama.com first.