REST API
简单的HTTP请求,按需获取新闻数据。适合Web应用和批量处理。
// POST requestPOST https://api.finlight.me/v2/articles为您的应用赋能实时金融新闻、AI驱动的情绪分析和企业级可靠性。
通过您偏好的集成方式访问同样丰富的金融数据
通过真实场景体验我们的金融新闻API。点击不同的用例,探索丰富的数据结构、情感分析和公司提取功能。
{
"status": "ok",
"page": 1,
"pageSize": 3,
"articles": [
{
"link": "https://www.example-financial-news.com/technology/nvidia-q3-2024",
"source": "www.example-financial-news.com",
"title": "Nvidia Reports Record Q3 Revenue of $60.9B, Beats Estimates",
"summary": "Nvidia's data center revenue surged 112% year-over-year to $30.8 billion, driven by strong demand for AI chips from cloud providers and enterprises.",
"publishDate": "2024-11-20T16:30:00Z",
"language": "en",
"categories": [
"technology",
"business"
],
"countries": [
"US"
],
"sentiment": "positive",
"confidence": 0.92,
"images": [
"https://www.example-financial-news.com/images/nvidia-earnings-chart.jpg",
"https://www.example-financial-news.com/images/datacenter-revenue.jpg"
],
"companies": [
{
"companyId": 12345,
"confidence": "0.9500000000000000",
"country": "United States",
"exchange": "XNAS",
"industry": "Semiconductors",
"name": "NVIDIA Corporation",
"sector": "Technology",
"ticker": "NVDA",
"primaryListing": {
"ticker": "NVDA",
"exchangeCode": "XNAS",
"exchangeCountry": "United States"
},
"isins": [
"US67066G1040"
],
"otherListings": [
{
"ticker": "NVD.DE",
"exchangeCode": "XETRA",
"exchangeCountry": "Germany"
}
]
}
]
},
{
"link": "https://www.example-business-daily.com/nvidia-guidance",
"source": "www.example-business-daily.com",
"title": "Nvidia Provides Strong Q4 Guidance Despite China Restrictions",
"summary": "Company forecasts Q4 revenue of $37.5 billion, above analyst expectations of $37.1 billion, despite ongoing export restrictions to China.",
"publishDate": "2024-11-20T17:15:00Z",
"language": "en",
"categories": [
"technology",
"business"
],
"countries": [
"US",
"CN"
],
"sentiment": "positive",
"confidence": 0.88,
"images": [
"https://www.example-business-daily.com/images/nvidia-guidance.jpg"
],
"companies": [
{
"companyId": 12345,
"confidence": "0.9200000000000000",
"country": "United States",
"exchange": "XNAS",
"industry": "Semiconductors",
"name": "NVIDIA Corporation",
"sector": "Technology",
"ticker": "NVDA",
"primaryListing": {
"ticker": "NVDA",
"exchangeCode": "XNAS",
"exchangeCountry": "United States"
},
"isins": [
"US67066G1040"
],
"otherListings": [
{
"ticker": "NVD.DE",
"exchangeCode": "XETRA",
"exchangeCountry": "Germany"
}
]
}
]
}
]
}我们的查询引擎支持布尔逻辑、字段级过滤和复杂表达式。精准定位您需要的新闻。
使用引号查找包含特定词语或精确短语的文章
regulation OR "artificial intelligence"使用+要求包含术语,使用-从结果中排除
"stock market" -crypto针对特定字段如ticker:、exchange:、source:、content:
ticker:AAPL exchange:XNAS使用AND、OR、NOT组合条件进行精确控制
("Tesla" OR ticker:TSLA) AND NOT bitcoin使用括号控制复杂查询的计算顺序
("Elon Musk") AND (twitter OR tesla)组合所有运算符进行复杂过滤
ticker:TSLA -crypto AND (source:www.bloomberg.com OR source:www.reuters.com)使用我们的TypeScript和Python SDK在几分钟内开始,或直接使用cURL调用REST API。
import { FinlightApi } from "finlight-client";
const api = new FinlightApi({
apiKey: 'YOUR_API_KEY'
});
api.articles
.fetchArticles({
query: 'ticker:NVDA earnings -crypto',
from: '2024-01-01',
includeEntities: true,
pageSize: 20
})
.then((response) => {
console.log(`Found ${response.articles.length} articles`);
response.articles.forEach(article => {
console.log(article.title);
console.log(`Sentiment: ${article.sentiment}`);
console.log(`Companies: ${article.companies.map(c => c.ticker).join(', ')}`);
});
})
.catch((error) => console.error(error));npm install finlight-client,几分钟内开始构建复杂查询。
完整的查询语法指南、字段参考和用于高级过滤的交互式示例。
官方SDK,完全支持JavaScript、Python和REST API的查询构建器。
使用流行的自动化平台将finlight集成到您现有的工作流程中。
通过MCP让Claude和ChatGPT等AI助手直接访问金融新闻
使用模型上下文协议将Claude、ChatGPT和其他AI助手连接到finlight的实时金融新闻
无需编写任何代码即可构建复杂的自动化工作流
设置webhook驱动的触发器,即时响应市场事件
从现成的模板开始,用于常见的金融新闻工作流
将finlight连接到Slack、Discord、邮件、数据库等
发布关于AAPL的正面情感文章
当满足指定的过滤条件时触发
处理webhook并格式化警报消息
向Slack、Discord或短信发送警报
从高频交易到合规监控,finlight为各种金融应用提供可靠的实时数据。
通过实时新闻信号和情绪数据在毫秒内执行交易。
// HFT with advanced filtering
const client = new FinlightApi({
apiKey: 'your-api-key'
});
client.websocket.connect(
{
query: 'ticker:SPY AND "breaking" -rumor',
language: 'en',
includeEntities: true
},
(article) => {
if (article.sentiment === 'positive') {
tradingBot.executeOrder({
symbol: 'SPY',
action: 'BUY'
});
}
}
);监控投资组合风险敞口,在风险发生前识别风险。
// Risk monitoring setup
// Webhooks configured via Dashboard Wizard
// Visit: https://docs.finlight.me/v2/webhooks/
const articles = await api.articles.fetchArticles({
query: '("SEC" OR "regulatory") AND exchange:XNAS',
language: 'en',
pageSize: 20,
includeEntities: true
});
// Process regulatory alerts
articles.forEach(article => {
riskAnalyzer.evaluateRisk(article);
});跟踪影响您投资的国际市场和地缘政治事件。
// Global market surveillance
(async () => {
const articles = await api.articles.fetchArticles({
query:
'"market volatility" AND ' +
'(exchange:XJPX OR ' +
' exchange:XLON)',
language: 'en',
pageSize: 50,
includeEntities: true
});
console.log(`Found ${articles.length} global articles`);
})();使用历史和实时数据构建综合研究平台。
// Research with source control
(async () => {
const research = await api.articles.fetchArticles({
query: '(ticker:AAPL OR ticker:MSFT) AND "earnings"',
language: 'en',
pageSize: 25,
includeCompanies: true
});
research.forEach(article => {
console.log(`${article.publishDate}: ${article.title}`);
});
})();获取关于我们高级金融新闻API、查询功能、集成方法等的答案。
finlight提供复杂的字段级过滤,支持ticker:、exchange:、source:和content:等操作符。您可以使用布尔逻辑(AND、OR、NOT)、包含/排除操作符(+、-)、引号精确短语匹配以及复杂的括号分组。这使得金融新闻检索能够达到外科手术般的精准度。