A share index arb

From aifinlab/FinClaw · View interactive version

A share index arb is an AI agent skill from the GitHub repository aifinlab/FinClaw. A股期现套利/基差交易策略。当用户说"期现套利"、"基差交易"、"index arb"、"期货基差"、"正向套利"、"反向套利"、"基差收敛"时触发。基于 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: 输出报告

输出格式

formal 风格(研报级)

# 期现套利分析报告

## 一、基差状态
| 合约 | 期货 | 现货 | 基差 | 年化 |
|------|------|------|------|------|

## 二、套利机会
[策略类型、预期收益]

## 三、执行方案
[现货组合、对冲比例]

## 四、风险控制

brief 风格(快速分析)

## 期现套利速览
- IF当月基差 -15点,年化贴水 -3.2%
- IC当月基差 -45点,年化贴水 -8.5%
- IC贴水较深,正向套利空间有限
- 建议:关注IC跨期价差收敛机会

参考 references/index-arb-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.