How to Get MSCI World (MXWO) Prices via API
You need to chart MSCI World (MXWO) in a dashboard and keep it updating without manual CSVs. By the end of this guide you will fetch live MXWO prints over HTTPS, parse the JSON, and understand how to store, invert, and cache the values so you can backfill a time series and alert on moves.
What you will build: a reliable MXWO pull for charts, backfills, and alerts
The job is straightforward: get the latest MSCI World level, render a chart, and optionally backfill recent days for continuity. We’ll focus on a single, production-friendly path using the latest endpoint and show how to interpret the fields so your code works the same way in a cron, a browser app, or a research notebook.
We’ll use:
- Latest endpoint to get the most recent MSCI World level.
- Time-series or fluctuation endpoints (overview only) to compute changes between two dates for alerting and analytics.
If you’re confirming symbol codes or adding other benchmarks, use the Symbols page. Do that before you ship: symbols can differ by data vendor. If you don’t yet have credentials, get a key here: Register.
Key concepts: base currency, MXWO vs USDMXWO, and invertible quotes
Indices-API quotes are delivered relative to a base currency. For latest data, the base is USD by default. That means:
- rates.MXWO is quoted “per index,” relative to USD. In other words, it’s a USD-per-index-point rate.
- rates.USDMXWO is also provided for convenience and represents the MXWO level expressed directly in index points (think: what you’d put on the y-axis of a chart).
Practically, you will do one of these in your code:
- Read rates.USDMXWO and plot it as the MSCI World index level.
- Or, if rates.USDMXWO is not present for a symbol, compute 1 / rates.MXWO to derive the level in index points.
Because the base is USD, you can treat USDMXWO as the “index level” and MXWO as its inverse ratio. When you store both, your downstream conversions become trivial.
One call that works everywhere: latest MXWO
The latest endpoint returns the most recent consolidated print, updated intraday depending on your plan. You don’t pass a symbol filter—just request the latest and pick out the keys you need.
cURL request you can paste into a terminal
curl -s "https://indices-api.com/api/latest?access_key=YOUR_API_KEY"
Official JSON (real response)
{"data":{"success":true,"timestamp":1795308000,"date":"2026-11-22","base":"USD","rates":{"MXWO":0.00022420921410186,"USD":1,"USDMXWO":4460.1200000000545}}}
What you will actually use from this payload:
- data.success: Boolean guard for happy-path logic.
- data.timestamp: Unix epoch seconds. Helpful for caching and timeline joins.
- data.date: The market date of the print (not your local timezone); on weekends/holidays this will remain the last trading day.
- data.base: USD. This drives the semantics of the rates field.
- data.rates.MXWO: USD-per-index-point (invertible ratio).
- data.rates.USDMXWO: The MSCI World index level in index points (use this directly for charting).
Minimal JavaScript that extracts the MXWO level
async function getMxwoLevel() {
const url = "https://indices-api.com/api/latest?access_key=YOUR_API_KEY";
const res = await fetch(url, { cache: "no-store" });
if (!res.ok) throw new Error("HTTP " + res.status);
const json = await res.json();
// Defensive checks in production code
const payload = json.data;
if (!payload?.success) throw new Error("API returned success=false");
const base = payload.base; // "USD"
const date = payload.date; // e.g., "2026-11-22"
const ts = payload.timestamp; // epoch seconds
const rates = payload.rates || {};
// Prefer direct level if available
let mxwoLevel = rates.USDMXWO;
// Fallback: derive level from the invertible rate
if (mxwoLevel == null && typeof rates.MXWO === "number" && rates.MXWO !== 0) {
mxwoLevel = 1 / rates.MXWO;
}
if (typeof mxwoLevel !== "number") {
throw new Error("MXWO level not found in latest payload");
}
return { level: mxwoLevel, date, ts, base };
}
// Example usage:
getMxwoLevel().then(console.log).catch(console.error);
Notes for production:
- Timezone: date is aligned to the market date; don’t force-localize it before writing to your store, or you’ll create day-boundary drift.
- Caching: the latest endpoint refreshes intraday depending on plan (for example, every 60 minutes or every 10 minutes). Cache no longer than your update cadence, and re-validate on each chart load to avoid stale labels.
- Weekends and holidays: expect the date and rates to remain pinned to the last trading day. Your job is just to display the last close/last consolidated print until the market session resumes.
Turning MXWO into charts, backfills, and alerts
With the latest level in place, you usually need three things: a visible chart, a recent backfill to avoid gaps, and an alerting rule. Here are the practical steps.
Charting MXWO
- Use data.rates.USDMXWO as the plotted value. Store it alongside timestamp for time-axis labeling.
- If you build multi-index dashboards, normalize names at ingestion time so “USDMXWO” is consistently mapped to “MSCI World (MXWO).”
- When the session is closed, annotate your chart with the last trading date from data.date.
Backfilling a series
To fill the last 5–30 days (depending on how far behind you are), call the time-series or historical endpoints. The time-series endpoint lets you pass a start_date and end_date to get a daily block. The historical endpoint is for single-day pulls. Refer to the parameter details in the Documentation.
- Practical constraint: when you query time-series or fluctuation endpoints, set end_date to the most recent trading day; don’t set it to “today” during market closures. If you pass today on a weekend, you’ll just re-receive the last trading day.
- Store both MXWO and USDMXWO if the endpoint returns them. If not, store one and compute the other to keep ingestion uniform.
- Use the base and date fields as primary keys for de-duplication.
Threshold and fluctuation alerts
You can alert on moves by computing deltas between two dates. The fluctuation endpoint returns start_rate, end_rate, and pre-computed changes over a span. Keep your alerting logic symbol-specific; for MXWO you’ll likely trigger on absolute point changes or a percent move over 1–5 days. When you implement fluctuation for MXWO, use the same interpretation logic as latest: prefer the USDMXWO value if present, otherwise invert MXWO.
Important: don’t hardcode percent values in your code or documentation; derive them from the payload at runtime. See API request and response specifics in the Documentation.
Implementation details that save time
Symbol confirmation and naming
MSCI World is available as MXWO. Confirm support on the Symbols page before deploying to production. If your app also displays region variants (e.g., ACWI, EAFE), validate each symbol code rather than assuming a naming scheme.
Base currency and units
- Base: USD (see data.base). Rates are expressed relative to USD.
- Rates semantics:
- rates.MXWO: USD-per-index-point. You can invert to get the index level (points) if needed.
- rates.USDMXWO: direct index level (points). Use this for UI and analytics.
Trading days, weekends, and holidays
- On non-trading days, the date does not advance. Your UI should show “Last updated” using data.date and, optionally, humanize data.timestamp for wall-clock recency.
- If you’re performing day-over-day comparisons, join by date, not local clock time.
Update frequency and caching
- The latest endpoint updates intraday depending on plan tier (for example, every 60 minutes or every 10 minutes). Avoid polling more often than the update frequency.
- Cache at the edge and in your data layer with a TTL no longer than your plan’s update cadence. Re-validate using If-Modified-Since or ETag semantics if your HTTP client supports it.
End dates in time-series queries
- When using time-series or fluctuation, set end_date to the most recent market date. Passing “today” during a closure doesn’t break anything, but it’s ambiguous and may just return the last available day.
- If you need intraday candles, use the intraday or OHLC endpoints; otherwise stick to daily closes to reduce noise.
Resilience, fallbacks, and monitoring
- When USDMXWO is missing, invert MXWO; when MXWO is missing, use USDMXWO if present.
- Log data.timestamp and data.date for traceability. If you alert on “stale data,” compare incoming timestamp with your last-success timestamp.
- Implement a small jitter on polling intervals to avoid synchronized spikes across your fleet.
Python variant: parse and normalize MXWO safely
If you prefer Python for ingestion or notebooks, this snippet mirrors the JavaScript flow and keeps the same field names for consistency across teams.
import os
import requests
def get_mxwo_level():
url = "https://indices-api.com/api/latest"
params = {"access_key": os.environ.get("INDICES_API_KEY", "YOUR_API_KEY")}
r = requests.get(url, params=params, timeout=10)
r.raise_for_status()
payload = r.json().get("data", {})
if not payload.get("success"):
raise RuntimeError("API returned success=false")
base = payload.get("base")
date = payload.get("date")
ts = payload.get("timestamp")
rates = payload.get("rates", {})
mxwo_level = rates.get("USDMXWO")
if mxwo_level is None:
mxwo = rates.get("MXWO")
if isinstance(mxwo, (int, float)) and mxwo != 0:
mxwo_level = 1.0 / mxwo
if not isinstance(mxwo_level, (int, float)):
raise KeyError("MXWO level not found")
return {"level": mxwo_level, "date": date, "timestamp": ts, "base": base}
if __name__ == "__main__":
print(get_mxwo_level())
Tip: make your ingestion library return a normalized shape for all indices: { symbol, level, date, timestamp, source }. That keeps your chart and alerting layers decoupled from HTTP and vendor-specific fields.
OHLC, time-series, and fluctuation: when to use which
Most apps only need the latest print plus a daily series for charts. Use these patterns selectively:
- OHLC endpoint: when you need open, high, low, close for a specific date (e.g., candle charts, session range displays).
- Time-series endpoint: when you need a continuous daily series between start_date and end_date.
- Fluctuation endpoint: when you need pre-computed change, change_pct, start_rate, and end_rate between two dates for alerting and summaries.
Always match the “direction” of the rate to your use case. For a human-friendly index number, prefer USDMXWO. For ratios or conversions, work with MXWO and invert only for display. Endpoint details and parameter names are in the Documentation. If you are building in a network-restricted environment, see MCP for managed connectivity options.
Security, environments, and staging
- Keep your access key out of the client when possible; proxy requests through your backend. If you must call directly from a browser, rotate keys periodically and scope traffic by origin.
- Use separate keys for staging and production, and tag your logs with environment to trace issues.
- Throttle upstream calls at your gateway to respect your update cadence and reduce cost.
Operational checklists
Before you ship
- Verify MXWO availability on the Symbols page.
- Fetch latest and confirm you see both MXWO and USDMXWO. If only one is present for a future symbol, ensure your inversion fallback works.
- Make sure your cache TTL is aligned with your plan’s update frequency.
- Write unit tests that assert monotonic date progression and the presence of base, date, timestamp, and at least one MXWO key.
When the market is closed
- Expect data.date to remain the last trading day and data.timestamp to update at the API refresh boundary.
- UI tip: label the series with the date and render a “Last trading day” badge to avoid user confusion.
Useful links
- Product home for capabilities and coverage: indices-api.com
- Developer docs, endpoints, and parameters: Documentation
- Confirm MXWO and discover related benchmarks: Symbols
- Register for an API key (7-day trial available): Register
- Network and connectivity options: MCP
- Homepage (overview, pricing, roadmap): Indices-API
FAQ
How often does the latest MXWO update?
The latest endpoint refreshes intraday depending on your plan (for example, every 60 minutes or every 10 minutes). Cache accordingly and don’t poll more frequently than the update cadence. See the Documentation for current refresh intervals.
Which field should I chart?
Prefer data.rates.USDMXWO as the MSCI World index level. If it’s absent, compute 1 / data.rates.MXWO to derive the same number in index points.
Why didn’t the date advance today?
On weekends and market holidays, the API returns the last trading day. Keep using that date for labels until the next session.
Can I compute percent changes for alerts?
Yes. Use time-series or fluctuation endpoints between two dates to get start and end prints, then compute percent change in your code. Don’t hardcode sample percentages; derive from the payload.
Do I need to pass a symbol to the latest endpoint?
No. Request the latest once and select the keys you need (MXWO, USDMXWO). Validate symbol availability on the Symbols page.
Ready to wire this into your app? Start by grabbing your API key and hitting the latest endpoint. You can be plotting MXWO in minutes: Register.