Skip to content
Back to skills

A Share Hft Microstructure

ASecurity

A股高频微观结构/盘口深度分析。当用户说"高频微观结构"、"盘口深度"、"Level2深度"、"逐笔委托"、"高频盘口"、"微结构分析"时触发。基于 cn-stock-data 获取数据,分析盘口深度、有效价差、知情交易概率。支持 formal/brief 两种输出风格。

  • 232 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
documentationpythonbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add aifinlab/FinClaw --skill a-share-hft-microstructure --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of A Share Hft Microstructure?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for A Share Hft Microstructure
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aifinlab-a-share-hft-microstructure/badge)](https://www.skillsdirectory.com/skills/aifinlab-a-share-hft-microstructure)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: a-share-hft-microstructure
description: A股高频微观结构/盘口深度分析。当用户说"高频微观结构"、"盘口深度"、"Level2深度"、"逐笔委托"、"高频盘口"、"微结构分析"时触发。基于 cn-stock-data 获取数据,分析盘口深度、有效价差、知情交易概率。支持 formal/brief 两种输出风格。
---

# 高频微观结构/盘口深度分析助手

## 数据获取

通过 cn-stock-data skill 获取数据:
- **Level2数据**: 逐笔成交、逐笔委托、盘口快照
- **分钟K线**: 1分钟/5分钟线,用于日内模式验证
- **实时行情**: quote 接口获取最新盘口

## 分析工作流

### Step 1: 盘口深度分析
- 计算买卖盘口不平衡度 OIR = (Bid_Vol - Ask_Vol)/(Bid_Vol + Ask_Vol)
- 分析 5/10 档挂单量分布,识别支撑/压力价位
- 检测大单挂撤单行为,识别冰山单/幌骗单特征
- 统计各价位委托存续时间,区分真实委托与试探性委托

### Step 2: 有效价差与流动性度量
- 有效价差 = 2 * |成交价 - 中间价| / 中间价
- 已实现价差 vs 有效价差分解:流动性供给者利润
- Amihud 非流动性指标 = |收益率| / 成交额
- 按时段统计价差变化:开盘宽→盘中窄→尾盘收窄

### Step 3: 知情交易概率估算
- PIN 模型:基于买卖主导订单到达率估算
- VPIN (Volume-synchronized PIN):成交量同步方法
- 信息不对称指标随事件(财报/公告)的变化
- A股特征:散户噪声交易占比高,PIN 基准值偏低

### Step 4: 价格冲击分析
- Kyle Lambda:回归 ΔP = λ * OrderFlow + ε
- 临时冲击 vs 永久冲击分解
- 不同市值/流动性股票的冲击系数对比
- 大单拆分策略的冲击成本估算

### Step 5: 微结构异常检测
- 盘口突变(大单撤单、价位跳空)预警
- 成交量脉冲检测:短时间内异常放量
- 价差异常扩大:可能预示重大信息到来
- 结合涨跌停板制度分析封板/开板微结构

### Step 6: 输出报告

## 输出格式

### formal 风格(研报级)
```
# [标的] 高频微观结构分析报告

## 一、盘口深度概览
| 指标 | 数值 | 分位数 | 评估 |
|------|------|--------|------|
| OIR  | +0.15 | P62 | 买盘略占优 |
| 有效价差 | 0.08% | P35 | 流动性良好 |

## 二、知情交易分析
[PIN/VPIN 估算结果,信息不对称评估]

## 三、价格冲击
[Kyle Lambda,冲击成本估算]

## 四、异常信号
[盘口异常事件汇总]

## 五、交易建议
[基于微结构的最优执行建议]
```

### brief 风格(快速分析)
```
## [标的] 微结构速览
- OIR +0.15,买盘略占优
- 有效价差 0.08% (P35),流动性良好
- PIN 0.12,知情交易概率低
- 无明显盘口异常
- 建议:可正常下单,冲击成本可控
```

参考 `references/hft-microstructure-guide.md` 获取详细方法论与 A股实证研究。

## 使用示例

### 示例 1: 基本使用

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

### 示例 2: 命令行使用

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

Files in this skill

  • SKILL.md3.1 KB
  • references/hft-microstructure-guide.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…