QVeris
运行任务
MARKET DATA LATENCY MAP市场数据延迟地图

Free Market Data API: Real-Time Options免费市场数据 API:实时方案

Separate reference, delayed, snapshot, streaming, and direct-feed data before choosing a provider.

先区分参考、延迟、快照、流式和直连数据,再选择供应商。

Free Market Data API: Real-Time Options免费市场数据 API:实时方案

Map the latency promise先画清延迟范围

  1. Reference

    End-of-day or periodic values for valuation and reporting.

  2. Delayed

    Exchange-controlled delay, often suitable for display and research.

  3. Snapshot

    Current-looking response at request time, not necessarily event-by-event.

  4. Streaming

    Incremental events with ordering, reconnect, and gap handling.

  5. Direct feed

    Venue-native data with explicit entitlement and infrastructure requirements.

  1. 参考数据

    日终或定期数值,适合估值和报告。

  2. 延迟行情

    按交易所规则延迟,常用于展示和研究。

  3. 快照

    请求时返回当前状态,但不代表逐事件传输。

  4. 流式数据

    增量事件,需要排序、重连和缺口处理。

  5. 直连行情

    交易所原生数据,需要明确授权和基础设施。

Market data is a family of datasets市场数据是一组不同的数据集

Trades and quotes

Event prices, sizes, conditions, venues, and sequence.

Bars

Windowed OHLCV with timezone and session rules.

Reference

Symbols, listings, corporate actions, and calendars.

Derivatives

Contracts, expiries, strikes, curves, and settlement.

News and events

Timestamped context with source and entity mapping.

Derived analytics

Indicators and signals whose formulas must be disclosed.

成交与报价

事件价格、数量、条件、场所和序列。

K 线

带时区和交易时段规则的窗口化 OHLCV。

参考数据

代码、上市信息、公司行动和交易日历。

衍生品

合约、到期、执行价、曲线和结算。

新闻与事件

带来源、时间和实体映射的背景信息。

派生分析

必须公开公式的指标和信号。

TL;DR

Best free starting point

Alpaca is practical for US stock prototypes, but its free live feed is IEX rather than the consolidated SIP.

Best multi-asset trial

Twelve Data exposes stocks, forex, crypto, ETFs, and more, while free credits and market entitlements still define usable coverage.

Best for direct-market research

Databento offers credits and direct-feed depth, but free credit is not the same as a permanent free live plan.

Core decision

Choose by venue coverage, timestamp quality, streaming limits, and legal use—not by the word free alone.

适合股票原型

Alpaca 适合美国股票原型,但免费实时源是 IEX,并非覆盖全市场的 SIP。

适合多资产试用

Twelve Data 覆盖股票、外汇、加密资产和 ETF,但可用范围仍受免费积分与市场权限限制。

适合直接行情研究

Databento 提供试用额度和直接行情深度,但免费额度不等于永久免费实时套餐。

核心判断

应按交易场所覆盖、时间戳、流式限制和使用授权选择,而不是只看“免费”。

What “free” and “real-time” mean for this API这个 API 中“免费”与“实时”分别意味着什么

Searches for a free real-time market data API usually hide several different jobs: a watchlist that refreshes every minute, a streaming trading dashboard, a backtest downloader, or an AI agent that must cite fresh prices. One provider rarely wins all four.

The first filter is the feed, not the SDK. US equities may come from one venue such as IEX, a consolidated SIP, or a delayed feed. Options can require OPRA rights. Forex may be an indicative broker stream or a daily central-bank reference rate. Crypto is often easier to stream, but exchange fragmentation creates a different coverage problem.

For that reason, this comparison treats free as a testable commercial boundary: what is available at zero monthly cost, which fields and symbols are included, how fresh the timestamps are, and what happens when the prototype becomes a public product.

搜索“免费实时市场数据 API”的人,实际可能要做分钟级自选股、流式交易看板、回测下载器,或需要引用最新价格的 AI Agent。这四种工作负载通常不会由同一个供应商完美解决。

第一道筛选条件应是数据源,而不是 SDK。美国股票可能来自 IEX 单一交易所、全市场 SIP 或延迟源;期权可能涉及 OPRA;外汇既可能是经纪商指示性报价,也可能只是央行每日参考汇率;加密资产容易流式获取,但交易所碎片化又会造成新的覆盖问题。

因此本文把 free 当成可验证的商业边界:零月费到底提供哪些字段和代码、时间戳有多新、可否公开展示,以及原型转成产品后需要怎样升级。

Provider access matrix供应商访问矩阵

ProviderTypical strengthDeliveryVerify
AlpacaUS equities and brokerage contextREST and streamingFeed tier and exchange coverage
FinnhubMulti-asset application dataREST and WebSocketPlan, symbol mapping, delay
Twelve DataMulti-asset bars and indicatorsREST and WebSocketCredits and streaming limits
DatabentoNormalized institutional datasetsHistorical and liveDataset license, schema, venue
FMP in QVerisApplication-oriented financial dataInspectable capabilityProvider contract and timestamps
供应商常见优势传输方式需要核对
Alpaca美股与券商场景REST 和流式数据源套餐与交易所覆盖
Finnhub多资产应用数据REST 和 WebSocket套餐、代码映射和延迟
Twelve Data多资产 K 线与指标REST 和 WebSocket积分和流式限制
Databento标准化机构级数据集历史与实时数据集授权、Schema 和场所
QVeris 中的 FMP面向应用的金融数据可检查能力供应商契约和时间戳

Provider comparison: access, fields, and limits供应商对比:入口、字段与限制

Provider供应商Zero-cost access零成本入口Real-time scope实时范围Best use适合场景
AlpacaAlpacaPermanent free market-data plan长期免费行情套餐Live IEX stocks; limited symbols over WebSocket; indicative optionsIEX 股票实时;WebSocket 代码受限;期权为指示性US equity prototypes and paper trading美国股票原型与模拟交易
FinnhubFinnhubFree personal-use plan个人用途免费套餐Stocks, forex, crypto; plan and exchange details vary股票、外汇、加密资产;具体交易所与套餐不同Multi-asset prototypes多资产原型
Twelve DataTwelve DataBasic free plan with creditsBasic 免费积分套餐Broad assets; full WebSocket and international access depend on plan资产广泛;完整 WebSocket 与国际市场取决于套餐Broad symbol discovery and REST testing广泛代码发现与 REST 测试
DatabentoDatabentoSignup credits注册试用额度Direct feeds and granular schemas; live use is subscription/licensing sensitive直接行情与细粒度结构;实时使用涉及订阅和授权Market microstructure evaluation市场微观结构评估
Free tiers, prices, limits, and licenses change. Treat this as a decision framework and verify current official terms before production use.免费套餐、价格、限制和授权会变化。请把本文作为决策框架,并在生产使用前核验最新官方条款。

The fields that decide whether the data is usable决定数据是否可用的关键字段

Freshness

Measure source timestamp, provider receive time, and application receive time separately. A fast API can still return delayed market events.

Venue completeness

A live single-venue feed is real-time but not a consolidated view. That distinction affects quotes, volume, highs, lows, and alerts.

Streaming capacity

Check concurrent connections, subscribed symbols, reconnect rules, heartbeats, and whether snapshots must be loaded before deltas.

Usage rights

Personal research, internal non-display use, public display, redistribution, and derived analytics can require different terms.

新鲜度

分别记录源时间、供应商接收时间和应用接收时间。接口响应很快,也可能返回延迟行情。

交易场所完整度

单一交易所实时源确实“实时”,但不是全市场汇总,会影响报价、成交量、高低点和预警。

流式容量

核验并发连接、订阅代码数、重连规则、心跳,以及增量流之前是否必须加载快照。

使用权利

个人研究、内部非展示、公开展示、再分发和衍生分析可能对应完全不同的许可。

Which option fits your workload?哪一种选择适合你的工作负载?

Learning and paper trading

Start with Alpaca or another clearly documented limited live feed. Prioritize simple authentication, snapshots plus WebSocket updates, and reproducible reconnect behavior.

Multi-asset dashboard

Favor a unified provider such as Finnhub or Twelve Data, then verify every exchange and asset class separately. A single API surface does not guarantee equal freshness everywhere.

Public customer product

Begin with licensing and display rights before latency. Estimate users, symbol fan-out, derived-data rules, attribution, exchange fees, and redistribution terms.

Research agent

Use timestamped snapshots unless the task truly needs streaming. Require the agent to return provider, feed, event time, retrieval time, market session, and units with every answer.

学习与模拟交易

可从 Alpaca 等边界清晰的有限实时源开始,优先验证鉴权、快照加 WebSocket 更新以及可复现的断线重连。

多资产看板

优先考虑 Finnhub 或 Twelve Data 这类统一入口,但要逐市场、逐资产核验;统一 API 不代表所有数据同样新鲜。

面向客户的公开产品

先确认授权和展示权,再谈延迟;估算用户、代码扇出、衍生数据规则、署名、交易所费用和再分发条款。

金融研究 Agent

除非任务确实需要流式,否则使用带时间戳快照,并要求 Agent 每次返回供应商、数据源、事件时间、获取时间、交易时段和单位。

Normalize without erasing evidence标准化,但不要抹掉证据

  1. 01

    Ingest raw

    Keep the provider payload and request identifiers.

  2. 02

    Attach clocks

    Store event, provider, receipt, and normalization times.

  3. 03

    Map identity

    Resolve venue, symbol, asset class, currency, and corporate actions.

  4. 04

    Normalize

    Create a stable internal record without discarding source fields.

  5. 05

    Monitor

    Measure freshness, gaps, duplicates, corrections, and entitlement errors.

  1. 01

    保存原始数据

    保留供应商响应和请求标识符。

  2. 02

    附加时间

    保存事件、供应商、接收和标准化时间。

  3. 03

    解析身份

    明确场所、代码、资产类别、币种和公司行动。

  4. 04

    标准化

    建立稳定内部记录,但不删除来源字段。

  5. 05

    持续监控

    衡量新鲜度、缺口、重复、修订和授权错误。

A practical evaluation and implementation playbook可执行的评估与落地方法

Build a ten-symbol truth set

Mix liquid and illiquid securities across open, pre-market, after-hours, and halted conditions. Compare source timestamps against an independent reference.

Test REST and stream together

Use REST for the initial snapshot and WebSocket for updates. Confirm sequence handling, duplicates, late messages, and reconnect recovery.

Price the first production month

Model symbol count, users, calls, egress, exchange fees, display rights, and historical downloads. Free-plan limits often fail on a different dimension than request count.

Keep a provider adapter

Normalize timestamps, symbols, corporate actions, conditions, and error states behind your own interface so changing feeds does not rewrite the product.

建立十个代码的真值集

混合高流动性与低流动性标的,覆盖盘前、盘中、盘后和停牌,并用独立来源核对时间戳。

同时测试 REST 与流

用 REST 初始化快照、WebSocket 接收更新,检查序列、重复消息、迟到消息和断线恢复。

估算首个生产月成本

计算代码数、用户数、请求、流量、交易所费用、展示权和历史下载。免费套餐往往不是先卡在请求数。

保留供应商适配层

在自有接口后统一时间戳、代码、公司行动、成交条件和错误状态,避免换源时重写产品。

Provider-by-provider notes: where the free tier stops逐供应商深挖:免费层在哪里结束

Alpaca: live does not mean consolidated

Alpaca is one of the clearest free starting points for US equities because its documentation states the feed boundary: the free plan streams live IEX data, while consolidated SIP coverage belongs to the paid tier. That makes it useful for paper trading, alert prototypes, and learning event-driven architecture, but a poor benchmark for total-market volume or best quotes across every venue.

Finnhub: broad coverage with plan-sensitive detail

Finnhub combines stocks, forex, crypto, company news, and fundamentals behind one key. The convenience is valuable for a multi-asset proof of concept, but teams should test the exact exchanges, symbols, history, and personal-use terms they need. A provider can advertise real-time access while individual venues or redistribution scenarios remain restricted.

Twelve Data: useful unified schema

Twelve Data is attractive when developers want a common REST schema across global symbols and asset classes. Its credit model makes endpoint experimentation easy, but production capacity depends on how one request consumes credits, which markets are included, and whether the workload needs full WebSocket access. Price a representative watchlist rather than extrapolating from a one-symbol demo.

Databento: evaluation credit, not a forever-free feed

Databento is strongest when the question is data fidelity: direct feeds, granular schemas, market-by-order depth, precise timestamps, and licensing visibility. Signup credit helps evaluate historical data and offset a subscription, but it should be modeled as an evaluation budget rather than a permanent zero-cost production feed.

Alpaca:实时不等于全市场汇总

Alpaca 很适合美国股票免费起步,因为官方明确说明了数据边界:免费层提供 IEX 实时流,覆盖全市场的 SIP 属于付费层。它适合模拟交易、预警原型和学习事件驱动架构,却不适合作为全市场成交量或跨交易所最优报价的唯一基准。

Finnhub:覆盖广,但细节取决于套餐

Finnhub 用一个 Key 覆盖股票、外汇、加密资产、公司新闻和基本面,适合多资产概念验证。但团队仍要实测目标交易所、代码、历史深度和个人用途条款。供应商可以宣传实时访问,而具体市场或再分发场景仍可能受限。

Twelve Data:统一结构更方便

当开发者希望用统一 REST 结构访问全球代码和多种资产时,Twelve Data 很有吸引力。积分模式便于试接口,但生产容量取决于每次请求消耗、市场权限以及是否需要完整 WebSocket。应按真实自选股组合估算,而不是从单代码演示外推。

Databento:试用额度不是永久免费源

Databento 的优势是数据保真度,包括直接行情、细粒度结构、订单级深度、精确时间戳和清晰授权。注册额度可用于评估历史数据或抵扣订阅,但应把它视为评估预算,而不是永久零成本生产行情。

Common mistakes that make a free API expensive让免费 API 变昂贵的常见错误

Treating API latency as data latency

A 50 ms response does not prove the quote itself is current.

Ignoring market sessions

Pre-market, after-hours, holidays, halts, and half days must be represented explicitly.

Shipping with prototype rights

A plan permitted for personal testing may not allow customer-facing display or redistribution.

Using one last price everywhere

Quotes, trades, midpoints, indicative values, and official closes answer different questions.

把接口延迟当作数据延迟

50 毫秒响应并不能证明报价本身是最新的。

忽略交易时段

盘前盘后、假日、停牌和半日市都必须被明确表达。

拿原型授权直接上线

允许个人测试的套餐不一定允许面向客户展示或再分发。

所有场景都用最后价

买卖报价、成交价、中间价、指示价和官方收盘价回答的是不同问题。

Inspect market-data capabilities检查市场数据能力

Use QVeris to inspect candidate schemas and calling requirements while preserving the underlying provider's license and provenance. Continue with FMP market-data provider details, then confirm the calling contract in the QVeris REST API reference.

可通过 QVeris 检查候选 Schema 和调用要求,同时保留底层供应商的授权与来源信息。 可继续打开FMP 市场数据服务商详情,并通过QVeris REST API 参考核对调用契约。

FAQ

Is there a completely free real-time market data API?

Yes for limited scopes, such as a single venue, restricted symbols, personal use, or selected asset classes. Full consolidated and redistributable feeds usually introduce fees or agreements.

Is IEX data real-time?

Yes, it is live data from IEX. It is not the same as the consolidated US equity SIP covering all exchanges.

Should an AI agent use WebSocket data?

Only when the task needs event-driven freshness. Many research questions are better served by a timestamped snapshot with provenance.

How do I compare free tiers fairly?

Use the same symbols, sessions, request pattern, and output checks, then compare legal use and upgrade cost separately from technical performance.

有没有完全免费的实时市场数据 API?

有限范围内有,例如单一交易所、有限代码、个人用途或部分资产。覆盖完整市场并可再分发的实时源通常需要费用或协议。

IEX 数据算实时吗?

算,它是 IEX 交易所的实时数据,但不等于覆盖所有美国交易所的 SIP 汇总行情。

AI Agent 应该直接使用 WebSocket 吗?

只有任务需要事件驱动新鲜度时才有必要。许多研究问题更适合带时间戳和来源的快照。

如何公平比较免费套餐?

用同一组代码、时段、请求模式和输出检查测试,再把授权和升级成本与技术性能分开比较。

Provider documentation供应商文档