prediction-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
More from spartanlabsxyz/simmer-sdk
polymarket-weather-trader
Trade Polymarket weather markets using NOAA (US) and Open-Meteo (international) forecasts via Simmer API. Inspired by gopfan2's weather trading approach. Use when user wants to trade temperature markets, automate weather bets, check forecasts, or run weather-based strategies.
15polymarket-fast-loop
Trade Polymarket BTC 5-minute and 15-minute fast markets using CEX price momentum signals via Simmer API. Default signal is Binance BTC/USDT klines. Use when user wants to trade sprint/fast markets, automate short-term crypto trading, or use CEX momentum as a Polymarket signal.
6polymarket-copytrading
Mirror positions from top Polymarket traders. Polling mode (free) for portfolio-style copying, Reactor mode (Pro) for event-driven real-time mirroring via Simmer's on-chain signal infrastructure.
5polymarket-signal-sniper
Snipe Polymarket opportunities from your own signal sources. Monitors RSS feeds with Trading Agent-grade safeguards.
4simmer-skill-builder
Generate complete, installable OpenClaw trading skills from natural language strategy descriptions. Use when your human wants to create a new trading strategy, build a bot, generate a skill, automate a trade idea, turn a tweet into a strategy, or asks "build me a skill that...". Produces a full skill folder (SKILL.md + Python script + config) ready to install and run.
4polymarket-elon-tweets
Trade Polymarket "Elon Musk # tweets" markets using XTracker post count data. Buys adjacent range buckets when combined cost < $1 for structural edge. Use when user wants to trade tweet count markets, automate Elon tweet bets, check XTracker stats, or run noovd-style trading.
4