跳到主要内容

新闻聚合器 API 参考

新闻聚合器 API 通过 7 个抓取器收集、去重和分类金融新闻文章:Yahoo Finance、Google Finance、ZoneBourse、Boursorama、Investing.com、MarketWatch 和 MSN Finance。


GET /news/{ticker}

获取提及特定股票代码的金融新闻文章。结果在 Redis 中缓存 30 分钟。

请求参数

参数名类型是否必需默认值说明描述
tickerstringFinancial ticker (e.g. AIR.PA, AAPL)
limitinteger20Number of articles
langstringLanguage filter (en, fr)

响应示例

{
"ticker": "AIR.PA",
"count": 2,
"articles": [
{
"id": 842,
"title": "Airbus Delivers 65 Aircraft in July, Reaffirms Full-Year Target",
"summary": "Airbus reported strong commercial airplane deliveries for July...",
"url": "https://www.marketwatch.com/story/airbus-delivers-65-aircraft-2026",
"source": "MarketWatch",
"provider": "marketwatch_news",
"author": "Financial Desk",
"published_at": "2026-08-10T14:30:00Z",
"sentiment": "POSITIVE",
"sentiment_score": 0.78,
"language": "en"
}
]
}

GET /news/feed

获取覆盖所有资产的全局金融新闻订阅。

请求参数

参数名类型是否必需默认值说明描述
limitinteger20Maximum items to return
langstringFilter by language (en, fr)
providerstringFilter by provider (e.g. zonebourse_news)

POST /news/{ticker}/refresh

触发股票代码新闻抓取器的后台异步刷新,而不会阻塞请求。


GET /news/stats

获取全局新闻聚合器统计数据(索引的文章总数、提供商分布、语言计数)。