Polymarket Mert Sniper
by @simmer
Near-expiry conviction trading on Polymarket. The skill scans markets in their final minutes, filters for strongly-skewed splits (60/40+), and places bounded...
clawhub install polymarket-mert-sniperπ About This Skill
name: polymarket-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: author: Simmer (@simmer_markets) version: "1.2.2" displayName: Mert Sniper difficulty: advanced attribution: Strategy inspired by @mert β https://x.com/mert/status/2020216613279060433
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.
> This is a template. The default logic (expiry + split filter) gets you started β remix it with your own filters, timing rules, or market selection criteria. The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.
When to Use This Skill
> Polymarket only. All trades execute on Polymarket with real USDC. Use --live for real trades, dry-run is the default.
Use this skill when the user wants to:
Setup Flow
1. Install the Simmer SDK
pip install simmer-sdk
2. Ask for Simmer API key
- 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
4. 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)
5. 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.pyDetailed position list
python scripts/status.py --positions
API Reference:
https://api.simmer.marketsAuthorization: Bearer $SIMMER_API_KEYGET /api/sdk/portfolioGET /api/sdk/positionsRunning the Skill
# Dry run (default -- shows opportunities, no trades)
python mert_sniper.pyExecute real trades
python mert_sniper.py --liveFilter to specific markets
python mert_sniper.py --filter solanaCustom expiry window (5 minutes)
python mert_sniper.py --expiry 5With smart position sizing (uses portfolio balance)
python mert_sniper.py --live --smart-sizingCheck positions only
python mert_sniper.py --positionsView config
python mert_sniper.py --configDisable safeguards (not recommended)
python mert_sniper.py --no-safeguards
How It Works
Each cycle the script: 1. Fetches active markets from Simmer API (optionally filtered by tag/keyword) 2. Filters to markets resolving within the expiry window (default 2 minutes) 3. Checks the price split -- only trades when one side >= min_split (default 60%) 4. Determines direction: backs the favored side (higher probability) 5. Safeguards: Checks context for flip-flop warnings, slippage, market status 6. Execution: Places trade on the favored side, capped at max bet 7. 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"
"No markets expiring within window"
--expiry 10 (10 minutes)"Split too narrow"
--set min_split=0.55"Resolves in: 17h" on 15-min markets
endDate is the event-level end-of-day, not the individual market close time--expiry 1080) as a workaround, or use the split filter to find conviction opportunities regardless of timing"External wallet requires a pre-signed order"
WALLET_PRIVATE_KEY is not set in the environmentexport WALLET_PRIVATE_KEY=0x"Balance shows $0 but I have funds on Polygon"
"API key invalid"
βοΈ 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 |
π Tips & Best Practices
"No markets found"
"No markets expiring within window"
--expiry 10 (10 minutes)"Split too narrow"
--set min_split=0.55"Resolves in: 17h" on 15-min markets
endDate is the event-level end-of-day, not the individual market close time--expiry 1080) as a workaround, or use the split filter to find conviction opportunities regardless of timing"External wallet requires a pre-signed order"
WALLET_PRIVATE_KEY is not set in the environmentexport WALLET_PRIVATE_KEY=0x"Balance shows $0 but I have funds on Polygon"
"API key invalid"