P

Polymarket Ai Divergence

其他v2.3.0
作者:Simmer.Markets更新於 2026-05-20共 24 個版本 · 最新版本釋出於 2026-04-25polymarket-ai-divergence

據 AlphaMoat 統計,截至 2026-09,Polymarket Ai Divergence 累計下載 3,176 次、獲 3 個星標,在全部 5,078 個 AI 技能中排名第 3,595 位,在「其他」分類(51 個)中排名第 50 位。

累計安裝
102
累計下載
3176
星標
3
全站排名
#3,595
全站前 71% · 「其他」前 99%
平台累計安裝累計下載星標評論
ClawHub ↗10231763-

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

它包含掃描、費用檢查、倉位計算和交易執行流程;即時交易需要 API 憑據及錢包私鑰。文件說明預設邏輯是模板,訊號不代表已驗證的優勢。實盤可能造成真實資金損失;在獨立核對市場、費用、引數和交易目標並獲得明確授權前,只應使用只讀掃描,不得執行交易或索取私鑰。

資料釋出於 2026-10-29

可以用來做什麼

  • 掃描市場並整理 AI 共識與外部市場價格的差異。
  • 檢視費用、已有倉位和預算等交易前檢查項。
  • 在不執行交易的前提下檢查配置和訊號來源。

什麼時候用

  • 需要分析 Simmer 訊號與外部市場價格差異時。
  • 需要先審閱掃描結果、費用條件、風險控制和交易配置時。
  • 任何實盤交易、資金授權或私鑰處理前,需要獨立驗證並取得明確授權時。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

僅執行只讀掃描,列出訊號來源和需要核驗的市場資訊,不提交交易。
審閱這份交易配置中的倉位、預算和費用檢查;不要讀取或輸出錢包私鑰。

月度資料趨勢

累計下載3176
1812254532772026-03 · 累計下載 19132026-06 · 累計下載 27002026-07 · 累計下載 29332026-08 · 累計下載 30742026-09 · 累計下載 317626-0326-09
星標3
2342026-03 · 星標 32026-06 · 星標 32026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093176—3
2026-083074+4.8%3
2026-072933+8.6%3
2026-062700—3
2026-031913—3

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

5.2 KB · ClawHub v2.3.0
---
name: polymarket-ai-divergence
description: 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, checks fees and safeguards, and executes trades on zero-fee markets with sufficient edge.
metadata:
  author: Simmer (@simmer_markets)
  version: "2.3.0"
  displayName: Polymarket AI Divergence
  difficulty: intermediate
---
# Polymarket AI Divergence Trader
展開全部(共 139 行)

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

1. **Scans** all active markets for AI vs market price divergence
2. **Filters** to markets with edge above threshold (default 2%) and zero fees
3. **Checks** safeguards (flip-flop detection, existing positions)
4. **Sizes** using Kelly criterion, capped conservatively
5. **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:

1. **Install the Simmer SDK**
   ```bash
   pip install simmer-sdk
   ```

2. **Ask for Simmer API key**
   - They can get it from simmer.markets/dashboard → SDK tab
   - Store in environment as `SIMMER_API_KEY`

3. **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

```bash
# 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 list
- `GET /api/sdk/context/{market_id}` — Fee rate and safeguards per market
- `POST /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`.

「其他」分類下的熱門技能

Simmer.Markets 的其他技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。