GB-Power-Market-JJ prediction-trade-journal
Auto-log trades with context, track outcomes, generate calibration reports to improve trading.
install
source · Clone the upstream repo
git clone https://github.com/GeorgeDoors888/GB-Power-Market-JJ
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GeorgeDoors888/GB-Power-Market-JJ "$T" && mkdir -p ~/.claude/skills && cp -r "$T/openclaw-skills/skills/adlai88/prediction-trade-journal" ~/.claude/skills/georgedoors888-gb-power-market-jj-prediction-trade-journal && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GeorgeDoors888/GB-Power-Market-JJ "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/openclaw-skills/skills/adlai88/prediction-trade-journal" ~/.openclaw/skills/georgedoors888-gb-power-market-jj-prediction-trade-journal && rm -rf "$T"
manifest:
openclaw-skills/skills/adlai88/prediction-trade-journal/SKILL.mdsource content
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
to fetch trade history/api/sdk/trades - 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 |
|---|---|
| Fetch new trades from API |
| Show last N trades (default: 10) |
| Update resolved markets |
| Generate summary report |
| Show configuration |
| Export to CSV |
| Preview without making changes |
Configuration
| Setting | Environment Variable | Default |
|---|---|---|
| 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
to fetch trades from APIpython tradejournal.py --sync
Trades not showing outcomes
- Run
to update resolved marketspython tradejournal.py --sync-outcomes