/install dolph-trade-journal
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
# 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
- Sync - Polls
/api/sdk/tradesto fetch trade history - Store - Saves trades locally with outcome tracking
- Track - Updates outcomes when markets resolve
- 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:
{
"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:
from tradejournal import log_trade
# After executing a trade
log_trade(
trade_id=result['trade_id'],
source="copytrading",
thesis="Mirroring whale 0x123...",
confidence=0.70
)
This adds thesis, confidence, and source to the trade record for better analysis.
Example Report
📓 Weekly Report
========================================
Period: Last 7 days
Trades: 15
Total cost: $125.50
Resolved: 8 / 15
Win rate: 62.5%
P&L: +$18.30
By side: 10 YES, 5 NO
Troubleshooting
"SIMMER_API_KEY environment variable not set"
- Set your API key:
export SIMMER_API_KEY=sk_live_...
"No trades recorded yet"
- Run
python tradejournal.py --syncto fetch trades from API
Trades not showing outcomes
- Run
python tradejournal.py --sync-outcomesto update resolved markets
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dolph-trade-journal - 安装完成后,直接呼叫该 Skill 的名称或使用
/dolph-trade-journal触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Prediction Trade Journal 是什么?
Auto-log trades with context, track outcomes, generate calibration reports to improve trading. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 87 次。
如何安装 Prediction Trade Journal?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dolph-trade-journal」即可一键安装,无需额外配置。
Prediction Trade Journal 是免费的吗?
是的,Prediction Trade Journal 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Prediction Trade Journal 支持哪些平台?
Prediction Trade Journal 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Prediction Trade Journal?
由 richducat(@richducat)开发并维护,当前版本 v1.0.0。