Install
openclaw skills install investmenttracker-platformClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
接入InvestmentTracker MCP API,支持投资组合查询、持仓管理、投资策略显示与投资表现统计分析。
openclaw skills install investmenttracker-platformInvestmentTracker-platform 是一个用于接入 InvestmentTracker MCP API 的技能,提供投资追踪、组合管理和市场分析功能。支持真实API连接和模拟数据回退。
💡 获取API密钥以使用真实投资数据: 🌐 访问 https://claw.investtracker.ai 📱 在小程序中获取您的API密钥 🔑 将API密钥添加到config.json文件中
当用户提到以下关键词时,自动激活此技能:
💡 获取API密钥以使用真实投资数据: 🌐 访问 https://claw.investtracker.ai 📱 在小程序中获取您的API密钥 🔑 将API密钥添加到config.json文件中
查看我的投资信息 或 我是谁列出我的持仓 或 查看投资组合我的投资策略 或 投资方法论投资统计数据 或 表现统计列出投资工具 或 可用功能{
"mcpServers": {
"investmenttracker": {
"url": "https://claw.investtracker.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json, text/event-stream",
"Content-Type": "application/json"
},
"timeout": 30,
"retry_attempts": 3,
"cache_enabled": true,
"cache_ttl": 300
}
}
}
YOUR_API_KEY占位符application/json, text/event-stream以支持SSE协议# 查看所有信息(混合模式)
python3 InvestmentTracker_skill.py all
# 查看用户信息
python3 InvestmentTracker_skill.py user
# 查看持仓(默认显示活跃持仓)
python3 InvestmentTracker_skill.py positions
# 查看已平仓持仓
python3 InvestmentTracker_skill.py positions --status CLOSE
# 查看投资方法论
python3 InvestmentTracker_skill.py methodology
# 查看统计数据
python3 InvestmentTracker_skill.py stats
# 列出可用工具
python3 InvestmentTracker_skill.py tools
# 指定连接模式
python3 InvestmentTracker_skill.py --mode api all # 只使用API
python3 InvestmentTracker_skill.py --mode simulated all # 只使用模拟数据
当技能激活后,可以直接在聊天中使用:
InvestmentTrackerSkill
├── MCP客户端 (SSE处理)
├── 数据管理器
│ ├── API数据获取
│ └── 模拟数据生成
├── 格式化器
│ ├── 用户信息格式化
│ ├── 持仓列表格式化
│ ├── 方法论格式化
│ └── 统计数据格式化
└── 命令行接口
InvestmentTrackerSkill:技能主类ConnectionMode:连接模式枚举{
"source": "api|simulated",
"data": {
"id": "user_123",
"name": "投资用户",
"email": "investor@example.com",
"joined_date": "2024-01-01",
"investment_style": "成长型"
}
}
{
"source": "api|simulated",
"data": {
"positions": [
{
"id": "pos_001",
"symbol": "BTC",
"name": "Bitcoin",
"asset_type": "crypto",
"quantity": 0.5,
"current_price": 45000.00,
"current_value": 22500.00,
"cost_basis": 20000.00,
"unrealized_gain": 2500.00,
"status": "POSITION"
}
],
"count": 1,
"total_value": 22500.00
}
}
InvestmentTracker-platform/
├── SKILL.md # 技能说明文档
├── README.md # 详细使用说明
├── config.json # MCP API配置
├── InvestmentTracker_skill.py # 技能主实现
├── test_mcp_sse.py # MCP API测试工具
├── working_skill.py # 可工作版本(含模拟数据)
├── examples/ # 使用示例
│ ├── portfolio.md # 投资组合示例
│ ├── transactions.md # 交易记录示例
│ └── analysis.md # 分析报告示例
└── scripts/ # 辅助脚本
└── fetch_data.py # 数据获取脚本(待更新)
欢迎提出新功能建议和改进意见!
investor - 投资评估和组合管理trading-research - 加密货币交易研究us-stock-analysis - 美股分析stock-market-pro - 股票市场专业工具# 显示投资组合
python3 simple_skill.py portfolio
# 显示交易记录(默认5条)
python3 simple_skill.py transactions
python3 simple_skill.py transactions 10 # 显示10条
# 显示投资分析
python3 simple_skill.py analysis
# 显示所有信息
python3 simple_skill.py
# 获取JSON数据
python3 simple_skill.py json portfolio
python3 simple_skill.py json transactions 10
python3 simple_skill.py json analysis
# 显示帮助
python3 simple_skill.py help
查看我的投资组合
获取投资组合概览
显示我的投资组合
查看交易记录
显示最近的交易
获取交易历史
分析投资表现
获取投资分析报告
分析我的投资收益
投资组合分析
交易记录查询
投资表现评估
curl -X GET "https://investmenttracker-ingest-production.up.railway.app/mcp/portfolio" \
-H "Authorization: Bearer it_live_E8MnP28kdPmgpxdjfRG1wzUB9Nr7mCiBU34NjFkAPes"
curl -X GET "https://investmenttracker-ingest-production.up.railway.app/mcp/transactions" \
-H "Authorization: Bearer it_live_E8MnP28kdPmgpxdjfRG1wzUB9Nr7mCiBU34NjFkAPes"
InvestmentTracker-platform/
├── SKILL.md # 技能说明文档
├── README.md # 详细使用说明
├── config.json # MCP API 配置
├── examples/ # 使用示例
│ ├── portfolio.md # 投资组合示例
│ ├── transactions.md # 交易记录示例
│ └── analysis.md # 分析报告示例
└── scripts/ # 辅助脚本
├── fetch_data.py # 数据获取脚本
└── analyze.py # 数据分析脚本
investor - 投资评估和组合管理trading-research - 加密货币交易研究us-stock-analysis - 美股分析stock-market-pro - 股票市场专业工具💡 获取API密钥以使用真实投资数据: 🌐 访问 https://claw.investtracker.ai 📱 在小程序中获取您的API密钥 🔑 将API密钥添加到config.json文件中