Skip to content

A-Share Endpoints

Query endpoints for A-Share stock data.

GET /api/v1/stock/spot

Real-time A-Share spot data snapshot.

Query Parameters:

ParameterTypeFilter TypeDescription
codestringexactStock code
industrystringexactIndustry name
sourcestringexactData source
namestringlikeStock name (fuzzy)

Example:

Terminal window
curl -H "F-API-KEY: fk-xxxxx" \
"https://finance-api.xp-java.workers.dev/api/v1/stock/spot?industry=半导体&limit=10"

GET /api/v1/stock/financials

Stock financial statement metrics.

Query Parameters:

ParameterTypeFilter TypeDescription
codestringexactStock code
report_datestringexactReport date (YYYY-MM-DD)
report_typestringexactReport type
metricstringexactMetric name
sourcestringexactData source
date_fromstringdate rangeStart date
date_tostringdate rangeEnd date

GET /api/v1/stock/industry-sw

Shenwan industry classification.

Query Parameters:

ParameterTypeFilter TypeDescription
codestringexactStock code
industry_codestringexactIndustry code
sourcestringexactData source
namestringlikeStock name (fuzzy)