Stock Data Guide股票市场数据指南

Free Stock Data Download
Sources, CSV & APIs
免费股票数据下载
来源、CSV 与 API

Download free historical stock prices in CSV or JSON—then verify symbols, adjustments, timestamps, missing rows, and licensing before analysis.

免费下载 CSV 或 JSON 格式的历史股票价格,
并在分析前核对代码、复权、时间戳、缺失记录与授权条款。

Four-step whiteboard workflow for finding stock market data, checking its license, downloading CSV or JSON files, and validating the results before analysis

Quick Summary快速摘要

What you can get

Free sources may provide daily or intraday OHLCV bars, adjusted close prices, dividends, splits, and symbol metadata.

What to verify

Check exchange coverage, timestamps, adjustment rules, request limits, redistribution rights, and commercial-use terms.

Choose the delivery mode

Use a manual file for one-off work, a parameterized export for recurring research, and bulk archives for large historical universes.

Preserve provenance

Store the source, request, retrieval time, license note, schema version, and checksum next to every downloaded dataset.

可获取的数据

免费来源可能提供日线或分钟级 OHLCV、复权收盘价、分红、拆股和股票代码元数据。

必须核对

确认交易所覆盖、时间戳、复权规则、调用限额、再分发权限和商业使用条款。

选择交付方式

一次性分析可用手动文件,重复研究应使用可配置导出,大规模历史标的则更适合批量归档包。

保留数据来源记录

每份下载数据都应同时保存来源、请求参数、采集时间、许可说明、字段版本和校验值。

Which stock market data should you download for free?你应该下载哪类免费股票市场数据?

Start with the decision or product you are building. A watchlist may need recent quotes, a backtest needs long and survivorship-aware history, and a spreadsheet may only need daily OHLCV data. An agent or application also needs stable schemas and source metadata.

先明确你的决策或产品目标。自选列表可能需要近期行情,回测需要足够长且能控制幸存者偏差的历史数据,电子表格可能只需要每日 OHLCV。Agent 或应用还需要稳定字段与来源元数据。

Free downloadable stock data products differ in update frequency, historical depth, exchange coverage, and adjustment policy.

可免费下载的股票数据在更新频率、历史深度、交易所覆盖和复权规则上差异很大。

For research, price fields alone are rarely enough. You may also need trading calendars, symbol changes, delistings, currency, exchange identifiers, and corporate actions. These reference fields prevent survivorship bias and make it possible to join prices with fundamentals correctly.

对于研究任务,只有价格字段通常不够。你还可能需要交易日历、代码变更、退市记录、币种、交易所标识和公司行动。这些参考字段能减少幸存者偏差,也能让价格与基本面正确关联。

Quotes and snapshots

Last price, change, bid/ask, session status, and timestamp. Confirm whether values are real-time, delayed, indicative, or end-of-day.

Historical OHLCV

Open, high, low, close, adjusted close, and volume by day or minute. Check session boundaries, missing bars, and adjustment rules.

Corporate actions and reference data

Splits, dividends, symbol changes, exchange, currency, and delisting status explain discontinuities that price-only downloads cannot resolve.

Fundamentals and point-in-time dates

Financial statements need filing and availability dates, not only fiscal periods. Without them, a historical download can introduce look-ahead bias.

行情与快照

最新价、涨跌、买卖价、交易状态和时间戳。务必确认数据是实时、延迟、指示性还是收盘数据。

历史 OHLCV

按日或分钟提供开盘、最高、最低、收盘、复权收盘和成交量。注意交易时段边界、缺失 K 线和复权规则。

公司行动与参考数据

拆股、分红、代码变更、交易所、币种和退市状态,能够解释只有价格文件无法说明的跳变。

基本面与时点日期

财务报表除了报告期,还要保留申报日和实际可用日;否则历史下载很容易把当时尚未公开的信息带入回测。

How free stock market data sources compare如何比较免费股票市场数据来源

No single source is best for every workflow.

没有一种来源适合所有工作流。

Source来源What it offers提供内容Best for适合场景Watch for注意事项
Exchange or regulator交易所或监管机构Official listings, filings, notices, and selected market files.官方上市信息、申报、公告和部分市场文件。Verification and primary-source research.核验与一手资料研究。Mixed formats, limited bulk history, and usage terms.格式不一、批量历史有限及使用条款。
Free market-data API免费市场数据 APINormalized quotes, history, and fundamentals.标准化的行情、历史与基本面。Apps, agents, prototypes, and repeatable research.应用、Agent、原型与可重复研究。Rate limits, delays, and license restrictions.有调用限额、延迟和授权限制。
Community dataset社区数据集Prebuilt historical stock files shared for research.为研究用途整理并共享的股票历史文件。Learning, notebooks, and quick experiments.学习、Notebook 与快速实验。Unclear lineage, stale files, and licensing gaps.来源不清、文件过期及授权信息缺失。
CSV or bulk datasetCSV 或批量数据集Portable files for analysis and archival.便于分析与归档的可移植文件。Spreadsheets, notebooks, and backtests.表格、Notebook 与回测。Often less current than a live API.通常不如实时 API 更新及时。

Compare sources with the same small test set rather than relying on feature lists. Request a liquid stock, a thinly traded security, a symbol that changed, and a date containing a split or dividend. Compare timestamps, missing records, precision, adjustment behavior, and error messages.

不要只看功能清单,最好用同一组小样本横向测试:选择一只高流动性股票、一只成交稀疏的证券、一个曾更换代码的标的,以及包含拆股或分红的日期。对比时间戳、缺失记录、数值精度、复权方式和错误信息。

Download through a manifest

List every symbol, interval, date partition, expected file name, and source URL before starting. Mark each object pending, complete, or failed so interrupted jobs can resume safely.

Validate transport and content

Check status, content type, file size, checksum, header row, and minimum row count. A 200 response can still contain an HTML error page or a truncated archive.

Stage before publishing

Write downloads to a temporary version, validate cross-file uniqueness and date coverage, then publish the completed snapshot atomically.

Retain raw and normalized layers

Keep the original provider files immutable. Build cleaned CSV or Parquet outputs separately so parsing changes never destroy the evidence needed to reproduce them.

用清单驱动下载

开始前列出所有股票代码、周期、日期分区、预期文件名和来源 URL,并为每项记录待处理、完成或失败状态,任务中断后才能安全续传。

同时校验传输与内容

检查状态码、内容类型、文件大小、校验值、表头和最低行数。即使返回 200,也可能拿到 HTML 错误页或不完整的压缩包。

校验后再发布

先写入临时版本,检查跨文件唯一性与日期覆盖,全部通过后再以原子方式发布完整快照。

保留原始层与标准化层

供应商原始文件保持不可变,清洗后的 CSV 或 Parquet 单独生成,避免解析规则变化时丢失复现依据。

Use QVeris to find stock data capabilities使用 QVeris 查找股票数据接口

There is no one verified QVeris result for every stock-data download. Use the QVeris documentation to understand repeatable calls and the Playground to inspect candidate capabilities when manual downloads no longer scale.

目前没有一个经过核实的 QVeris 结果,可以覆盖所有股票数据下载需求。当手动下载已经无法扩展时,可先通过 QVeris 文档了解可重复调用方式,再到 Playground 检查候选能力。

FAQ常见问题

Where can I download stock market data for free?

Start with exchanges, regulators, and reputable market-data providers, then compare free APIs and bulk files for coverage, history, adjustments, and licensing.

Is free downloadable stock market data real-time?

It may be live, delayed, or end-of-day depending on the exchange and license. Always check timestamps, session coverage, and entitlements.

How can I resume a failed bulk download?

Use a manifest and write each file atomically. On restart, verify completed checksums and retry only missing or invalid partitions.

Can I redistribute downloaded stock data?

Only if the provider and applicable exchange terms allow it. Free access, personal analysis, derived display, and redistribution are separate rights.

哪里可以免费下载股票市场数据?

可先查看交易所、监管机构和可靠的市场数据供应商,再比较免费 API 与批量文件的覆盖范围、历史深度、复权方式和授权条款。

可免费下载的股票市场数据是实时的吗?

根据交易所和授权不同,数据可能是实时、延迟或日终数据。务必检查时间戳、交易时段覆盖与数据权限。

批量下载中断后如何续传?

用清单记录状态,并以原子方式写入每个文件。重启后先核对已完成文件的校验值,只重试缺失或无效分区。

下载的股票数据可以重新分发吗?

只有供应商及相关交易所条款明确允许时才可以。免费访问、个人分析、衍生展示和重新分发是彼此独立的权利。

References and next steps参考资料与下一步

Stooq data download
Alpha Vantage API documentation
Twelve Data API documentation
QVeris documentation
QVeris Playground

Stooq 数据下载
Alpha Vantage API 文档
Twelve Data API 文档
QVeris 文档
QVeris Playground