PYTHON SDK

China stock data for Python and pandas

Use the official quantcoda package to bring China A-share stocks, ETFs, indices, financials and money flow into Python. Public parameters and fields stay aligned with the REST API.

Get a free API key Read the documentation

Query China stock data in three steps

Install the SDK, set your QuantCoda API key and query by security symbol and date. Results arrive as pandas DataFrames ready for validation, transformation and research.

# Python 3.9+
pip install quantcoda

import quantcoda as qc
qc.set_token("qc_live_your_key")
df = qc.daily(symbol="600519.SH", start_date="20260101")
print(df.head())

A Python API shaped for quantitative research

45 DATA ENDPOINTS

Market, company and capital context

One SDK covers stocks, ETFs, indices, financials, valuation, money flow, chip distribution, realtime quotes and financial news.

PANDAS FIRST

Continue directly in your workflow

Tabular responses become DataFrames for filtering, joins, statistics, visualization and research pipelines.

ONE CONTRACT

Aligned with the REST API

Python methods retain public symbol, date and filter parameters instead of introducing a second naming model.

DISCOVERABLE

Inspect available methods

Use qc.endpoints() to list endpoints, then check field-level request and response definitions in the documentation.

Choose your next step

Explore the China A-Share Market Data API coverage or go directly to the API documentation. For AI-led workflows, the same API key connects to the China Stock MCP Server.