Banxico (BANXICO_RATE) Rate History

Banxico (BANXICO_RATE) Rate History

Your team needs a dependable way to load Banxico’s policy rate into apps—whether to power a lending dashboard, run macro backtests, or price MXN loans accurately. By the end of this article you’ll query BANXICO_RATE (the Banco de México Overnight Rate) from Interest Rates API, pull the latest value, fetch history, compute fluctuations and OHLC aggregates, and translate the returned rate into spreads and loan payments inside your own software.

Understanding BANXICO_RATE: What it represents and how it’s expressed

BANXICO_RATE is the central bank policy rate for Mexico (Banco de México, MXN). It is the overnight target rate that anchors the MXN interest rate curve and flows through to funding costs, lending rates, and discount curves used by treasury, lending, and risk systems.

Illustration: Banxico (BANXICO_RATE) Rate History

Key properties for developers:

  • Symbol: BANXICO_RATE
  • Category: central bank
  • Currency: MXN
  • Frequency: monthly (effective rate within the reference period)

Returned values are percentage rates (for example, 6.5 represents 6.5% annualized). Dates indicate the effective date for that observation. For monthly symbols, effective dates typically reflect the last date with data inside the month; historical lookups for arbitrary mid-month dates return the most recent value applicable to that month.

All examples in this guide call Interest Rates API (https://interestratesapi.com) and authenticate via the api_key query parameter using HTTP GET only. If you don’t have a key yet, use Register or Get started with Interest Rates API.

Quick start: Get the latest BANXICO_RATE

Use the official latest endpoint sample below to retrieve the most recent Banxico rate. This returns a rates map, a dates map with each symbol’s effective date, and a currencies map.

cURL (official sample)

curl -s "https://interestratesapi.com/api/v1/latest?api_key=YOUR_API_KEY&symbols=BANXICO_RATE"

JSON response (official sample)

{
    "success": true,
    "date": "2026-10-31",
    "base": "MXN",
    "rates": {
        "BANXICO_RATE": 6.5
    },
    "dates": {
        "BANXICO_RATE": "2026-10-31"
    },
    "currencies": {
        "BANXICO_RATE": "MXN"
    },
    "base_filter_note": null
}

How to read it:

  • rates.BANXICO_RATE: The latest available policy rate (percentage, annualized).
  • dates.BANXICO_RATE: Effective date of that observation. For monthly symbols this is the last date with data within the month.
  • currencies.BANXICO_RATE: MXN indicates the currency of the benchmark, not a conversion.

Python (requests)

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/latest",
params={"symbols": "BANXICO_RATE", "api_key": "YOUR_API_KEY"}
)
data = resp.json()

rate = data["rates"]["BANXICO_RATE"]
effective_date = data["dates"]["BANXICO_RATE"]
currency = data["currencies"]["BANXICO_RATE"]

print("BANXICO_RATE:", rate, "Effective:", effective_date, "Currency:", currency)

JavaScript (fetch)

const response = await fetch(
'https://interestratesapi.com/api/v1/latest?symbols=BANXICO_RATE&api_key=YOUR_API_KEY'
);
const data = await response.json();

const rate = data.rates.BANXICO_RATE;
const effectiveDate = data.dates.BANXICO_RATE;
const currency = data.currencies.BANXICO_RATE;

console.log('BANXICO_RATE', rate, 'Effective', effectiveDate, 'Currency', currency);

PHP

<?php
$url = "https://interestratesapi.com/api/v1/latest?symbols=BANXICO_RATE&api_key=YOUR_API_KEY";
$json = file_get_contents($url);
$data = json_decode($json, true);

$rate = $data["rates"]["BANXICO_RATE"];
$effectiveDate = $data["dates"]["BANXICO_RATE"];
$currency = $data["currencies"]["BANXICO_RATE"];

echo "BANXICO_RATE: {$rate}% (Effective {$effectiveDate}, Currency {$currency})\n";

Tip: Cache the latest response for your app’s refresh cadence. Because BANXICO_RATE is monthly, many teams cache until the next business day or next calendar day, then refresh. Adjust to your needs and consider 429 responses with Retry-After and X-RateLimit-* headers if you scale reads.

Endpoint guide for BANXICO_RATE

All requests use the base URL https://interestratesapi.com/api/v1/ and authenticate via api_key. Only GET is supported.

1) /symbols — Discover available rate symbols

Use this to browse available rates or filter by category and currency. Below is the official example; copy it verbatim to see the response format. While the JSON shows a USD example, you can filter for central bank and MXN to programmatically locate BANXICO_RATE in your own code.

cURL

JSON response

Python

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/symbols",
params={"category": "central_bank", "base": "MXN", "api_key": "YOUR_KEY"}
)
data = resp.json()
# Look for BANXICO_RATE in data["symbols"]

JavaScript

const res = await fetch(
'https://interestratesapi.com/api/v1/symbols?category=central_bank&base=MXN&api_key=YOUR_KEY'
);
const data = await res.json();
// Find item.symbol === 'BANXICO_RATE'

PHP

<?php
$url = "https://interestratesapi.com/api/v1/symbols?category=central_bank&base=MXN&api_key=YOUR_KEY";
$data = json_decode(file_get_contents($url), true);
// Iterate $data["symbols"] to find BANXICO_RATE

2) /latest — Latest value per symbol

Use the official cURL and JSON earlier. Here are additional multi-language samples and key field notes.

cURL

Python

import requests
response = requests.get(
'https://interestratesapi.com/api/v1/latest',
params=dict(symbols='BANXICO_RATE', api_key='YOUR_API_KEY')
)
data = response.json()

JavaScript

const response = await fetch(
'https://interestratesapi.com/api/v1/latest?symbols=BANXICO_RATE&api_key=YOUR_API_KEY'
);
const data = await response.json();

PHP

<?php
echo file_get_contents("https://interestratesapi.com/api/v1/latest?symbols=BANXICO_RATE&api_key=YOUR_API_KEY");

Field highlights: rates is a map keyed by symbol; dates provides the observation’s effective date per symbol; currencies clarifies the rate’s currency (here, MXN). Use dates to align rate changes with your accrual engine’s effective periods.

3) /historical — Value on a specific date

For monthly symbols like BANXICO_RATE, the API returns the last available value within that month if you request a mid-month date. This is essential when backfilling time series on specific days.

cURL

JSON response

Python

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/historical",
params={"date": "2025-06-15", "symbols": "BANXICO_RATE", "api_key": "YOUR_KEY"}
)
data = resp.json()

JavaScript

const res = await fetch(
'https://interestratesapi.com/api/v1/historical?date=2025-06-15&symbols=BANXICO_RATE&api_key=YOUR_KEY'
);
const data = await res.json();

PHP

<?php
$url = "https://interestratesapi.com/api/v1/historical?date=2025-06-15&symbols=BANXICO_RATE&api_key=YOUR_KEY";
echo file_get_contents($url);

Error handling: A 404 can indicate there is no data for the requested date; you may get a details field with available ranges. Also watch for 422 on date format. For quota-related issues, 429 returns Retry-After and X-RateLimit-* headers.

4) /timeseries — Series between two dates

This endpoint returns a day-by-day map per symbol across a date range. For monthly symbols, the stream may present values repeated across business days within months; use the dates returned to partition by months if you need one value per period.

cURL

JSON response

Python

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/timeseries",
params={
"start": "2025-11-17",
"end": "2026-11-17",
"symbols": "BANXICO_RATE",
"api_key": "YOUR_KEY"
}
)
data = resp.json()

JavaScript

const res = await fetch(
'https://interestratesapi.com/api/v1/timeseries?start=2025-11-17&end=2026-11-17&symbols=BANXICO_RATE&api_key=YOUR_KEY'
);
const data = await res.json();

PHP

<?php
$url = "https://interestratesapi.com/api/v1/timeseries?start=2025-11-17&end=2026-11-17&symbols=BANXICO_RATE&api_key=YOUR_KEY";
echo file_get_contents($url);

Notes for analytics pipelines:

  • rates is a nested map: rates[symbol][ISO-date] = numeric rate.
  • frequencies indicates how often a symbol updates; plan aggregations accordingly.
  • To sample end-of-month values, select the last available date per month in the nested map.

5) /fluctuation — Change statistics over a range

Fluctuation gives start and end values, absolute and percentage change, and high/low over a window. This is useful for rate dashboards and risk monitors.

cURL

JSON response

Python

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/fluctuation",
params={"start": "2025-11-17", "end": "2026-11-17", "symbols": "BANXICO_RATE", "api_key": "YOUR_KEY"}
)
data = resp.json()

JavaScript

const res = await fetch(
'https://interestratesapi.com/api/v1/fluctuation?start=2025-11-17&end=2026-11-17&symbols=BANXICO_RATE&api_key=YOUR_KEY'
);
const data = await res.json();

PHP

<?php
$url = "https://interestratesapi.com/api/v1/fluctuation?start=2025-11-17&end=2026-11-17&symbols=BANXICO_RATE&api_key=YOUR_KEY";
echo file_get_contents($url);

Field highlights: change is end_value - start_value; change_pct is percentage change relative to start_value (null if start_value is 0). Use high and low to identify regime shifts or boundary conditions during the period.

6) /ohlc — OHLC candlestick data

OHLC is computed from daily observations and returned per period (weekly, monthly, quarterly). This is ideal for charts and for volatility summaries when you want open, high, low, close per month.

cURL

JSON response

Python

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/ohlc",
params={
"symbols": "BANXICO_RATE",
"period": "monthly",
"start": "2025-11-17",
"end": "2026-11-17",
"api_key": "YOUR_KEY"
}
)
data = resp.json()

JavaScript

const res = await fetch(
'https://interestratesapi.com/api/v1/ohlc?symbols=BANXICO_RATE&period=monthly&start=2025-11-17&end=2026-11-17&api_key=YOUR_KEY'
);
const data = await res.json();

PHP

<?php
$url = "https://interestratesapi.com/api/v1/ohlc?symbols=BANXICO_RATE&period=monthly&start=2025-11-17&end=2026-11-17&api_key=YOUR_KEY";
echo file_get_contents($url);

Field highlights: Each element has period in YYYY-MM, open/high/low/close floats (percent), and data_points (count of observations contributing to the aggregate).

7) /convert — Compare loan interest cost between two rates

This endpoint compares a simple loan’s total interest cost using the latest value of two symbols. It’s a quick way to present a rate spread and interest-saving estimate in UX flows.

cURL

JSON response

Python

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/convert",
params={
"from": "BANXICO_RATE",
"to": "ECB_MRO",
"amount": 100000,
"term_months": 12,
"api_key": "YOUR_KEY"
}
)
data = resp.json()

JavaScript

const res = await fetch(
'https://interestratesapi.com/api/v1/convert?from=BANXICO_RATE&to=ECB_MRO&amount=100000&term_months=12&api_key=YOUR_KEY'
);
const data = await res.json();

PHP

<?php
$url = "https://interestratesapi.com/api/v1/convert?from=BANXICO_RATE&to=ECB_MRO&amount=100000&term_months=12&api_key=YOUR_KEY";
echo file_get_contents($url);

Field highlights: difference.rate_spread is the simple arithmetic spread (from.rate − to.rate). total_interest and total_payment are based on a simple loan at the latest rates returned; this is useful for quick comparisons and marketing calculators.

Interpreting effective dates, frequency, and business days

Because BANXICO_RATE is monthly, you should treat the returned rate as the applicable policy rate for that month’s accrual period. If your product accrues interest daily, apply the monthly policy rate prorated across days in that month, changing only when the effective month changes or when a new policy action takes effect and is reflected in the data.

  • Effective dates: The dates map shows the effective date per symbol. For monthly rates, this is typically the last date with data in the month.
  • Business days: If you expand monthly values into a daily series (for charts or OHLC computation), align to business days in your calendar. The API’s timeseries can return repeated values on each business day of a period.
  • Caching: With monthly updates, daily refreshes are usually sufficient. Cache-bust on known policy decision cycles as needed.

From rates to spreads and loan payments

Developers often need to turn policy rates into analytics used elsewhere in the stack. Here are common patterns you can implement using BANXICO_RATE values returned by the API.

Rate spread versus a benchmark

Given two rates r1 and r2 (both in percent), the spread in percentage points is:

spread_pp = r1 − r2

To express as basis points, multiply by 100.

Monthly interest accrual (simple interest)

For an amount A, a nominal annual rate r% (for example, BANXICO_RATE), and a number of months m, simple interest is:

interest = A × (r / 100) × (m / 12)

Amortizing monthly payment (annuity formula)

For principal P, annual rate r% and term in months n, convert to a monthly rate i = (r / 100) / 12. If i > 0:

payment = P × i / (1 − (1 + i)^(−n))

If i = 0, payment = P / n. Use the latest BANXICO_RATE to set r when quoting variable-rate products, or replace r with a composite (e.g., r = BANXICO_RATE + margin) in your pricing engine.

Real-world use cases for BANXICO_RATE inside your stack

  • Interest rate dashboards: Show BANXICO_RATE with fluctuation change_pct over the last 12 months and OHLC monthly candles for context.
  • Lending and mortgage pricing: Use latest BANXICO_RATE as the policy anchor, add a product-specific margin, and compute amortizing payments as above.
  • Macro research and backtesting: Pull timeseries for multi-year windows, resample to month-end using the last effective observation, and correlate with inflation or growth indicators.
  • Treasury risk models: Monitor high/low over rolling windows via the fluctuation endpoint to trigger sensitivity recalculations.
  • Fintech UX: Use the convert endpoint to give borrowers an instant comparison versus another benchmark rate, displaying rate_spread and interest_saved.

Operational details that save engineering time

  • Authentication: Always pass api_key as a query parameter. No headers are required.
  • HTTP verbs: All endpoints use GET; there is no POST, PUT, or DELETE.
  • Error handling: Parse JSON where success=false and use error messages. Handle 401/403 for auth/access, 404 for missing data or symbol, 422 for validation, 429 for quota.
  • Rate limiting: Inspect X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and honor Retry-After on 429.
  • Time zones and dates: The API returns ISO dates (YYYY-MM-DD). For monthly symbols, historical lookups with mid-month dates return the applicable value for that month; align this with your accrual periods.
  • Consistency of units: All rates are percentage values (e.g., 6.5 = 6.5%). Convert to decimals by dividing by 100 for math.
  • Data modeling: Store symbol, value, effective_date, and currency. When joining with trades or loans, join on effective_date buckets (e.g., month) for monthly symbols.

End-to-end example workflow for BANXICO_RATE

Step 1 — Discover (optional)

Use /symbols to confirm BANXICO_RATE exists and inspect frequency and description. See the /symbols example above.

Step 2 — Pull latest

Call /latest with symbols=BANXICO_RATE to display today’s applicable rate on a dashboard or to power daily pricing jobs. Use the effective date to decide whether to trigger pricing refreshes.

Step 3 — Build history

Use /historical for point-in-time lookups and /timeseries for ranges. For monthly analytics, down-sample to one observation per month—typically the last business day observation in that month.

Step 4 — Summarize

Use /fluctuation to compute change, change_pct, high, and low across policy cycles and display compact performance badges.

Step 5 — Visualize

Use /ohlc with period=monthly to render candlestick charts and to reduce chart noise for monthly symbols.

Step 6 — Compare

Use /convert to present quick loan cost comparisons between BANXICO_RATE and another benchmark such as ECB_MRO. Show rate_spread and interest_saved in confirmation dialogs or pre-qualification flows.

Links and documentation

Explore more at https://interestratesapi.com and the MCP docs: MCP. To start integrating, Register for an API key. You can also bookmark interestratesapi.com for status and updates, and Register for Interest Rates API to proceed now.

FAQ

Q1: How often does BANXICO_RATE update?
A: BANXICO_RATE is monthly. Use the dates map from /latest or /timeseries to identify the effective date in each month and schedule refreshes accordingly.

Q2: What timezone are dates in?
A: Dates are ISO strings (YYYY-MM-DD). Treat them as effective dates for that calendar day; for monthly symbols, align them to your end-of-month cutoffs or accrual periods as needed.

Q3: How should I cache responses?
A: Many teams cache monthly rates for at least a day. If you query frequently, implement exponential backoff on 429, use Retry-After, and observe X-RateLimit-* headers. Refresh on policy announcement cycles when appropriate.

Q4: How do I compute a variable-rate loan payment from BANXICO_RATE?
A: Convert r% to a monthly decimal i = (r / 100) / 12. Then payment = P × i / (1 − (1 + i)^(−n)) for principal P and term n months. If your product uses “BANXICO_RATE + margin,” add the margin to r before computing i.

Q5: Why do I see repeated values in /timeseries for a monthly symbol?
A: Monthly symbols can appear replicated across business days within a month. Sample the final business day of each month (or use /ohlc with period=monthly) for one-per-month analytics.

Build your Banxico policy rate integration now and keep your MXN pricing, analytics, and dashboards current with one API. Register to get your API key and start calling BANXICO_RATE today via interestratesapi.com.

Ready to get started?

Get your API key and start validating bank data in minutes.

Get API Key