IntegratesOfficial API(Q&A/RAG/Agent) and theWeb version(roadshows/commentary/trending topics), suitable for daily investment research use.
Selection guide: General questions → use this skill (default); bulk data scraping/retrieving lists → use
alphapai-web。
Feature Matrix
| Feature | Data Source | Command |
|---|---|---|
| Investment Research Q&A | Official API | qa |
| Data Recall (RAG) | Official API | recall |
| Company One-Pager | Official API | company |
| Earnings Commentary | Official API | earnings |
| Investment Logic | Official API | logic |
| Comparable Companies | Official API | peers |
| Industry One-Pager | Official API | industry |
| Thematic Stock Selection | Official API | screen |
| Viewpoint Challenge | Official API | challenge |
| Announcement List | Official API | report |
| Chart Search | Official API | chart |
| Roadshow Minutes | Web version | roadshow |
| Commentary | Web version | comment |
| Trending Topics | Web version | hot |
| Hot Words | Web version | hot-word |
| Trending Reports | Web version | hot-report |
| Trending Stocks | Web version | hot-stock |
| Comprehensive Search | Web version | search |
| User Information | Web version | user-info |
Authentication Configuration
Priority:
- Environment variable
ALPHAPAI_API_KEY(recommended) - Same-level/parent-level/grandparent-level directory
.env config.json
API Key (Official API):
export ALPHAPAI_API_KEY=your_key_here
# 或
python scripts/alphapai.py config --set-key YOUR_KEY
Account and password (Web version):
export ALPHAPAI_ACCOUNT=手机号
export ALPHAPAI_PASSWORD=密码
# 或
python scripts/alphapai.py config --set-account 手机号 --set-password 密码
The API Key can be obtained on the AlphaPai desktop client. The account and password are used for Web version-exclusive features (roadshows, commentary, trending topics).
Official API Commands
Investment Research Q&A
python scripts/alphapai.py qa "茅台2024经营情况"
python scripts/alphapai.py qa "新能源趋势" --think # Think模式(Wide Search)
python scripts/alphapai.py qa "近期新闻" --web-search # 联网搜索
Data Recall
python scripts/alphapai.py recall "茅台市值" --type comment,report
python scripts/alphapai.py recall "新能源" --no-cutoff # 完整内容
Data type: comment(commentary) / report(research reports) / roadShow(roadshows) / ann(announcements) / qa(Q&A) / edb(time-series data)
Quick Commands
# 公司一页纸
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 "小米汽车未来增长空间很大"
Announcements/Charts
# 公告列表
python scripts/alphapai.py report 603380.SH
# 图表搜索
python scripts/alphapai.py chart "新能源车销量趋势"
Web Version Commands
Roadshow Minutes
# 列表
python scripts/alphapai.py roadshow --list
# 搜索
python scripts/alphapai.py roadshow --search "茅台业绩会"
# 详情(含AI摘要)
python scripts/alphapai.py roadshow --detail <纪要ID>
Commentary
# 推荐列表
python scripts/alphapai.py comment --list
# 搜索
python scripts/alphapai.py comment --search "茅台"
# 详情(含盈利预测)
python scripts/alphapai.py comment --detail <点评ID>
Trending Topics / Trending Reports / Trending Stocks
# 热门话题列表
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
Comprehensive Search / User Information
# 综合搜索(路演+公众号+股票一次全返回)
python scripts/alphapai.py search "贵州茅台"
# 用户信息
python scripts/alphapai.py user-info
Output Principles
AlphaPai's returned content is generated by a professional investment research model;present the raw output directly without secondary processing:
- Do not summarize or compress
- Do not truncate
- Preserve the original Markdown format
- Output cited sources along with the main text
File Structure
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
Reference Files
| File | Content |
|---|---|
references/api_reference.md |
Complete field definitions for the official API |
references/web_api_reference.md |
Web version API reference |
references/agent_modes.md |
Detailed explanation of 11 Agent modes |
Upgrade
When the user requests an upgrade, pull the official installation guide and execute it according to the process.