事件
finlight 会对每篇文章的关键事件进行分类:发生了什么(type),对主要公司是好是坏(direction),以及它有多重要(importance)。
只有当您用 include: ["events"] 请求且您的套餐有 eventAccess 时,才会出现 events 数据块。eventAccess 包含在 Pro Standard 及所有更高的套餐中。Launchpad(免费)和 Pro Light 不提供 events 数据块。按事件过滤在所有套餐上都可用。请参阅套餐与权益。
事件对象
- Name
type- Type
- string
- Description
发生了什么。是 16 种事件类型之一。开放列表。
- Name
direction- Type
- string | null
- Description
对文章主要公司的预期方向:
positive、negative、neutral或unclear。开放列表。
- Name
importance- Type
- string | null
- Description
事件对市场的重要程度:
low、medium、high或critical。这些取值是有序的。开放列表。
- Name
confidence- Type
- number | null
- Description
finlight 对该分类的把握程度,范围为 0 到 1。
- Name
companyIds- Type
- integer[]
- Description
事件所涉及公司的
companyId值,与companies[].companyId对应。只有当companies数据块在同一负载中时才会出现。可以是[]。
Events with companies
{
"companies": [
{
"companyId": 13,
"name": "Advanced Micro Devices, Inc.",
"isin": "US0079031078",
"primaryListing": { "ticker": "AMD", "mic": "XNAS", "country": "US" },
"confidence": 0.97,
"role": "acquirer",
"relevance": 0.95
}
],
"events": [
{ "type": "mna", "direction": "positive", "importance": "high", "confidence": 0.9, "companyIds": [13] }
]
}
目前一篇文章最多有 2 个事件,主要事件在前。这不是固定的上限,因此请读取整个列表。
events: [] 表示文章已经过分类,但没有事件,例如专题文章、访谈或评论文章。在引入事件之前分类的文章也为 []。
事件类型
| 类型 | 涵盖内容 |
|---|---|
earnings | 业绩、初步业绩、营收和每股收益报告 |
guidance | 公司上调、下调或撤回展望,以及预测 |
mna | 合并、收购、资产剥离、竞购、被阻止的交易 |
ipo_listing | IPO、直接上市、退市、SPAC |
capital_action | 股息、回购、拆股、股票或债券发行、融资 |
rating_action | 分析师上调和下调评级、目标价、针对公司的信用评级 |
management_change | 高管和董事会成员的任命与离任 |
legal | 诉讼、和解、罚款 |
regulatory | 政府机构或监管机构进行的调查、批准与否决、反垄断、公司层面的制裁 |
bankruptcy_distress | 破产、Chapter 11、付款违约、持续经营警告 |
product_partnership | 产品发布、重大合同和订单、合作、试验结果 |
investment_expansion | 新工厂、产能扩张、大型资本支出计划、进入新市场的投资 |
operational_incident | 召回、服务中断、事故、网络攻击 |
labor_restructuring | 裁员、工厂关闭、重组、罢工 |
macro | 宏观数据、央行决策、利率变动、有明确驱动因素的市场变动(不针对单个公司) |
geopolitics | 战争、国家层面的制裁、选举、关税和贸易政策 |
legal、regulatory 和 operational_incident 总是涉及某家公司。关税和贸易政策属于 geopolitics,而不是 regulatory。券商给出的指数层面目标属于 macro,而不是 rating_action。
方向与重要性
方向是对文章主要公司的预期影响。它是一种编辑判断,而不是价格预测。
| 方向 | 含义 |
|---|---|
positive | 对主要公司是好消息 |
negative | 对主要公司是坏消息 |
neutral | 预计没有实际影响 |
unclear | 无法判断影响,或文章没有主要公司 |
macro 和 geopolitics 事件通常没有主要公司,所以一般为 direction: unclear。
重要性按市场相关性判断。取值从低到高排列。
| 重要性 | 含义 |
|---|---|
low | 常规报道 |
medium | 与上市公司的股东或某个细分市场相关 |
high | 可能影响该公司股价,或广泛影响市场 |
critical | 关乎存亡或影响整个行业,例如破产 |
如果涉及的公司都没有上市,那么公司事件最多为 low。
将事件与公司关联
companyIds 把事件与被标记的公司关联起来。它跟随 companies 数据块:
| 请求与套餐 | events[].companyIds |
|---|---|
include 包含 companies 和 events,套餐有 entityAccess 和 eventAccess | 存在 |
include 只包含 events | 缺失 |
套餐没有 entityAccess | 缺失 |
因此,事件没有 companyIds 是正常的。它仍然会告诉您类型、方向和重要性。companyIds: [] 表示该事件不涉及任何被标记的公司,这在 macro 和 geopolitics 中很常见。
include: ["events"] only
{
"events": [
{ "type": "mna", "direction": "positive", "importance": "high", "confidence": 0.9 }
]
}
按事件过滤
过滤从不需要权益。没有 eventAccess 的套餐仍然可以搜索并购新闻;只是不会收到 events 数据块。
- REST 搜索:
eventTypes、eventDirections和minImportance作用于同一个事件。{"eventTypes": ["earnings"], "eventDirections": ["negative"], "minImportance": "high"}会找到带有重要性为 high 或 critical 的负面财报事件的文章。 - 查询语言:
eventType:、eventDirection:、eventImportance:(例如eventImportance:>=high)和eventConfidence:,以及用于同一事件条件的花括号组。请参阅公司与事件。
Request
curl -X POST 'https://api.finlight.me/v3/articles/search' \
-H 'X-API-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"eventTypes":["earnings"],"eventDirections":["negative"],"minImportance":"high","include":["events"]}'
Response (shortened)
{
"articles": [
{
"id": "...",
"title": "Burlington Stores Cuts Outlook as Quarterly Sales Underwhelm",
"events": [
{ "type": "earnings", "direction": "negative", "importance": "high", "confidence": 0.95 },
{ "type": "guidance", "direction": "negative", "importance": "high", "confidence": 0.95 }
]
}
],
"pagination": { "limit": 20, "returned": 20, "hasMore": true, "nextCursor": "eyJ2Ijox..." }
}
相关内容:公司与角色 · 查询语言:公司与事件 · 文章对象