360 Secure SkillHub
360 安全技能中心

Simmer Resolution Tracker

面向 Simmer/Polymarket 交易者的定时监控模板:通过 cron 每 5 分钟轮询已结算持仓,匹配交易日志、计算盈亏,按 POLY_MODE 自动在链上赎回获胜头寸,并用 Discord webhook 发送胜负提醒;需自备 API key、钱包私钥与日志数据。

djdyll
djdyll
热度 59.17
最近更新 2026-05-18 12:10:44
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:财务 / 自动化脚本 / 工作流 / API 集成 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add simmer-resolution-tracker
Metadata
name
simmer-resolution-tracker
description
Monitors your Simmer positions for resolutions, logs wins/losses to your trade journal, and automatically redeems winning positions on-chain. Built for Simmer agents trading on Polymarket. Sends Discord webhook alerts on every resolution. Runs every 5 minutes via cron.
metadata
{"author":"DjDyll","version":"1.1.0","displayName":"Simmer Resolution Tracker","difficulty":"intermediate"}

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

pip install simmer-sdk

2. Set environment variables

export SIMMER_API_KEY=your_api_key
export WALLET_PRIVATE_KEY=your_wallet_key
export DISCORD_WEBHOOK=https://discord.com/api/webhooks/...  # optional

3. Run it

python resolution_tracker.py

That's it. Cron handles the rest — every 5 minutes, automatically.

Configuration

Variable Required Default Description
SIMMER_API_KEY ✅ — Your Simmer API key
WALLET_PRIVATE_KEY ✅ — 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

# Run once manually
python resolution_tracker.py

# Dry run (no redemptions)
POLY_MODE=sim python resolution_tracker.py

# Custom data directory
DATA_DIR=./data/backtest python resolution_tracker.py

Example Output

[2026-03-14 04:10 UTC] Checking positions...
Found 2 newly resolved markets

✅ WIN  btc_momentum — Will BTC close above $85k today?
        Outcome: YES | Shares: 147.3 | PnL: +$18.42
        Redeemed on-chain: 0xabc...def
        Discord alert sent ✓

❌ LOSS eth_midcandle — Will ETH hit $3,800 this week?
        Outcome: NO | Cost: $12.00 | PnL: -$12.00
        Discord alert sent ✓

Processed: 2 resolutions | 1 redeemed | 0 errors

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.

WALLET_PRIVATE_KEY 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.