A share hft microstructure

From aifinlab/FinClaw · View interactive version

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

How to use this skill

Skill file

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

数据获取

通过 cn-stock-data skill 获取数据:

分析工作流

Step 1: 盘口深度分析

Step 2: 有效价差与流动性度量

Step 3: 知情交易概率估算

Step 4: 价格冲击分析

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: 基本使用

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

示例 2: 命令行使用

python scripts/run_skill.py --input data.json
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.