Nasdaq 100 (NDX) Historical Price API
You need to backfill and chart a clean daily history for the Nasdaq 100 (NDX), then keep your dashboard updated with the latest print. By the end of this guide you’ll fetch the current NDX level, request a time series for a date range, and normalize fields so charts, alerts, and research pipelines work reliably.
What you’re building and the endpoints you’ll use
We’ll focus on two Indices-API endpoints that cover the entire lifecycle of a chart or analytics job for NDX:
- Latest endpoint: to pull the current NDX level for realtime dashboards and alerting.
- Time-series endpoint: to backfill daily NDX history between a start_date and end_date you choose.
We’ll also note the OHLC endpoint for daily candles if you want bar charts or volatility studies.
If you need a free key to try requests while you read, start here: Register. Full parameter descriptions live in the Documentation.
Confirm the correct NDX symbol and how prices are expressed
The symbol for the Nasdaq 100 is NDX. Confirm this on the official symbol reference before coding against production: Indices-API Supported Symbols. Do not substitute IXIC (Nasdaq Composite) or other variations unless your use case requires them.
Quotes are returned with base currency USD. The API returns two related fields you’ll use to get the index level:
- rates.NDX: the amount of NDX “index units” per 1 USD (unit: per index).
- rates.USDNDX: the USD price per 1 NDX index unit (this is the direct index level in USD).
These are mathematical inverses. If rates.NDX is present, 1 / rates.NDX equals rates.USDNDX. Using rates.USDNDX is the most direct route to a plot-ready level for the latest endpoint and for daily candles via OHLC.
Plan notes: depending on your plan, the latest endpoint updates in intervals (for example, every 60 minutes or every 10 minutes). See the Documentation for plan-specific update frequency. PRO is $49.99/month with a 7‑day trial.
Fetch the latest NDX value
The latest endpoint returns a compact JSON payload that includes the base currency, a UTC timestamp, the effective date, and the rates map where NDX fields live. Use your access_key via a query parameter.
curl request
curl -s "https://indices-api.com/api/latest?access_key=YOUR_API_KEY"
Official JSON response you should expect
{"data":{"success":true,"timestamp":1795394400,"date":"2026-11-23","base":"USD","rates":{"NDX":3.9953685687551e-5,"USD":1,"USDNDX":25028.979999999996}}}
What each field means (and what you’ll actually use)
- success: boolean indicating the request succeeded.
- timestamp: Unix time (UTC seconds) for the market data snapshot. Cache and order data by this.
- date: UTC calendar date of the rates.
- base: USD. All rates are expressed relative to this base.
- rates.NDX: index units per 1 USD. Invert if you need USD per index.
- rates.USDNDX: USD price per 1 NDX index unit (directly usable index level).
For dashboards, read rates.USDNDX as the latest NDX level. If for any reason you only have rates.NDX, compute 1.0 / rates.NDX for the same value.
Python example to read USDNDX and normalize
import requests
from datetime import datetime, timezone
API_KEY = "YOUR_API_KEY"
url = "https://indices-api.com/api/latest"
params = {"access_key": API_KEY}
r = requests.get(url, params=params, timeout=10)
r.raise_for_status()
payload = r.json()["data"]
# Core fields
ts = datetime.fromtimestamp(payload["timestamp"], tz=timezone.utc)
trade_date = payload["date"]
base = payload["base"]
rates = payload["rates"]
# Prefer the direct USD price if available
if "USDNDX" in rates:
ndx_usd = rates["USDNDX"]
else:
# Fallback: invert rates.NDX (index units per USD) to get USD per index unit
ndx_usd = 1.0 / rates["NDX"]
print(f"NDX latest: {ndx_usd:.4f} USD (timestamp {ts.isoformat()}, date {trade_date}, base {base})")
Backfill a daily NDX time series
Use the time-series endpoint to retrieve daily historical prices over a date range. This is how you initialize charts, compute returns, and feed models. The endpoint accepts start_date and end_date parameters. Keep these practical points in mind:
- Trading vs non-trading days: the Nasdaq 100 is a U.S. index; weekends and certain holidays will have no change. Expect gaps or repeated calendar dates with unchanged levels across non-trading days.
- end_date cannot be today: request through yesterday; use the latest endpoint for the current session print, then append it to your stored series if your app needs same-day data.
- Frequency: the time-series endpoint returns daily bars. For interval candles on a specific date, use the intraday endpoint (see docs) if your plan includes it.
Basic flow for reliable backfills and updates:
- Initial import: call the time-series endpoint with a start_date and yesterday as end_date. Store both rates.USDNDX and timestamp/date per row so you can reindex later without ambiguity.
- Daily refresh: each market day after close, call the time-series endpoint for yesterday only to finalize daily bars.
- Intraday UI: poll latest during the session and stitch that value on the right edge of your chart as a provisional “live” point.
Parameters and shape are described in the Documentation. The symbol must remain NDX for the Nasdaq 100; verify coverage windows on the MCP page if you have market-hours or holiday-schedule constraints.
Daily candles (open, high, low, close) for NDX
If your chart needs OHLC bars rather than a single close, use the OHLC endpoint for your target date(s). The rates payload will include an object for NDX with open, high, low, and close fields, all in the same unit system (base USD). Store these four values plus the date and timestamp so you can reproduce candles consistently across timezones.
For daily analytics, align your timezones to UTC when parsing the timestamp and avoid assuming 00:00 local equals the bar boundary. The API’s date and timestamp fields are authoritative for the bar’s effective period.
Interpreting units and converting safely
The base field is USD and the “unit: per index” semantics apply to rates where the symbol represents index units per USD. For NDX you’ll typically rely on one of two fields:
- rates.USDNDX: directly usable USD per 1 NDX (preferred for chart labels, alerts, and displays).
- rates.NDX: index units per USD. Invert it for USD per index if USDNDX is not included.
This dual representation lets you pick the arithmetic that best fits your pipeline. Many teams standardize on storing USD per index for consistency across indices and for a direct chart axis.
Caching, polling, and production hygiene
- Polling cadence: match your polling interval to your plan’s update frequency for the latest endpoint. Polling more often won’t create fresher data and wastes capacity.
- Cache by timestamp: cache a response as long as timestamp is unchanged. If you deploy behind an edge cache, tune TTL to your polling interval and bust caches when timestamp advances.
- Rollover logic: end_date should be no later than yesterday for time-series pulls. For “today”, attach the latest endpoint’s point to the right edge of your chart and label it “live”.
- Non-trading days: if a date has no trading, carry forward the last close or simply omit that date on your chart. Choose one policy and keep it consistent across instruments.
- Data provenance: rely on the payload’s date and timestamp rather than guessing market sessions by your local timezone.
Field mapping for your charting and analytics code
For a plain close-only chart and basic analytics:
- X-axis: date (UTC) from each row.
- Y-axis: rates.USDNDX (preferred) or 1.0 / rates.NDX.
- Tooltip: include base, date, and a human-readable time from timestamp.
- Change calculations: compute pct_change on the Y-axis series; for OHLC, use close for day-over-day or high/low for range metrics.
For intraday “last” overlays during the session, call latest as users interact and repaint the final point. Tie reflows to the timestamp change to avoid noisy redraws.
Putting NDX in context (methodology and analytics)
NDX tracks 100 of the largest non-financial companies listed on Nasdaq and is widely used for tech-sector exposure, options strategies, and macro risk gauges. If you need an overview while designing factor screens or rebalance logic, see the official index overview on Nasdaq: Nasdaq-100 index page.
As you scale your analytics, use high-precision floats and store both the original rates object and your derived USD-per-index column to make future migrations or audits straightforward. Keep calculations idempotent so you can rebuild from original payloads if needed.
Common pitfalls and how to avoid them
- Mixing units: don’t blend rates.NDX with USDNDX in the same column. Pick USD per index for charts and alerts, and document the choice.
- Requesting today in time-series: end_date cannot be today. Use yesterday for backfills; use latest for today’s print.
- Timezone drift: always parse timestamp as UTC and store date separately. Display local time only in the UI.
- Weekend assumptions: the U.S. market closes on weekends and many holidays. Your series may have flat or missing calendar dates—this is expected behavior.
- Over-polling: align polling rate with the plan’s update cadence. Use caching keyed by timestamp to spare both your users and your infrastructure.
Where to go from here
Explore additional parameters, intraday candles, and fluctuation metrics in the Documentation, verify every symbol you intend to track on the Indices-API Supported Symbols page, and consult MCP for coverage and market hours notes. If you need an API key to start, grab one here: Register.
FAQ
How often does the latest NDX value update?
Update frequency depends on your subscription plan (for example, every 60 minutes or every 10 minutes). Check the plan details in the Documentation and set your polling interval accordingly.
What price should I plot—rates.NDX or rates.USDNDX?
Use rates.USDNDX for a direct USD-per-index level. If it’s not present, compute 1.0 / rates.NDX. Be consistent across your codebase.
Why does time-series reject today as end_date?
Daily bars finalize after the trading day. Request up to yesterday for historical backfills. For a live point today, query the latest endpoint and append that value to your chart.
Which timezone are date and timestamp in?
The timestamp is a Unix epoch in UTC seconds. The date is the UTC calendar date. Convert to local time only in the presentation layer.
How do weekends and U.S. holidays affect the series?
NDX is a U.S. index. Expect no new bar or no change on weekends and certain holidays. Handle these gaps deliberately in your chart logic.