A股事件驱动量化

SkillDev tools

A-share event-driven quantitative analysis / event study methodology. Triggered when the user says "事件研究", "event study", "事件驱动量化", "公告效应", "CAR", "异常收益", "XX公告后会怎样", or "事件窗口". Uses cn-stock-data to fetch candlestick data and applies the event study method to quantify the impact of specific events

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the A股事件驱动量化 skill

What this skill tells your AI

The instructions your AI receives, as published by aifinlab/finclaw in skills/a-share-event-quant/SKILL.md and read by ahel’s review.

数据源

SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"
python "$SCRIPTS/cn_stock_data.py" kline --code [CODE] --freq daily --start [日期]
python "$SCRIPTS/cn_stock_data.py" kline --code SH000300 --freq daily --start [日期]
python "$SCRIPTS/cn_stock_data.py" quote --code [CODE]

补充:通过 web 搜索获取事件日期、公告内容。

Workflow

Step 1: 定义事件与事件日

  • 明确事件类型(业绩预告/定增/回购/高管增持等)
  • 确定精确的事件日(公告日 T=0)

Step 2: 设定窗口

  • 估计窗口:[-250, -11](用于估计正常收益模型)
  • 事件窗口:[-10, +10] 或 [-5, +20](观察异常收益)

Step 3: 计算正常收益(市场模型)

  • R_normal = α + β × R_market
  • α, β 在估计窗口内通过 OLS 回归得到

Step 4: 计算异常收益

  • AR_t = R_actual - R_normal(每日异常收益)
  • CAR = Σ AR_t(累计异常收益)
  • CAAR = mean(CAR) across events(平均累计异常收益)

Step 5: 统计检验 + 输出

  • t 检验:CAR / (σ_AR × √T)
  • |t| > 1.96 → 5% 水平显著
维度formalbrief
模型市场模型+Fama-French市场模型
检验多种统计量仅 t 统计量
图表CAR 时序图+置信区间CAR 数值

默认风格:brief。

关键规则

  1. 事件日必须精确——公告日 vs 实施日区别很大
  2. A 股盘后公告次日生效,需注意 T+1 定义
  3. 避免事件窗口重叠(同一股票短期内多个事件)
  4. 样本量 > 30 才有统计意义

使用示例

示例 1: 基本使用

# 调用 skill
result = run_skill({
    "param1": "value1",
    "param2": "value2"
})

示例 2: 命令行使用

python scripts/run_skill.py --input data.json

Signals

GitHub stars
241
Forks
38
Last commit
May 2026
Advanced
Catalog kind
skill
Gateway key
a-share-event-quant
Source
github.com/aifinlab/finclaw