Historical Dow Jones道琼斯指数历史
该接口记录道琼斯工业平均指数的成分股变动,包括哪些公司被纳入或剔除、变动原因和相关日期,用于研究指数的历史演变。
https://quote-fmp.com/stable/historical-dowjones-constituent数据更新周期
1-3 Days
接口说明
- 公司纳入与剔除:获取被纳入或剔除出道琼斯指数的公司明细及相关日期,调用后可覆盖
dateAdded(加入日期)、addedSecurity(新增证券)与removedTicker(移除的标的代码) 等高频字段,适合定时批量归档至本地数据库。 - 变动原因:了解公司被纳入或剔除的原因,例如市值变化或行业重新分类,通过提取
addedSecurity(新增证券)与removedTicker(移除的标的代码) 等字段,可在 Pandas 中快速构建多因子暴露矩阵。 - 历史成分:分析道琼斯指数成分随时间的演变,以及这些变化对指数整体的影响,日常复盘时可联动同模块的「标普500成分变动」,互相印证关键数据的边际变化。
- 跨模块关联接口:All Index Quotes(全指数报价) · Historical Index Light Chart(指数日线行情) · Stock Screener(条件选股) · Exchange Stock Quotes(交易所全量报价)
调用代码示例
Python 关键代码采集 道琼斯指数历史(/stable/historical-dowjones-constituent)需传仅 apikey,重点读取 dateAdded(加入日期)、addedSecurity(新增证券)、removedTicker(移除的标的代码)(样本 dateAdded=June 29, 2026)。
resp = requests.get(
"https://quote-fmp.com/stable/historical-dowjones-constituent",
params={"apikey": FMP_KEY},
timeout=15,
)
resp.raise_for_status()
df = pd.DataFrame(resp.json())
# 提取 道琼斯指数历史 核心列:dateAdded, addedSecurity, removedTicker, removedSecurity
df = df[["dateAdded", "addedSecurity", "removedTicker", "removedSecurity"]].dropna(how="all")参数使用和避坑
3 组参数组合 · 2 条避坑以下列出本接口在高频投研与回测场景下的常用 Query 参数组合写法:
| 投研场景 | Query 参数组合示例 | 返回数据特征与用途 |
|---|---|---|
| 一次性拉取全量道琼斯指数历史初始化本地主表 | GET /stable/historical-dowjones-constituent(免参数) | /stable/historical-dowjones-constituent 不收业务参数,一次调用拿回全部 7 列(dateAdded、addedSecurity、removedTicker);初始化主表与全量对账都靠这一跳。 |
| 以 symbol 为唯一键覆盖写入,避免全表重复 | GET /stable/historical-dowjones-constituent → upsert on symbol | 该表以 symbol 唯一(样本 GOOGL),共 7 列;upsert 到本地表时按 symbol 覆盖写,重复拉取不会产生脏行。 |
| 落库后自检:symbol 唯一性与 dateAdded 空值率 | GET /stable/historical-dowjones-constituent → count(distinct symbol) / null_ratio(dateAdded) | 本表共 7 列。落库后先比对 count(distinct symbol) 与总行数确认无重复;再统计 dateAdded(样本 June 29, 2026)的空值比例,判断该批次是否拉到完整截面。 |
对接 /stable/historical-dowjones-constituent(道琼斯指数历史,免业务参数)时,重点字段 dateAdded(June 29, 2026)与 addedSecurity(Alphabet Inc.)反映当期截面状态,跨期比较前须对齐时间粒度。
清洗道琼斯指数历史响应时,先按 (symbol, date) 剔除重复行,再提取 dateAdded(加入日期,样本 June 29, 2026)构建本地证券或实体映射字典。
返回数据
7 个字段本接口示例响应共包含 7 个字段(数值型 0 个,文本/日期/布尔型 7 个)。下表列出全部字段名、类型、首条记录真实样本值与中文释义,实际返回会因接口与数据状态有所不同。
| 字段 | 类型 | 示例值 | 说明 |
|---|---|---|---|
dateAdded | string | "June 29, 2026" | 加入日期 |
addedSecurity | string | "Alphabet Inc." | 新增证券 |
removedTicker | string | "VZ" | 移除的标的代码 |
removedSecurity | string | "Verizon Communications Inc." | 移除证券 |
date | string | "2026-06-29" | 日期 |
symbol | string | "GOOGL" | 证券代码 |
reason | string | "To better reflect today's U.S.…" | 调整原因 |
查看响应数据示例(原始 JSON)
[
{
"dateAdded": "June 29, 2026",
"addedSecurity": "Alphabet Inc.",
"removedTicker": "VZ",
"removedSecurity": "Verizon Communications Inc.",
"date": "2026-06-29",
"symbol": "GOOGL",
"reason": "To better reflect today's U.S. economy, where AI, cloud computing, and digital services play a much larger role than traditional telecommunications."
}
]常见问题解答(FAQ)
2 个问题请求 /stable/historical-dowjones-constituent 获取道琼斯指数历史时有哪些必填项?它与 标普500成分变动 的边界在哪?
道琼斯指数历史(/stable/historical-dowjones-constituent)采用免业务参数查询,返回首条样本如 dateAdded=June 29, 2026(共 7 列);同模块相邻的 Historical S&P 500(标普500成分变动)则包含 7 列。
初次建库回填道琼斯指数历史与日常增量拉取 /stable/historical-dowjones-constituent,在传参方式上有何技巧?
在量化管道中,应直接请求无参端点 /stable/historical-dowjones-constituent 拉取全表快照并缓存;若并发拉取多组任务,请结合网关 RPM 配额控制并发协程数,稳健采集 dateAdded。
同模块相关接口对比
Historical Constituents本接口路径 /stable/historical-dowjones-constituent,无必填参数。 同一模块「Historical Constituents」下共 3 个接口,下表列出其余 2 个, 按粒度与查询维度对比,避免选错接口。
| 接口 | 路径 | 核心差异与适用场景 |
|---|---|---|
| 标普500成分变动Historical S&P 500 | /stable/historical-sp500-constituent | 记录标普 500 指数成分的历史变动,公司何时被纳入或移出、变动原因、市值变化对成分的影响 |
| 纳斯达克指数成分变动Historical Nasdaq | /stable/historical-nasdaq-constituent | 记录纳斯达克指数成分的历史变动,哪些公司在何时被纳入或移出、变动原因 |