Skip to content

johnalbertini14-glitch/openclaw-skills / skills/0xjordansg-yolo/openclaw-aisa-us-stock-analyst/US Stock Analyst 0210v1

us-stock-analyst

Verified

Professional US stock analysis with financial data, news, social sentiment, and multi-model AI. Comprehensive reports at $0.02-0.10 per analysis.

FileKindSize
README.mdmarkdown5.5 KB
SKILL.mdskill md10.1 KB
TEST_REPORT.mdmarkdown7.1 KB
US_STOCK_CLAWHUB_RELEASE.mdmarkdown7.3 KB
basic_analysis.pyscript3.4 KB
batch_analysis.pyscript3.9 KB
deep_analysis.pyscript5.3 KB
requirements.txtmanifest22 B
stock_analyst.pyscript20.1 KB
test_api_data.pyscript2.8 KB

US_STOCK_CLAWHUB_RELEASE.md

View on GitHub
# US Stock Analyst v1.0 - ClawHub 专用发布包

## ✅ ClawHub 兼容版本

这是一个专门为 ClawHub.ai 准备的干净发布包,**已移除所有非文本文件**。

---

## 📦 包含文件(9 个)

```
us-stock-clean/
├── README.md                           # 用户文档
├── SKILL.md                            # 技能定义文档
├── TEST_REPORT.md                      # 测试报告
├── requirements.txt                    # Python 依赖
├── scripts/
│   ├── stock_analyst.py                # 主程序(588 行)
│   └── test_api_data.py                # API 测试脚本
└── examples/
    ├── basic_analysis.py               # 基础分析示例
    ├── deep_analysis.py                # 深度分析示例
    └── batch_analysis.py               # 批量分析示例
```

---

## ✅ 已移除的文件

根据 ClawHub 要求,已移除以下文件:
- ❌ `LICENSE` - 许可文件
- ❌ `.gitignore` - Git 配置文件

---

## 📊 文件统计

- **文件数量**: 9 个纯文本文件
- **未压缩大小**: ~45 KB
- **ZIP 压缩**: 22 KB
- **TAR.GZ 压缩**: 16 KB

---

## 🚀 上传方式

### 推荐:直接上传 ZIP
下载并上传 **us-stock-analyst-v1.0.zip** 到 ClawHub

### 或者:手动上传文件
从 `us-stock-clean/` 目录上传所有文件(保持目录结构)

---

## ✅ ClawHub 验证清单

- ✅ 只包含文本文件(.md, .py, .txt)
- ✅ 没有 LICENSE 文件
- ✅ 没有 .gitignore 文件
- ✅ 没有 .DS_Store 或其他系统文件
- ✅ 符合 ClawHub 要求

---

## 📋 文件详情

### 文档文件

| 文件 | 大小 | 说明 |
|------|------|------|
| README.md | 5.6 KB | 用户指南、快速开始、定价 |
| SKILL.md | 10.4 KB | OpenClaw 技能定义、完整 API 参考 |
| TEST_REPORT.md | 7.2 KB | 测试报告、API 状态、已知问题 |
| requirements.txt | 22 B | Python 依赖(httpx, asyncio) |

### 脚本文件

| 文件 | 说明 |
|------|------|
| scripts/stock_analyst.py | 主程序(588 行),完整的股票分析引擎 |
| scripts/test_api_data.py | API 测试工具,验证数据获取功能 |

### 示例文件

| 文件 | 说明 |
|------|------|
| examples/basic_analysis.py | 基础分析示例(标准模式) |
| examples/deep_analysis.py | 深度分析示例(全数据源) |
| examples/batch_analysis.py | 批量分析示例(投资组合监控) |

---

## 🎯 功能特性

### 财务数据(MarketPulse APIs)
- ✅ 实时财务指标(市值、P/E、收入、利润率等)
- ✅ 历史股价(任意时间间隔)
- ✅ 财务报表(损益表、资产负债表、现金流)
- ✅ 分析师预测和评级
- ✅ 内部交易活动
- ✅ 机构持股
- ✅ SEC 文件(10-K, 10-Q, 8-K)

### 新闻与研究
- ✅ 公司新闻聚合
- ✅ 网络搜索(文章和分析)
- ✅ 学术研究论文
- ✅ YouTube 内容(财报电话会、分析师视频)

### 社交情绪
- ✅ Twitter 提及和趋势
- ✅ AI 驱动的情绪分析

### AI 分析
- ✅ 多模型 LLM(GPT-4, Claude, Gemini, Qwen, DeepSeek, Grok)
- ✅ 投资论文生成
- ✅ 情绪综合
- ✅ 估值评估

---

## 💰 定价

| 分析模式 | 时间 | 成本 | 数据源 |
|---------|------|------|--------|
| **quick** | ~10s | $0.01-0.02 | 财务指标、新闻、Twitter、基础 AI |
| **standard** | ~20s | $0.02-0.05 | + 分析师预测、内部交易、YouTube |
| **deep** | ~30s | $0.05-0.10 | + 报表、机构持股、SEC、研究论文 |

**对比:**
- Bloomberg Terminal: $2,000/月
- FactSet: $1,000/月
- 传统分析师报告: $50-500 每份
- **AIsa 股票分析**: $0.02-0.10 每份 ✨

---

## 🔧 快速开始

### 1. 设置环境
```bash
export AISA_API_KEY="your-key"
```

### 2. 安装依赖
```bash
pip install -r requirements.txt
```

### 3. 运行分析
```bash
# 基础分析
python scripts/stock_analyst.py analyze --ticker AAPL

# 深度分析
python scripts/stock_analyst.py analyze --ticker NVDA --depth deep

# 批量分析(示例)
python examples/batch_analysis.py
```

---

## 📝 使用示例

### Python 代码示例

```python
from scripts.stock_analyst import AIsaStockAnalyst
import asyncio

async def main():
    analyst = AIsaStockAnalyst(api_key="your_key")
    
    report = await analyst.analyze_stock(
        ticker="AAPL",
        depth="standard"
    )
    
    print(report['investment_summary'])
    print(f"Sentiment: {report['sentiment_analysis']['sentiment']}")
    
    await analyst.close()

asyncio.run(main())
```

### 命令行示例

```bash
# 分析 NVIDIA
python scripts/stock_analyst.py analyze --ticker NVDA --depth standard

# 使用多个 AI 模型
python scripts/stock_analyst.py analyze --ticker TSLA --models gpt-4 claude-3-opus

# 保存报告
python scripts/stock_analyst.py analyze --ticker GOOGL --output report.json
```

---

## 📖 输出格式

```json
{
  "ticker": "NVDA",
  "analysis_date": "2025-02-07T10:30:00Z",
  "investment_summary": "...",
  "key_metrics": {
    "market_cap": 1780500000000,
    "pe_ratio": 68.5,
    "revenue": 60922000000,
    "profit_margin": 0.489,
    "roe": 1.152
  },
  "sentiment_analysis": {
    "sentiment": "bullish",
    "confidence": "high",
    "key_themes": ["..."],
    "summary": "..."
  },
  "valuation": {
    "assessment": "fairly_valued",
    "price_target_12m": 850.00,
    "reasoning": "..."
  }
}
```

---

## 🎓 用例场景

1. **投资研究** - 买入前的全面分析
2. **投资组合监控** - 持仓的每日更新
3. **财报分析** - 追踪季度业绩和指引
4. **内部交易追踪** - 监控内部人买卖活动
5. **情绪监控** - 追踪社交和市场情绪
6. **股票筛选** - 根据标准寻找机会

---

## ⚠️ 合规声明

所有分析都包含监管免责声明:

> 本分析仅供参考,不应被视为个性化投资建议。请在做出投资决策前进行自己的研究并咨询有执照的财务顾问。

符合:SEC Rule 15c2-1、FINRA 法规、GDPR

---

## 📞 支持

- **文档**: https://aisa.mintlify.app
- **API 参考**: https://aisa.mintlify.app/api-reference/introduction
- **Discord**: https://discord.gg/2mzptTkq
- **Email**: developer@aisa.one

---

## 🏢 关于 AIsa

统一的 AI 代理 API 基础设施。

- **财务数据**: 股票、加密货币、市场数据
- **LLM 提供商**: OpenAI、Anthropic、Google、Alibaba、DeepSeek、xAI
- **数据 API**: 搜索、社交、研究、新闻、多媒体
- **支付通道**: HTTP 402 微支付

单一 API 密钥。按使用付费。代理原生。

网站: https://aisa.one

---

## ✅ 准备就绪

**现在可以直接上传到 ClawHub!** 🚀

**这个版本已通过 ClawHub 文件类型验证!** ✨

---

## 🆚 版本对比

| 方面 | 原始包 | ClawHub 版本 |
|------|--------|-------------|
| LICENSE | ✅ 包含 | ❌ 已移除 |
| .gitignore | ✅ 包含 | ❌ 已移除 |
| 文档文件 | ✅ 4 个 | ✅ 4 个 |
| 脚本文件 | ✅ 2 个 | ✅ 2 个 |
| 示例文件 | ✅ 3 个 | ✅ 3 个 |
| **总计** | 11 个 | **9 个** |

---

## 📌 注意事项

1. **功能完整**: 所有核心功能都保留,只移除了配置文件
2. **文档齐全**: README、SKILL、TEST_REPORT 都包含
3. **示例丰富**: 3 个完整的使用示例
4. **即用即上传**: 无需任何修改即可上传

---

**祝你在 ClawHub 上发布成功!** 🎉
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall