Simmer Resolution Tracker
Every trade you place either wins or loses. This skill makes sure you find out immediately — logs the outcome, posts the alert, redeems the winnings on-chain — automatically, every 5 minutes. Set it up once and forget it.
This is a template. Point it at your trade journals, set your Discord webhook, and the skill watches for you. It polls Simmer for resolved positions, matches them back to your journal entries, computes PnL, and handles on-chain redemptions. You bring the trades — it closes the loop.
Setup
1. Install dependencies
CODEBLOCK0
2. Set environment variables
CODEBLOCK1
3. Run it
CODEBLOCK2
That's it. Cron handles the rest — every 5 minutes, automatically.
Configuration
| Variable | Required | Default | Description |
|---|
| INLINECODE0 | ✅ | — | Your Simmer API key |
| INLINECODE1 |
✅ | — | Polymarket wallet private key for on-chain redemptions |
|
DISCORD_WEBHOOK | No | — | Discord webhook URL for win/loss alerts |
|
POLY_MODE | No |
live | Set to
sim to skip on-chain redemptions |
|
DATA_DIR | No |
./data/live | Override data directory path |
Quick Commands
CODEBLOCK3
Example Output
CODEBLOCK4
Troubleshooting
Trade not matched in journal — The resolution ran before the trade was logged. Not an error — the tracker will retry on the next run and match it then.
WALLETPRIVATEKEY not set — Redemptions will fail. The tracker still logs resolutions and posts Discord alerts — you just won't get automatic on-chain redemptions.
Discord webhook errors — Check the URL is valid and the webhook hasn't been deleted. Alerts are best-effort — webhook failures don't block resolution processing.
POLY_MODE=sim — Skips all on-chain redemptions. Use this for testing or when you want resolution tracking without touching the chain.
Simmer 决议追踪器
你下的每一笔交易要么赢要么输。这个技能确保你立即知晓结果——自动记录结果、发送提醒、在链上赎回收益,每5分钟执行一次。只需设置一次,之后无需操心。
这是一个模板。 将其指向你的交易日志,设置你的Discord webhook,该技能便会为你监控。它会轮询Simmer以获取已决议的头寸,将其与你的日志条目匹配,计算盈亏,并处理链上赎回。你负责交易——它负责闭环。
设置
1. 安装依赖
bash
pip install simmer-sdk
2. 设置环境变量
bash
export SIMMER
APIKEY=your
apikey
export WALLET
PRIVATEKEY=your
walletkey
export DISCORD_WEBHOOK=https://discord.com/api/webhooks/... # 可选
3. 运行
bash
python resolution_tracker.py
就这样。Cron负责其余工作——每5分钟自动执行一次。
配置
| 变量 | 必需 | 默认值 | 描述 |
|---|
| SIMMERAPIKEY | ✅ | — | 你的Simmer API密钥 |
| WALLETPRIVATEKEY |
✅ | — | 用于链上赎回的Polymarket钱包私钥 |
| DISCORD_WEBHOOK | 否 | — | 用于盈亏提醒的Discord webhook URL |
| POLY_MODE | 否 | live | 设置为sim可跳过链上赎回 |
| DATA_DIR | 否 | ./data/live | 覆盖数据目录路径 |
快速命令
bash
手动运行一次
python resolution_tracker.py
模拟运行(无赎回)
POLY
MODE=sim python resolutiontracker.py
自定义数据目录
DATA
DIR=./data/backtest python resolutiontracker.py
示例输出
[2026-03-14 04:10 UTC] 正在检查头寸...
发现2个新决议的市场
✅ 赢 btc_momentum — 比特币今天会收于$85k以上吗?
结果:是 | 份额:147.3 | 盈亏:+$18.42
已在链上赎回:0xabc...def
Discord提醒已发送 ✓
❌ 亏 eth_midcandle — 以太坊本周会触及$3,800吗?
结果:否 | 成本:$12.00 | 盈亏:-$12.00
Discord提醒已发送 ✓
已处理:2个决议 | 1个已赎回 | 0个错误
故障排除
交易未在日志中匹配 — 决议在交易记录之前运行。这不是错误——追踪器会在下次运行时重试并匹配。
WALLETPRIVATEKEY未设置 — 赎回将失败。追踪器仍会记录决议并发送Discord提醒——只是无法自动进行链上赎回。
Discord webhook错误 — 检查URL是否有效以及webhook是否未被删除。提醒是尽力而为——webhook失败不会阻止决议处理。
POLY_MODE=sim — 跳过所有链上赎回。用于测试或当你只想追踪决议而不涉及链上操作时。