free
实时行情快照
A股/港股/美股实时行情(轻量 8 字段):现价、开高低、成交量、成交额、换手率。用户问『某股票现在多少钱/什么价/现价』时用这个。⚠️ 数据为当日盘中滚动更新(约每分钟刷新);取现价用 data[0]。⚠️ 免费 / 匿名档按 5 分钟刷新(保障服务稳定性);付费档实时(每次取此刻最新)。⚠️ data 是数组(默认 30 条日线,data[0] 为最新)。⚠️ 换手率的字段名是 turnover(单位 %)—— 与 /v1/snapshot 同名同值(sz000001 两者均 0.54)。⚠️ 2026-09-26 改名:该字段此前叫 exchange(上游历史命名,极易被误读为「交易所」)—— 已统一为 turnover;如需兼容旧代码,读 turnover 即可。⚠️ 不含估值 / 市值 —— 要这些字段用 /v1/snapshot(35 字段,pro 档,仅 A 股)。⚠️ code 支持逗号批量(多标的)—— 但匿名单次最多 5 只标的(付费不限)。
get/v1/quote
Request
- Base URL: https://api.ashareapi.com (the document declares no server; this is the origin it was published from)
- URL: https://api.ashareapi.com/v1/quote
- Auth: none declared
Query parameters
codestring required
股票代码,带市场前缀:sh600667(沪)/ sz000001(深)/ hk00700(港)/ usAAPL(美)。支持逗号批量(多标的),但匿名单次最多 5 只
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 2 revisions of this API.