Track every trade, learn from outcomes, improve your edge.
Use this skill when the user wants to:
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:
https://api.simmer.marketsAuthorization: Bearer $SIMMER_API_KEYGET /api/sdk/trades/api/sdk/trades to fetch trade historyCommandDescription--syncFetch new trades from API--history NShow last N trades (default: 10)--sync-outcomesUpdate resolved markets--report daily/weekly/monthlyGenerate summary report--configShow configuration--export FILE.csvExport to CSV--dry-runPreview without making changes
SettingEnvironment VariableDefaultAPI KeySIMMER_API_KEY(required)
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
}
}
Other skills can enrich trades with context:
python
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.
text
📓 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
"SIMMER_API_KEY environment variable not set"
export SIMMER_API_KEY=sk_live_..."No trades recorded yet"
python tradejournal.py --sync to fetch trades from APITrades not showing outcomes
python tradejournal.py --sync-outcomes to update resolved markets