CAC 40 (FCHI) Price History API
You need to backfill and chart the CAC 40 (FCHI) so your dashboard can render a clean history, display the current level, and compute percent changes with confidence. In this guide you’ll query the latest CAC 40 level and wire up a daily time series suitable for analytics and charts, with practical notes that keep your pipeline robust.
What you will build: latest level + daily history for FCHI
The goal is twofold:
- Fetch the latest CAC 40 print (field: rates.USDFCHI) for use in tickers, alerts, and end-of-day marks.
- Backfill a clean daily series using the time-series endpoint for your charts and metrics (returns, drawdowns, rolling stats).
We’ll use these endpoints:
- Latest: GET https://indices-api.com/api/latest
- Time-Series: the daily historical endpoint for a date range
Symbol to use: FCHI (CAC 40). If you are unsure about a code for another index, confirm on the Indices-API Supported Symbols page.
How CAC 40 quotes are expressed (read this once)
Indices-API responses are base-USD. For indices, you’ll see two useful keys in rates:
- rates.USDFCHI — the CAC 40 level (index points). This is the field you chart.
- rates.FCHI — the reciprocal (USD per one index unit). This is often not what you chart, but it is mathematically consistent with the base.
This naming pattern applies across symbols. For example, GSPC latest uses rates.USDGSPC for the S&P 500 level. Keep this in mind when parsing multiple indices together.
Request the latest CAC 40 level
Copy this curl and substitute your key. The symbols parameter restricts the payload to FCHI.
curl "https://indices-api.com/api/latest?access_key=YOUR_API_KEY&symbols=FCHI"
Official response sample (use these exact values when building your parser):
{"data":{"success":true,"timestamp":1794184860,"date":"2026-11-09","base":"USD","rates":{"FCHI":0.00011020893317969,"USD":1,"USDFCHI":9073.674620999655}}}
Fields you will actually use
- data.success — quick success flag.
- data.timestamp — Unix time (seconds). Treat as UTC for caching and freshness checks.
- data.date — the market date associated with the payload.
- data.base — always “USD” here.
- data.rates.USDFCHI — the CAC 40 index level. Use this for charts, alerts, and EOD displays.
- data.rates.FCHI — the reciprocal (USD per index unit). Most apps won’t chart this.
- data.rates.USD — base identity (1).
Python: fetch latest FCHI and extract the level
This example calls the same latest endpoint and reads the fields you need (date, timestamp, base, and the USDFCHI level). It’s a drop-in for cron jobs and serverless tasks.
import os
import time
import requests
API_KEY = os.getenv("INDICES_API_KEY", "YOUR_API_KEY")
URL = "https://indices-api.com/api/latest"
params = {
"access_key": API_KEY,
"symbols": "FCHI"
}
resp = requests.get(URL, params=params, timeout=10)
resp.raise_for_status()
payload = resp.json()
# Basic validation
if not payload.get("data", {}).get("success"):
raise RuntimeError("Indices-API request did not succeed")
data = payload["data"]
ts = data["timestamp"] # Unix seconds (UTC)
as_of_date = data["date"] # YYYY-MM-DD
base = data["base"] # "USD"
rates = data["rates"]
# The CAC 40 index level
fchi_level = rates["USDFCHI"] # e.g., 9073.674620999655
# Optional: reciprocal in USD per index unit (often not used for charting)
fchi_reciprocal = rates["FCHI"] # e.g., 0.00011020893317969
print(f"As of {as_of_date} (ts={ts}, base={base}), FCHI = {fchi_level:.2f} index pts")
# Cache strategy example: cache for a few minutes to reduce repeated fetches during the same bar
CACHE_TTL_SECONDS = 300
expiry = int(time.time()) + CACHE_TTL_SECONDS
# ...store payload & expiry in your cache of choice
If you plan to run this intraday, note that update frequency depends on your plan. The latest endpoint updates every 60 minutes or every 10 minutes on higher tiers. Always consult the Indices-API Documentation for exact behavior per subscription.
Build a daily CAC 40 price history (time-series)
For charting, risk, and backtests, the time-series endpoint returns daily bars between a start_date and end_date you choose. Practical tips:
- Use symbols=FCHI to restrict the payload to CAC 40.
- end_date cannot be today. Use yesterday’s date for a complete series.
- Weekend and holiday dates will not have prints. Expect gaps in the calendar; do not assume a dense sequence.
- If you need the end-of-day close only, you can compute it from daily time-series values keyed by date.
Typical call shape (parameters shown, elide your key in logs):
GET https://indices-api.com/api/timeseries?access_key=YOUR_API_KEY&start_date=YYYY-MM-DD&end_date=YYYY-MM-DD&symbols=FCHI
Response structure: a daily map keyed by date with rates for each symbol (you’ll read rates[date]["USDFCHI"] for the level). The response also includes start_date, end_date, base, and a timeseries boolean. See the Time-Series section of the Documentation for the exact schema and any plan limits.
Transform the series into chart-ready arrays
- Sort dates ascending; for each date, read rates[date]["USDFCHI"].
- Optionally compute returns: ret[t] = level[t] / level[t-1] - 1.
- Fill forward only if your chart requires continuity; otherwise let gaps show non-trading days.
- Avoid using the reciprocal (rates.FCHI) for charting unless you explicitly need USD per index unit.
Optional: daily OHLC for analytics
If you need open, high, low, close per day (for range statistics, breakout logic, or candlesticks), use the OHLC endpoint documented in the API. The payload contains open, high, low, and close keyed by symbol for a given date, still base-USD. For CAC 40, continue to address FCHI and read the appropriate fields for your calculation. Limit the scope of requests by date to help with caching and rate budgets. Details and examples are in the Documentation.
Smart implementation details that save time
- Base currency: USD. rates.USDFCHI is the index level (index points). rates.FCHI is the reciprocal in USD per index unit.
- Timestamps and dates: timestamp is Unix seconds (UTC). date is the market date (YYYY-MM-DD). If you run at midnight UTC, beware that “today” may not have a completed bar; end_date should be yesterday.
- Trading days: CAC 40 (Euronext Paris) does not trade on weekends and certain holidays. Your time-series will naturally skip those days.
- Update frequency: latest is refreshed per your plan (e.g., every 60 minutes, every 10 minutes). If you alert on moves, set thresholds above the plan’s refresh granularity.
- Caching: cache the latest response for a few minutes to stabilize your UI and reduce calls. For historical/time-series, cache results aggressively since they are immutable after the session closes.
- Missing prints: never assume end_date is the current calendar date. Query up to yesterday. If you must show near-real-time estimates, combine latest with your previous close.
- Validation: check data.success and ensure rates contains USDFCHI before updating your canonical series.
Pricing, access, and symbol confirmation
Start building with the 7-day trial, then PRO is $49.99/mo. You’ll authenticate each request with an access_key query parameter. Get your key here: Register.
Before you wire a new index into production, confirm the symbol code on the official list: Indices-API Supported Symbols. CAC 40 uses FCHI. If you add S&P 500 later, note the naming pattern: GSPC latest uses rates.USDGSPC for the level.
For notes on market coverage and plan capabilities, refer to MCP and the general Documentation.
Why real-time CAC 40 data matters for modern apps
For trading tools, fintech dashboards, and research stacks, consistent index history underpins everything from performance attribution to macro overlays. With IoT-style telemetry pushing market signals across devices, you want an API that returns deterministic, cacheable series for your analytics layer and a predictable latest endpoint for event-driven UX (alerts, badges, toasts). Clean FCHI history enables:
- Financial data analytics: daily returns, rolling vol, risk parity inputs, factor regressions against the French large-cap market.
- Technology-driven UX: fast charts fed by time-series, debounce-able “latest” calls to avoid flicker, and consistent base currency for cross-index comparisons.
- Sustainable compute: cache historical segments; refresh latest at plan cadence; avoid wasteful re-fetches during non-trading windows.
If you add conversions, the base-USD design simplifies multi-index overlays and composite signals (e.g., CAC 40 vs. DAX spreads), without mixing units.
For additional context on the CAC 40 itself, see the Euronext overview or general references such as Euronext’s CAC 40 page and the CAC 40 article.
Implementation checklist
- Get an API key: Register.
- Confirm symbol code FCHI on the Symbols page.
- Latest: call GET /api/latest with symbols=FCHI; read data.rates.USDFCHI.
- Time-Series: call the timeseries endpoint with start_date and end_date (yesterday); parse rates[date]["USDFCHI"].
- Cache: minutes for latest; strong cache for history. Handle weekends and holidays.
- Monitor: alert when today’s latest deviates from yesterday’s close beyond your threshold.
FAQ
Which symbol should I use for CAC 40?
Use FCHI. If in doubt for other indices, verify on the Symbols page.
Why does the response include both FCHI and USDFCHI?
The API is base-USD. rates.USDFCHI is the CAC 40 level (index points) you’ll chart. rates.FCHI is the reciprocal (USD per index unit); it’s provided for consistency with the base but is not typically charted.
My time-series call returns no data for “today.” Is that expected?
Yes. end_date cannot be today; request through yesterday for complete daily bars. Non-trading days (weekends/holidays) will not have entries.
How often does latest update?
It depends on your plan; the latest endpoint refreshes at intervals such as every 60 minutes or every 10 minutes. See the Documentation for plan-specific timing.
Do I need OHLC for basic charts?
Not necessarily. For many dashboards, reading rates.USDFCHI per day from the time-series endpoint is sufficient. Use OHLC if you need day-range analytics or candlesticks.
Ship your CAC 40 integration now: get a free key and start testing with the 7-day trial. When you’re ready to move to production (PRO $49.99/mo), register here: Register. Keep the Documentation open while you wire endpoints, and consult MCP for coverage and plan notes.