Polymarket 高概率到期狙击交易
简介
Polymarket 自动狙击,默认 dry-run,内置 safeguards,捕捉高赔率机会,适合高风险承受力用户。
原始描述
Near-expiry conviction trading on Polymarket. Snipe markets about to resolve when the odds are heavily skewed. Filter by topic, cap your bets, and only trade strong splits close to deadline.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
核心用法
Mert Sniper 是一款针对 Polymarket 预测市场的自动化到期狙击工具,核心策略是在市场即将结算前捕捉高置信度交易机会。其运作逻辑为:扫描活跃市场 → 筛选即将到期(默认2分钟内)的市场 → 检查赔率分裂度(默认60/40以上)→ 自动押注优势方 → 执行交易并报告。
关键配置参数:
SIMMER_MERT_FILTER: 市场过滤标签(如 solana、crypto)SIMMER_MERT_MAX_BET: 单笔最大投注额(默认$10)SIMMER_MERT_EXPIRY_MINS: 到期时间窗口(默认2分钟)SIMMER_MERT_MIN_SPLIT: 最小赔率分裂(默认0.60,即60/40)SIMMER_MERT_SIZING_PCT: 智能仓位比例(默认5%余额)
运行方式:python mert_sniper.py(模拟模式,默认)或 python mert_sniper.py --live(实盘交易)。
显著优点
- 策略来源可考:灵感来自 @mert 的公开策略,具备社区验证基础
- 零依赖安全架构:仅使用 Python 标准库,彻底消除供应链攻击风险
- 多重安全保障:默认 dry-run 模式、滑点检查、市场状态验证、翻转警告
- 灵活过滤机制:支持按话题标签精准定位目标市场
- 智能仓位管理:可选基于账户余额的百分比仓位控制
- API 通信安全:全程 HTTPS/TLS 加密,仅访问官方 Simmer API
潜在局限与风险
| 局限/风险 | 说明 |
|---|---|
| Polymarket 数据限制 | 15分钟加密市场的实际关闭时间嵌套在问题文本中,API 的 endDate 仅为事件级终日,需手动放宽 expiry 窗口 |
| 策略失效风险 | 近到期狙击属于时间敏感型策略,市场流动性和价格可能在最后几分钟剧烈波动 |
| API 密钥泄露风险 | 虽从环境变量读取,但若保管不当仍可被利用进行未授权交易 |
| 胜率依赖赔率质量 | 60/40分裂并非胜率保证,Polymarket 价格反映的是群体预期而非真实概率 |
| 无历史回测数据 | 技能未提供策略历史表现验证,依赖用户自行评估 |
适合人群
- 熟悉 Polymarket 交易机制的中高级用户
- 追求自动化执行、不愿时刻盯盘的策略交易者
- 具备风险承受能力、理解预测市场零和博弈本质的投机型用户
- 已拥有 Simmer API 密钥并完成身份验证的合规用户
常规风险警示
⚠️ 资金风险:使用 --live 模式将动用真实 USDC 进行交易,模拟模式不会阻止您因策略失效而亏损。
⚠️ 时间窗口敏感:2分钟到期窗口极短,网络延迟或 API 响应慢可能导致错过最佳价格或无法成交。
⚠️ 黑天鹅事件:即使 72/28 的赔率分裂也可能因突发事件瞬间逆转,"强分裂"≠"确定性"。
⚠️ 平台依赖:Simmer API 或 Polymarket 服务中断将直接影响策略执行,无备用交易路径。
⚠️ 合规提示:预测市场在某些司法管辖区受限,用户需自行确认本地法规合规性。
技能正文
name: polymarket-mert-sniper displayName: Mert Sniper description: Near-expiry conviction trading on Polymarket. Snipe markets about to resolve when the odds are heavily skewed. Filter by topic, cap your bets, and only trade strong splits close to deadline. metadata: {"clawdbot":{"emoji":"🎯","requires":{"env":["SIMMER_API_KEY"]},"cron":null,"autostart":false}} authors:
- Simmer (@simmer_markets) attribution: "Strategy inspired by @mert — https://x.com/mert/status/2020216613279060433" version: "1.0.3" published: true
Mert Sniper
Near-expiry conviction trading on Polymarket. Snipe markets about to resolve when the odds are heavily skewed.
Strategy by @mert — filter by topic, cap your bets, wait until near expiry, and only trade strong splits.
When to Use This Skill
Polymarket only. All trades execute on Polymarket with real USDC. Use
--livefor real trades, dry-run is the default.
Use this skill when the user wants to:
- Trade markets that are about to resolve (last-minute conviction bets)
- Filter by topic (e.g. only SOL/crypto markets)
- Cap bet size (e.g. never more than $10)
- Only trade when odds are strongly skewed (e.g. 60/40 or better)
- Run an automated expiry-sniping strategy
Setup Flow
-
Ask for Simmer API key
- Get it from simmer.markets/dashboard -> SDK tab
- Store in environment as
SIMMER_API_KEY
-
Ask about settings (or confirm defaults)
- Market filter: Which markets to scan (default: all)
- Max bet: Maximum per trade (default $10)
- Expiry window: How close to resolution (default 2 minutes)
- Min split: Minimum odds skew (default 60/40)
-
Save settings to config.json or environment variables
Configuration
| Setting | Environment Variable | Default | Description |
|---|---|---|---|
| Market filter | SIMMER_MERT_FILTER |
(all) | Tag or keyword filter (e.g. solana, crypto) |
| Max bet | SIMMER_MERT_MAX_BET |
10.00 | Maximum USD per trade |
| Expiry window | SIMMER_MERT_EXPIRY_MINS |
2 | Only trade markets resolving within N minutes |
| Min split | SIMMER_MERT_MIN_SPLIT |
0.60 | Only trade when YES or NO >= this (e.g. 0.60 = 60/40) |
| Max trades/run | SIMMER_MERT_MAX_TRADES |
5 | Maximum trades per scan cycle |
| Smart sizing % | SIMMER_MERT_SIZING_PCT |
0.05 | % of balance per trade |
Quick Commands
# Check account balance and positions
python scripts/status.py
# Detailed position list
python scripts/status.py --positions
API Reference:
- Base URL:
https://api.simmer.markets - Auth:
Authorization: Bearer $SIMMER_API_KEY - Portfolio:
GET /api/sdk/portfolio - Positions:
GET /api/sdk/positions
Running the Skill
# Dry run (default -- shows opportunities, no trades)
python mert_sniper.py
# Execute real trades
python mert_sniper.py --live
# Filter to specific markets
python mert_sniper.py --filter solana
# Custom expiry window (5 minutes)
python mert_sniper.py --expiry 5
# With smart position sizing (uses portfolio balance)
python mert_sniper.py --live --smart-sizing
# Check positions only
python mert_sniper.py --positions
# View config
python mert_sniper.py --config
# Disable safeguards (not recommended)
python mert_sniper.py --no-safeguards
How It Works
Each cycle the script:
- Fetches active markets from Simmer API (optionally filtered by tag/keyword)
- Filters to markets resolving within the expiry window (default 2 minutes)
- Checks the price split -- only trades when one side >= min_split (default 60%)
- Determines direction: backs the favored side (higher probability)
- Safeguards: Checks context for flip-flop warnings, slippage, market status
- Execution: Places trade on the favored side, capped at max bet
- Reports summary of scanned, filtered, and traded markets
Example Output
🎯 Mert Sniper - Near-Expiry Conviction Trading
==================================================
[DRY RUN] No trades will be executed. Use --live to enable trading.
Configuration:
Filter: solana
Max bet: $10.00
Expiry window: 2 minutes
Min split: 60/40
Max trades: 5
Smart sizing: Disabled
Safeguards: Enabled
Fetching markets (filter: solana)...
Found 12 active markets
Markets expiring within 2 minutes: 2
SOL highest price on Feb 10?
Resolves in: 1m 34s
Split: YES 72% / NO 28%
Side: YES (72% >= 60%)
[DRY RUN] Would buy $10.00 on YES
Summary:
Markets scanned: 12
Near expiry: 2
Strong split: 1
Trades executed: 0
[DRY RUN MODE - no real trades executed]
Troubleshooting
"No markets found"
- Check your filter -- try without a filter first
- Markets may not be available (check simmer.markets)
"No markets expiring within window"
- Increase expiry window:
--expiry 10(10 minutes) - Or run more frequently (cron every minute)
"Split too narrow"
- Lower the min split:
--set min_split=0.55 - This trades more often but with less conviction
"Resolves in: 17h" on 15-min markets
- Polymarket's
endDateis the event-level end-of-day, not the individual market close time - For 15-min crypto markets (e.g. "BTC Up or Down - Feb 8, 11PM ET"), the actual close time is in the question text but not in the API
- This is a Polymarket data limitation — widen the expiry window (
--expiry 1080) as a workaround, or use the split filter to find conviction opportunities regardless of timing
"API key invalid"
- Get new key from simmer.markets/dashboard -> SDK tab
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。