通过一个命令行工具完成多链加密货币交易、钱包管理与 AI 市场分析。
编程
Polymarket Ai Divergence
试用Find markets where Simmer's AI consensus diverges from the real market price, then trade on the mispriced side using Kelly sizing. Scans for divergence, chec...
它能做什么
Find markets where Simmer's AI consensus diverges from the real market price, then trade the edge.
技能文档
Polymarket AI Divergence Trader
Find markets where Simmer's AI consensus diverges from the real market price, then trade the edge.
This is a template. The default logic trades when AI divergence exceeds 2% on zero-fee markets, using Kelly sizing capped at 25%. Remix it with different edge thresholds, sizing strategies, or additional filters (e.g., only trade markets resolving within 7 days). The skill handles plumbing (divergence scanning, fee checks, safeguards, execution). Your agent provides the alpha.
What It Does
- Scans all active markets for AI vs market price divergence
- Filters to markets with edge above threshold (default 2%) and zero fees
- Checks safeguards (flip-flop detection, existing positions)
- Sizes using Kelly criterion, capped conservatively
- Executes trades on the mispriced side (YES when AI is bullish, NO when bearish)
Setup Flow
When user asks to install or configure this skill:
-
Install the Simmer SDK
pip install simmer-sdk -
Ask for Simmer API key
- They can get it from simmer.markets/dashboard → SDK tab
- Store in environment as
SIMMER_API_KEY
-
Ask for wallet private key (required for live trading)
- This is the private key for their Polymarket wallet (the wallet that holds USDC)
- Store in environment as
WALLET_PRIVATE_KEY - The SDK uses this to sign orders client-side automatically — no manual signing needed
- Not needed for $SIM paper trading on the Simmer venue
Quick Commands
# Scan only (dry run, no trades)
python ai_divergence.py
# Scan + execute trades
python ai_divergence.py --live
# Only show bullish divergences
python ai_divergence.py --bullish
# Only >15% divergence
python ai_divergence.py --min 15
# JSON output
python ai_divergence.py --json
# Cron mode (quiet, trades only)
python ai_divergence.py --live --quiet
# Show config
python ai_divergence.py --config
# Update config
python ai_divergence.py --set max_bet_usd=10
Configuration
| Key | Env Var | Default | Description |
|---|---|---|---|
min_divergence | SIMMER_DIVERGENCE_MIN | 5.0 | Min divergence % for scanner display |
min_edge | SIMMER_DIVERGENCE_MIN_EDGE | 0.02 | Min divergence to trade (2%) |
max_bet_usd | SIMMER_DIVERGENCE_MAX_BET | 5.0 | Max bet per trade |
max_trades_per_run | SIMMER_DIVERGENCE_MAX_TRADES | 3 | Max trades per cycle |
kelly_cap | SIMMER_DIVERGENCE_KELLY_CAP | 0.25 | Kelly fraction cap |
daily_budget | SIMMER_DIVERGENCE_DAILY_BUDGET | 25.0 | Daily spend limit |
default_direction | SIMMER_DIVERGENCE_DIRECTION | (both) | Filter: "bullish" or "bearish" |
Update via CLI: python ai_divergence.py --set max_bet_usd=10
How It Works
Divergence Signal
Each imported market has two prices:
- AI consensus (
current_probability) — Simmer's AI consensus price, derived from multi-model ensemble forecasting - External price (
external_price_yes) — Real market price on Polymarket/Kalshi
divergence = AI consensus - external price
When divergence > 0: AI thinks the market is underpriced → buy YES When divergence < 0: AI thinks the market is overpriced → buy NO
Kelly Sizing
Position size uses the Kelly criterion:
kelly_fraction = edge / (1 - price)
position_size = kelly_fraction * max_bet_usd
Capped at kelly_cap (default 25%) to limit risk.
Fee Filtering
75% of Polymarket markets have 0% fees. The remaining 25% charge 10% (short-duration crypto/sports). This skill only trades zero-fee markets to avoid fee drag eroding the edge.
Safeguards
- Fee check: Skips markets with any taker fee
- Flip-flop detection: Uses SDK's context API to detect contradictory trades
- Position check: Skips markets where you already hold a position
- Daily budget: Stops trading when daily spend limit is reached
- Kelly sizing: Conservative sizing prevents over-betting
API Endpoints Used
GET /api/sdk/markets/opportunities— Divergence-ranked market listGET /api/sdk/context/{market_id}— Fee rate and safeguards per marketPOST /api/sdk/trade— Trade execution (via SDK client)GET /api/sdk/positions— Current portfolio positions
Troubleshooting
"No markets above min edge threshold"
→ All divergences are below the min_edge setting. Lower it with --set min_edge=0.01 or wait for larger divergences.
"Daily budget exhausted"
→ The skill has hit its daily spend limit. Adjust with --set daily_budget=50.
All markets skipped for fees → Only zero-fee markets are traded. If all available divergence opportunities have fees, no trades execute. This is by design.
"context fetch failed"
→ The SDK context endpoint is rate-limited (18 req/min). If running frequently, reduce max_trades_per_run.
相关技能
以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。
在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。
把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。
从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。
用 Python 自适应抓取网页,默认绕过反爬保护,支持从单次请求到大规模并发爬取。
simmer 的更多技能
浏览全部技能用 Binance 价格动量作为信号,通过 Simmer SDK 在 Polymarket 上交易 5 分钟/15 分钟 BTC 闪盘。
通过一套 SDK 在 Polymarket、Kalshi 与 $SIM 虚拟练习市场间交易预测市场。
用 NOAA 或 Open-Meteo 预报扫描 Polymarket 温度市场,支持试运行与实盘控制。
批量或实时镜像顶级 Polymarket 巨鲸仓位,内置再平衡与单笔限额。
扫描临近结算的 Polymarket 市场,按 60/40 以上强偏度筛选,并在受控仓位下押注高概率一方。
把交易灵感变成可安装的 Simmer 预测市场技能