Coverage
Data available for USDMXN
The peso is covered by all three forex datasets. As an emerging-market pair, its spreads vary more through the day, which the intraday data records.
| Data | What it is | Granularity | Delivery | Plan | Details |
|---|---|---|---|---|---|
| Daily history / time series | One row per day: OHLC mid, closing bid and ask, or an official fixing | 1 day | API and CSV/Parquet file | Full history on Free (1-day delay); same-day close on Starter | Product page |
| Intraday OHLC bars | Bars built from bid, ask or mid prices | 1 second to 1 hour | API and file | 1-hour bars on Free; 1-minute on Starter; 1-second and bid/ask on Pro | Product page |
| Tick bid/ask | Every bid and ask update, millisecond timestamps | Each quote | API and file | 1 year on Pro; full history on Business | Product page |
Sample data
Sample data preview
The ECB's eight-major free file doesn't include the peso. Request a sample and we'll send USDMXN rows in the schema shown below.
Schema
Schema
USDMXN bars carry the fields below. Prices quote to four decimals, and average_spread is noticeably wider than on G10 pairs.
| Field | Type | Description |
|---|---|---|
symbol |
string | Pair, e.g. GBPUSD |
interval |
string | 1s, 1m, 5m, 15m, 1h |
timestamp |
string | Bar start time, ISO 8601 UTC |
price_side |
string | mid, bid or ask |
open |
number | First price in the bar |
high |
number | Highest price |
low |
number | Lowest price |
close |
number | Last price |
tick_count |
integer | Price updates in the bar (optional) |
vwap |
number | Tick-weighted average price (optional) |
average_spread |
number | Mean ask minus bid in the bar, for cost modelling (optional) |
API
Get it by API
This early access example fetches one UTC day of USDMXN minute bars.
curl (example)
curl -G "https://api.marketdata.co/v1/forex/bars" \
-H "Authorization: Bearer $MARKETDATA_API_KEY" \
--data-urlencode "symbol=USDMXN" \
--data-urlencode "interval=1m" \
--data-urlencode "start=2026-11-18T00:00:00Z" \
--data-urlencode "end=2026-11-19T00:00:00Z"
Python (example)
import os
import requests
import pandas as pd
resp = requests.get( # USDMXN minute bars, spread by hour
"https://api.marketdata.co/v1/forex/bars",
headers={"Authorization": f"Bearer {os.environ['MARKETDATA_API_KEY']}"},
params={"symbol": "USDMXN", "interval": "1m",
"start": "2026-11-18T00:00:00Z", "end": "2026-11-19T00:00:00Z"},
timeout=30,
)
resp.raise_for_status()
bars = pd.DataFrame(resp.json()["results"])
bars["timestamp"] = pd.to_datetime(bars["timestamp"], utc=True)
print(bars.groupby(bars["timestamp"].dt.hour)["average_spread"].mean())
Average spread by hour, as the Python tab prints it, shows how expensive the peso gets outside North American hours.
Datasets
Get it as a file
USDMXN files are sold per pair:
- Formats: CSV and Parquet
- Daily OHLC history: $19 per pair, all years
- 1-minute mid bars: $29 per pair, full history, bid and ask sides included
- Ticks: $3 per pair per month
Carry backtests usually only need daily data, which costs $19 for the full history.
Use cases
About US Dollar / Mexican Peso (for traders)
USDMXN is the number of Mexican pesos one US dollar buys. The peso is one of the most traded emerging-market currencies, partly because it trades around the clock and serves as a liquid proxy for wider EM risk.
Mexican interest rates have usually been well above US rates, which makes the peso a popular carry-trade currency: buy pesos, earn the rate gap. That works until risk appetite breaks, and then USDMXN can spike as carry positions unwind all at once.
Trade with the US drives a lot of it. Tariff threats, trade-agreement news and US elections have all produced sharp peso moves. Banxico decisions and US data releases fill out the calendar.
Liquidity is best in North American hours. Overnight, spreads widen a lot, and gap risk is real on weekends when trade or political news breaks. Use the spread data before trusting a minute-bar backtest.
Mexico's daylight saving rules have changed over the years, and most of the country stopped using summer time in 2022. If you convert UTC timestamps to local Mexico City time, use a current time zone database or your session filters will be an hour off.
Pricing
Pricing
The forex plans include USDMXN:
| Free $0 | Starter $29/mo | Pro $79/mo | Business $249/mo | |
|---|---|---|---|---|
| Daily OHLC | Full history, 1-day delay | Same-day close, bid/ask closes | As Starter | As Starter, commercial use |
| Intraday bars | 1-hour bars, last 30 days | 1-minute bars, 5 years | 1-second bars, bid and ask sides | As Pro, commercial use |
| Tick bid/ask | No | No | 1 year of history | Full history |
Full plan details are on the pricing page.
FAQ
Frequently asked questions
How far back does USDMXN history go?
Peso start dates per resolution will be listed before launch. Full daily history is planned for Free, with 1-minute bars from Starter.
Why does the peso spike during sell-offs?
Many investors hold pesos for the high interest rate. When markets fall, they sell at once, and USDMXN jumps.
Is the peso in the free ECB file?
No, the free sample covers eight major currencies, and MXN isn't one of them. Request a sample for USDMXN rows.
Can I get USDMXN data in Excel?
Yes, every USDMXN file is available as CSV, which opens directly in Excel. Parquet suits the larger intraday files.
What time zone are the bars in?
All timestamps are UTC. Convert to America/Mexico_City in your code if you want local times, using an up-to-date time zone database.
Keep reading