← 返回
效率工具 Key 中文

Prediction Trade Journal

Auto-log trades with context, track outcomes, generate calibration reports to improve trading.
自动记录交易及其上下文,追踪结果,生成校准报告以改进交易
adlai88
效率工具 clawhub v1.1.13 4 版本 99900.2 Key: 需要
★ 1
Stars
📥 1,982
下载
💾 33
安装
4
版本
#latest

概述

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

Setup Flow

When user asks to install or configure this skill:

  1. Install the Simmer SDK

```bash

pip install simmer-sdk

```

  1. Ask for Simmer API key
    • They can get it from simmer.markets/dashboard → SDK tab
    • Store in environment as SIMMER_API_KEY

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

  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

CommandDescription
----------------------
--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

Configuration

SettingEnvironment VariableDefault
---------------------------------------
API KeySIMMER_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 --sync to fetch trades from API

Trades not showing outcomes

  • Run python tradejournal.py --sync-outcomes to update resolved markets

版本历史

共 4 个版本

  • v1.1.13 当前
    2026-04-30 10:51 安全 安全
  • v1.1.12
    2026-03-28 19:00
  • v1.1.11
    2026-03-26 21:20
  • v1.1.10
    2026-03-07 11:47

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,300
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,153
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,758