INDICES API

China Stock Index Data API

Built for developers and AI agents, connect index performance, constituents and weights directly to backtests, portfolio attribution and benchmark research.

01

Core coverage

Retrieve historical prices for major China indices

02

Research use

Query index constituents and current weights

03

Extended capability

Calculate benchmark returns, exposure and attribution

REST API · PYTHON SDK · MCP

One request into your workflow

Every endpoint uses consistent authentication, security symbols and JSON responses, with REST API, Python SDK and MCP access available.

# pip install quantcoda
import quantcoda as qc

qc.set_token("qc_live_your_key")
df = qc.index_daily(symbol="000300.SH", start_date="20260101")
DATA CONTRACT

What this China market dataset includes

Indices is exposed through 2 documented endpoints. Each response preserves exchange-qualified security symbols, explicit trading or reporting dates and stable field meanings so that the same query can be reviewed in code, a backtest or an agent workflow.

/v1/indices/daily

Index daily bars (default SSE Composite)

Typical filters: symbol, start_date, end_date, trade_date

/v1/indices/index-weight

Index constituents & weights

Typical filters: symbol, con_symbol, start_date, end_date

CONSISTENT INPUTS

Symbols and dates that remain explicit

China stock symbols include their exchange suffix, such as 600519.SH, 000001.SZ or 430047.BJ. Calendar dates use YYYYMMDD; financial endpoints distinguish announcement dates from reporting periods.

RESEARCH OUTPUT

JSON for APIs, DataFrames for Python

REST responses use typed JSON values. The official Python SDK converts the same records into pandas DataFrames, while MCP exposes the same authenticated data contract to compatible AI clients.

FIELD-LEVEL DOCS

Inspect meaning before modelling

The documentation lists request parameters, response columns, units and plan requirements for every endpoint. Missing values remain explicit rather than being silently imputed by the API.

AVAILABLE DATA

Indices endpoints

EXPLORE THE DATA ATLAS

Connect more China market data

Explore prices, ETFs, financials, flows, indices and realtime information to build a complete research data workflow.

Browse all data services