Core coverage
Retrieve historical prices for major China indices
Built for developers and AI agents, connect index performance, constituents and weights directly to backtests, portfolio attribution and benchmark research.
Retrieve historical prices for major China indices
Query index constituents and current weights
Calculate benchmark returns, exposure and attribution
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")
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.
Typical filters: symbol, start_date, end_date, trade_date
Typical filters: symbol, con_symbol, start_date, end_date
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.
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.
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.
Explore prices, ETFs, financials, flows, indices and realtime information to build a complete research data workflow.
Browse all data services