stock-data-skill
OpenClaw Skill for stock data analysis
Auto-log trades with context, track outcomes, generate calibration reports to improve trading.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install adlai88/prediction-trade-journal打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Track every trade, learn from outcomes, improve your edge.
Use this skill when the user wants to:
# Sync trades from API
python tradejournal.py --sync
# Show recent trades
python tradejournal.py --history 10
# Generate weekly report
python tradejournal.py --report weekly
# Export to CSV
python tradejournal.py --export trades.csv
API Reference:
https://api.simmer.markets
Authorization: Bearer $SIMMER_API_KEY
GET /api/sdk/trades
/api/sdk/trades to fetch trade history| Command | Description |
|---|---|
--sync |
Fetch new trades from API |
--history N |
Show last N trades (default: 10) |
--sync-outcomes |
Update resolved markets |
--report daily/weekly/monthly |
Generate summary report |
--config |
Show configuration |
--export FILE.csv |
Export to CSV |
--dry-run |
Preview without making changes |
| Setting | Environment Variable | Default |
|---|---|---|
| API Key | SIMMER_API_KEY |
(required) |
Trades are stored locally in data/trades.json:
{
"trades": [{
"id": "uuid",
"market_question": "Will X happen?",
"side": "yes",
"shares": 10.5,
"cost": 6.83,
"outcome": {
"resolved": false,
"winning_side": null,
"pnl_usd": null
}
}],
"metadata": {
"last_sync": "2025-01-29T...",
"total_trades": 50
}
}
Other skills can enrich trades with context:
from tradejournal import log_trade
# After...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# Prediction Trade Journal
Track every trade, learn from outcomes, improve your edge.
## When to Use This Skill
Use this skill when the user wants to:
- See their trade history
- Track win rate and P&L
- Generate trading reports
- Analyze which strategies work best
## Quick Commands
```bash
# Sync trades from API
python tradejournal.py --sync
# Show recent trades
python tradejournal.py --history 10
# Generate weekly report
python tradejournal.py --report weekly
# Export to CSV
python tradejournal.py --export trades.csv
```
**API Reference:**
- Base URL: `https://api.simmer.markets`
- Auth: `Authorization: Bearer $SIMMER_API_KEY`
- Trades: `GET /api/sdk/trades`
## How It Works
1. **Sync** - Polls `/api/sdk/trades` to fetch trade history
2. **Store** - Saves trades locally with outcome tracking
3. **Track** - Updates outcomes when markets resolve
4. **Report** - Generates win rate, P&L, and calibration analysis
## CLI Reference
| Command | Description |
|---------|-------------|
| `--sync` | Fetch new trades from API |
| `--history N` | Show last N trades (default: 10) |
| `--sync-outcomes` | Update resolved markets |
| `--report daily/weekly/monthly` | Generate summary report |
| `--config` | Show configuration |
| `--export FILE.csv` | Export to CSV |
| `--dry-run` | Preview without making changes |
## Configuration
| Setting | Environment Variable | Default |
|---------|---------------------|---------|
| API Key | `SIMMER_API_KEY` | (required) |
## Storage
Trades are stored locally in `data/trades.json`:
```json
{
"trades": [{
"id": "uuid",
"market_question": "Will X happen?",
"side": "yes",
"shares": 10.5,
"cost": 6.83,
"outcome": {
"resolved": false,
"winning_side": null,
"pnl_usd": null
}
}],
"metadata": {
"last_sync": "2025-01-29T...",
"total_trades": 50
}
}
```
## Skill Integration
Other skills can enrich trades with context:
```python
from tradejournal import log_trade
# After...OpenClaw Skill for stock data analysis
Search and hire real humans for tasks — photography, delivery, research, and more
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.