MSCI World (MSCIW) Price History API
To chart MSCI World history, you need a dependable way to identify the index in the API response, backfill daily observations and keep the chart current without treating missing days as zero. This guide shows how to check the latest endpoint, handle the reported symbol error and plan a time-series backfill for MSCIW.
Confirm the symbol before building the series
MSCIW is the symbol in the title, but an attempted API call returned an invalid_symbol error. Before relying on that code in a request or database mapping, check the current Indices-API Supported Symbols page and confirm the supported MSCI World identifier.
Also confirm the response key for the quote you need. A label used in an application, a supported request symbol and a key inside rates should not be assumed to be interchangeable. Store the confirmed key in configuration so a symbol correction does not require rewriting the charting code.
The Indices-API Documentation is the reference for current endpoint parameters, historical availability and subscription-specific access. In particular, verify the available MSCI World history before committing to a backfill range.
Check the latest response
The latest endpoint is useful for testing authentication and inspecting the response shape before scheduling a historical import. This request retrieves the latest response without assuming a symbol-filter parameter:
curl "https://indices-api.com/api/latest?access_key=YOUR_API_KEY"
Replace YOUR_API_KEY with your key. The request above does not select MSCIW specifically; inspect the returned rates keys and compare them with the supported-symbol listing. Keep the key out of source control and avoid logging the full request URL, because authentication is in the query string.
The reported MSCIW call returned this error envelope:
{"success":false,"error":{"code":400,"type":"invalid_symbol","info":"One or more invalid symbols have been specified."}}
This is an error response, not a price observation. The error identifies an invalid symbol but does not establish which supported MSCI World key should replace it. It also should not be read as the result of the unfiltered curl request above.
Inspect the response in Python
The following sample calls the same latest endpoint. Set INDICES_API_KEY in your environment first. It reports API errors and, on a successful response, looks for keys containing the title’s ticker; a match still needs to be checked against the symbols listing.
import json
import os
import sys
from urllib.error import HTTPError, URLError
from urllib.parse import urlencode
from urllib.request import urlopen
key = os.environ.get("INDICES_API_KEY")
if not key:
sys.exit("Set INDICES_API_KEY before running this sample.")
url = "https://indices-api.com/api/latest?" + urlencode(
{"access_key": key}
)
try:
with urlopen(url, timeout=30) as response:
payload = json.load(response)
except HTTPError as exc:
try:
payload = json.load(exc)
except (ValueError, OSError):
sys.exit(f"HTTP error: {exc.code}")
except (URLError, OSError, ValueError) as exc:
sys.exit(f"Request or JSON error: {exc}")
if not isinstance(payload, dict):
sys.exit("Unexpected response format.")
if not payload.get("success"):
error = payload.get("error") or {}
sys.exit(
f"API error: {error.get('type')} "
f"({error.get('code')}): {error.get('info')}"
)
rates = payload.get("rates")
if not isinstance(rates, dict):
sys.exit("Successful response did not contain a rates object.")
print("Base:", payload.get("base"))
print("Date:", payload.get("date"))
print("Timestamp:", payload.get("timestamp"))
print("Unit:", payload.get("unit"))
matches = [(name, value) for name, value in rates.items()
if "MSCIW" in name.upper()]
if not matches:
print("No MSCIW-labelled rate found; verify the supported symbol and key.")
else:
for name, value in matches:
print(name, value)
A successful match is a starting point for inspection, not proof that the quote is the precise MSCI World series your application requires. Confirm the symbol’s specifications, including the quote convention, before persisting it as production history.
Fields to retain
Successful latest and historical examples use these fields. They are absent from the error envelope, so code should check success before attempting to read a quote.
ratesholds the returned quotes, keyed by their response identifiers. For a time series, it is organized by date, with quote keys inside each date.baseidentifies the base currency. API responses are relative to USD by default.dateidentifies the date associated with a single latest or historical response. Time-series responses instead identify their requested range and group observations by date.timestampappears in the supplied latest and single-date historical response formats. Check the documentation for its interpretation and timezone before converting it or using it as an ingestion watermark.unitis shown asper indexin the supplied response formats. Retain it alongside the base and rate so downstream consumers can interpret the quote consistently.
Do not automatically label a returned rate as the conventional MSCI World index level or apply a reciprocal conversion merely because the base is USD. Confirm the supported symbol’s quote and unit conventions first. A chart label should describe the data actually returned, rather than imply an index-point series that has not been verified.
Backfill daily history
For a chart covering a range of dates, use the time-series endpoint after confirming the MSCI World identifier and its historical coverage. Its response groups rates by date, making each returned date a candidate observation for the chart. Consult the documentation for the exact request syntax and the date limits that apply to your subscription.
The time-series end_date cannot be today. End a backfill before today, and use the latest endpoint separately if the product needs a current indication. Keep the historical and latest observations distinguishable until you have verified that their symbol, base and units match.
For a single-date lookup, the historical endpoint is an alternative. It is useful for checking an individual observation or investigating a gap, but a range-oriented backfill should use the time-series response rather than issue an unplanned request for every calendar day.
Persist each observation with its returned date, confirmed response key, base and unit. Preserve the original quote as well as any derived value, so you can reproduce calculations if your interpretation of the series changes. If you also store a timestamp, keep its source and meaning separate from the observation date.
Handle gaps and non-trading days
Calendar dates are not all trading dates. Weekends and market holidays can produce gaps or observations whose treatment differs from a regular trading session. Do not turn an absent date into a zero rate, and do not assume that every returned date represents a new market close.
Decide explicitly how the chart should display missing dates. A trading-day chart can omit missing observations; a calendar-axis chart can leave gaps. If a product chooses to carry a previous observation forward, mark it as carried rather than presenting it as a newly reported value.
When a requested range returns less data than expected, check the response for errors, the supported symbol, the requested dates and your plan’s applicable limits. Verify historical coverage in the documentation rather than assuming that availability for one index or currency applies to MSCI World.
Keep the chart current and the pipeline reliable
Latest-data update frequency depends on the subscription plan; the published description includes intervals of every 60 minutes and every 10 minutes. Polling more often than the applicable update interval does not necessarily produce a fresher observation. Check your plan and use the returned timestamp and date to help distinguish a newly returned observation from one already stored.
Cache latest responses for a period appropriate to the plan’s update frequency and the freshness your interface promises. Cache historical results separately, keyed by the confirmed symbol, base and requested date or range. Keep enough metadata to tell whether a cached result is a latest quote or a historical observation.
Do not treat an error as an empty but successful series. Surface invalid_symbol to the operator, retain any previously verified data and avoid silently replacing it with a different index. For transient request failures, use a controlled retry policy; for a symbol error, recheck the symbols page before retrying.
For large backfills, check the documented range limits and whether pagination or another continuation mechanism applies to the endpoint and plan. Process the supported chunks without assuming an undocumented page parameter. After each chunk, record the covered dates and inspect overlaps and gaps before marking the import complete.
If your workflow also uses an assistant or tool integration, the Indices-API MCP information is a separate place to investigate that integration. The same symbol and quote checks still matter when data is consumed by a tool rather than a chart.
FAQ
Is MSCIW confirmed as a supported API symbol?
The reported call returned invalid_symbol. Check the supported-symbol listing for the current MSCI World identifier and confirm the corresponding response key before building the request.
Can I include today in a time-series request?
No. The time-series end_date cannot be today. Use a prior end date for the historical range and evaluate the latest endpoint separately for current data.
Is the returned rate automatically the MSCI World index level?
Do not assume that. Responses are relative to USD by default, and the supplied formats label the unit per index. Verify the symbol’s quote convention before presenting or transforming the value.
How should I handle weekends and holidays?
Treat missing dates as missing observations, not zeroes. Choose whether your chart omits them, displays gaps or explicitly marks carried-forward values.
Can I backfill the full history in one request?
That depends on available MSCI World coverage and your plan’s time-series date limits. Check both before selecting a range, and process supported chunks if necessary.
Ready to test the endpoint? Visit Indices-API Register to get a free API key, then verify the supported MSCI World symbol before starting your backfill.