mcpField
C
capture-alphapai-unified

capture-alphapai-unified

github.com/kirkluokunOther6636 installsUpdated 32w ago
Repository

About capture-alphapai-unified

capture-alphapai-unified is an Alpha派 skill for routine investment research. It combines official API and web commands for Q&A, data retrieval, company and industry analysis, and market content search.

Key features

  1. 01Research Q&A and data retrieval
  2. 02Company, industry, and earnings analysis
  3. 03Theme screening and peer lookup
  4. 04Announcement and chart search
  5. 05Roadshow, commentary, and trending content search

Use cases

  1. 01Review company operations and investment theses
  2. 02Retrieve announcements, reports, and time-series data
  3. 03Find roadshow notes and popular reports

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/kirkluokun/awesome-a-stock-openclawskills --skill capture-alphapai-unified

After installing, type/capture-alphapai-unifiedin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

config.json
references/
agent_modes.md
api_reference.md
web_api_reference.md
scripts/
alphapai_client.py
alphapai_web_client.py
alphapai.py
setup.sh

Details

From the project README

AlphaPai Unified — 默认投研技能

融合官方API(问答/RAG/Agent)和Web版(路演/点评/热门话题),适合日常投研使用。

选择指南: 一般性问题 → 用本 skill(默认);大批量抓数据/获取列表 → 用 alphapai-web。

功能矩阵

功能数据源命令
投研问答官方APIqa
数据召回(RAG)官方APIrecall
公司一页纸官方APIcompany
业绩点评官方APIearnings
投资逻辑官方APIlogic
可比公司官方APIpeers
行业一页纸官方APIindustry
主题选股官方APIscreen
观点Challenge官方APIchallenge
公告列表官方APIreport
图表搜索官方APIchart
路演纪要Web版roadshow
点评Web版comment
热门话题Web版hot
热词Web版hot-word
热门报告Web版hot-report
热门股票Web版hot-stock
综合搜索Web版search
用户信息Web版user-info

认证配置

优先级:

  1. 环境变量 ALPHAPAI_API_KEY(推荐)
  2. 同级/上级/上上级目录 .env
  3. config.json

API Key(官方API):

export ALPHAPAI_API_KEY=your_key_here
# 或
python scripts/alphapai.py config --set-key YOUR_KEY

账号密码(Web版):

export ALPHAPAI_ACCOUNT=手机号
export ALPHAPAI_PASSWORD=密码
# 或
python scripts/alphapai.py config --set-account 手机号 --set-password 密码

API Key 可在 Alpha 派电脑端获取。账号密码用于 Web 版独有功能(路演、点评、热门话题)。


官方API命令

投研问答
python scripts/alphapai.py qa "茅台2024经营情况"
python scripts/alphapai.py qa "新能源趋势" --think      # Think模式(Wide Search)
python scripts/alphapai.py qa "近期新闻" --web-search   # 联网搜索
数据召回
python scripts/alphapai.py recall "茅台市值" --type comment,report
python scripts/alphapai.py recall "新能源" --no-cutoff   # 完整内容

数据类型: comment(点评) / report(研报) / roadShow(路演) / ann(公告) / qa(问答) / edb(时序数据)

快捷命令
# 公司一页纸
python scripts/alphapai.py company 300014.SZ:亿纬锂能

# 业绩点评(自动查询最新公告)
python scripts/alphapai.py earnings 603380.SH:易德龙

# 投资逻辑
python scripts/alphapai.py logic 300014.SZ:亿纬锂能

# 可比公司
python scripts/alphapai.py peers 002594.SZ:比亚迪

# 行业一页纸
python scripts/alphapai.py industry 白酒

# 主题选股
python scripts/alphapai.py screen "和白酒相关的公司"

# 观点Challenge
python scripts/alphapai.py challenge "小米汽车未来增长空间很大"
公告/图表
# 公告列表
python scripts/alphapai.py report 603380.SH

# 图表搜索
python scripts/alphapai.py chart "新能源车销量趋势"

Web版命令

路演纪要
# 列表
python scripts/alphapai.py roadshow --list

# 搜索
python scripts/alphapai.py roadshow --search "茅台业绩会"

# 详情(含AI摘要)
python scripts/alphapai.py roadshow --detail <纪要ID>
点评
# 推荐列表
python scripts/alphapai.py comment --list

# 搜索
python scripts/alphapai.py comment --search "茅台"

# 详情(含盈利预测)
python scripts/alphapai.py comment --detail <点评ID>
热门话题 / 热门报告 / 热门股票
# 热门话题列表
python scripts/alphapai.py hot

# 话题详情
python scripts/alphapai.py hot --detail <话题ID>

# 热词
python scripts/alphapai.py hot-word

# 热门报告
python scripts/alphapai.py hot-report

# 热门股票(公募/私募/险资持仓)
python scripts/alphapai.py hot-stock
综合搜索 / 用户信息
# 综合搜索(路演+公众号+股票一次全返回)
python scripts/alphapai.py search "贵州茅台"

# 用户信息
python scripts/alphapai.py user-info

输出原则

Alpha派返回内容由专业投研模型生成,直接呈现原始输出,不做二次加工:

  • 禁止总结或压缩
  • 禁止截断
  • 保留原始 Markdown 格式
  • 引用来源随正文输出

文件结构

capture-alphapai-unified/
├── SKILL.md
├── scripts/
│   ├── alphapai.py              # 统一入口CLI
│   ├── alphapai_client.py       # 官方API客户端
│   ├── alphapai_web_client.py   # Web版客户端
│   └── setup.sh
├── references/
│   ├── api_reference.md         # 官方API参考
│   ├── web_api_reference.md     # Web版API参考
│   └── agent_modes.md           # Agent模式详解
└── .env.example

参考文件

文件内容
references/api_reference.md官方API完整字段定义
references/web_api_reference.mdWeb版API参考
references/agent_modes.md11种Agent模式详解

升级

当用户要求升级时,拉取官方安装指引并按流程执行。

Comments

Markdown supported