Forex News外汇新闻
该接口汇总多来源的最新外汇新闻,返回标题、摘要与文章链接,覆盖汇率市场动态、货币对行情与市场情绪。
https://quote-fmp.com/stable/news/forex-latest?page=0&limit=20数据更新周期
5 Minutes
接口说明
- 汇率市场动态:实时获取外汇市场的最新消息,包括影响货币对的重大事件和宏观经济趋势,调用后可输出
publishedDate(发布日期)、publisher(发布方)与title(标题/职务) 等结构化字段,省去繁琐的网页抓取与文本清洗。 - 货币对行情分析:跟进 EUR/USD、GBP/USD、JPY/CHF 等具体货币对的走势,更好理解市场行情。
- 市场情绪更新:关注外汇相关新闻,把握外汇领域的投资者情绪和市场动态,在多因子回测管道里,常联合「个股新闻」一起采集以丰富特征维度。
- 跨模块关联接口:Search Forex News(外汇新闻检索) · Search Press Releases(新闻稿检索) · SEC Filings By Symbol(按代码查 SEC 申报) · Earnings Report(公司财报数据)
请求参数
4 个参数| 参数 | 类型 | 要求 | 示例 | 说明 |
|---|---|---|---|---|
from | date | 可选 | 2026-01-27 | 查询起始日期,格式 YYYY-MM-DD,包含当天。 |
to | date | 可选 | 2026-04-28 | 查询结束日期,格式 YYYY-MM-DD,包含当天。 |
page | number | 可选 | 0 | 分页页码,从 0 开始,配合每页条数翻页取更多数据(从 0 起算的分页游标;当响应返回空数组 [] 时代表已翻至历史末页) |
limit | number | 可选 | 20 | 返回结果条数上限,用于控制单次响应大小。 |
调用代码示例
Python 关键代码调用 外汇新闻 端点 /stable/news/forex-latest(可选 from, to),响应包含 publishedDate(发布日期)、publisher(发布方)、title(标题 / 职务) 等 8 个属性。
resp = requests.get(
"https://quote-fmp.com/stable/news/forex-latest",
params={"from": "2026-01-27", "to": "2026-04-28", "page": 0, "limit": 20, "apikey": FMP_KEY},
timeout=15,
)
resp.raise_for_status()
df = pd.DataFrame(resp.json())
# 提取 外汇新闻 核心列:symbol, publishedDate, publisher, title
df = df[["symbol", "publishedDate", "publisher", "title"]].dropna(how="all")参数使用和避坑
2 组参数组合 · 2 条避坑以下列出本接口在高频投研与回测场景下的常用 Query 参数组合写法:
| 投研场景 | Query 参数组合示例 | 返回数据特征与用途 |
|---|---|---|
| 按 2025 一季度区间(from/to)查询外汇新闻 | from=2025-01-01&to=2025-03-31 | 设定 2025Q1 起止日期调用 /stable/news/forex-latest,返回窗口内全部 publishedDate、publisher、title 共 8 列事件记录。 |
| 回溯 2024H2 日期区间(from/to)归档外汇新闻 | from=2024-07-01&to=2024-12-31 | 将日期窗口移至 2024 下半年调用 /stable/news/forex-latest,批量回填历史截面的 publishedDate、publisher、title(样本 2026-07-30 13:03:11)。 |
调用外汇新闻接口 /stable/news/forex-latest(可选 from, to),可取回 publishedDate、publisher、title 共 8 项指标;若用于历史回测,请核对每条记录的时间戳归属日。
归档外汇新闻(端点 /stable/news/forex-latest)推荐采用 (symbol, publishedDate, title) 作为主键;对 publishedDate(发布日期)等 8 个文本/日期列需防范 None 或空串。
返回数据
8 个字段本接口示例响应共包含 8 个字段(数值型 0 个,文本/日期/布尔型 8 个)。下表列出全部字段名、类型、首条记录真实样本值与中文释义,实际返回会因接口与数据状态有所不同。
| 字段 | 类型 | 示例值 | 说明 |
|---|---|---|---|
symbol | string | "USDJPY" | 证券代码 |
publishedDate | string | "2026-07-30 13:03:11" | 发布日期 |
publisher | string | "FXEmpire" | 发布方 |
title | string | "U.S. Dollar Retreats As GDP Gr…" | 标题 / 职务 |
image | string | "https://images.financialmodeli…" | 图片链接 |
site | string | "fxempire.com" | 来源站点 |
text | string | "BoJ intervened to support the …" | 正文内容 |
url | string | "https://www.fxempire.com/forec…" | 链接地址 |
查看响应数据示例(原始 JSON)
[
{
"symbol": "USDJPY",
"publishedDate": "2026-07-30 13:03:11",
"publisher": "FXEmpire",
"title": "U.S. Dollar Retreats As GDP Growth Rate Misses Estimates: Analysis For EUR/USD, GBP/USD, USD/CAD, USD/JPY",
"image": "https://images.financialmodelingprep.com/news/us-dollar-retreats-as-gdp-growth-rate-misses-estimates-20260730.jpg",
"site": "fxempire.com",
"text": "BoJ intervened to support the yen, putting additional pressure on the American currency.",
"url": "https://www.fxempire.com/forecasts/article/u-s-dollar-retreats-as-gdp-growth-rate-misses-estimates-analysis-for-eur-usd-gbp-usd-usd-cad-usd-jpy-3-1613891"
}
]常见问题解答(FAQ)
2 个问题调用外汇新闻与 FMP文章列表 有何差异?/stable/news/forex-latest 重点输出哪些指标?
访问 /stable/news/forex-latest 拉取外汇新闻(可选 from, to)可拿到 publishedDate(2026-07-30 13:03:11)与 publisher;若需 /stable/fmp-articles(无必填参数)的 8 项数据,可改调 FMP Articles(FMP文章列表)。
如何利用 /stable/news/forex-latest 的参数机制,高效完成外汇新闻的冷启动回填与盘后同步?
无论冷启动还是增量更新,都可指定起止日期 from/to 分段同步 /stable/news/forex-latest;读取 publishedDate(样本 2026-07-30 13:03:11)后建议先过滤无效记录再入库。
同模块相关接口对比
Articles本接口路径 /stable/news/forex-latest,无必填参数。 同一模块「Articles」下共 6 个接口,下表列出其余 5 个, 按粒度与查询维度对比,避免选错接口。
| 接口 | 路径 | 核心差异与适用场景 |
|---|---|---|
| FMP文章列表FMP Articles | /stable/fmp-articles | FMP 发布的最新文章列表,包括标题、摘要片段和文章链接,内容定期更新,覆盖各类金融话题 |
| 综合新闻General News | /stable/news/general-latest | 多来源的最新综合新闻文章,包括标题、摘要与文章链接,支持按日期范围检索指定时段发布的全部新闻 |
| 公司新闻稿Press Releases | /stable/news/press-releases-latest | 全市场上市公司通过商业通讯社最新发布的官方新闻稿流 |
| 个股新闻Stock News | /stable/news/stock-latest | 最新的股票市场新闻,标题、摘要、原文链接与相关股票代码,来源覆盖多家媒体 |
| 加密货币新闻Crypto News | /stable/news/crypto-latest | 汇集各大来源的加密货币最新报道,标题、摘要与原文链接一并返回 |