Core coverage
Retrieve daily prices for major currency pairs
Built for developers and AI agents, add daily exchange rates to cross-market comparisons, macro factors and Chinese yuan risk analysis through the same data interface.
Retrieve daily prices for major currency pairs
Add FX variables to cross-market research
Use one interface alongside stocks, indices and flows
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.fx_daily(symbol="USDCNH.FXCM", start_date="20260101")
FX is exposed through 1 documented endpoint. 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
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