技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.1.0
统计:⭐ 1 · 247 · 1 current installs · 1 all-time installs
⭐ 1
安装量(当前) 1
🛡 VirusTotal :良性 · OpenClaw :可疑
Package:0xjims/polymarket-sports-edge
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :可疑
OpenClaw 评估
The skill's claims (compare sportsbook lines to Polymarket and trade) line up with the requested credentials and network calls, but there are code/ docs inconsistencies, an apparent runtime bug, and a few undocumented environment behaviors that you should resolve before running with live credentials.
目的
Name/description match what the code and SKILL.md do: fetch odds from The Odds API, fetch Polymarket markets via Simmer, compare probabilities, and place buys via the Simmer SDK. Required env vars (SIMMER_API_KEY, THE_ODDS_API_KEY) are appropriate for that purpose and appear in clawhub.json.
说明范围
SKILL.md and the code mostly stay within scope (fetch odds, match markets, trade). However: (1) SKILL.md documents MIN_DIVERGENCE default as 0.08 (8%), while the code sets MIN_DIVERGENCE default to 0.05 (5%) — a meaningful mismatch for trading behavior. (2) The code reads API_TIMEOUT from env but this is not documented in SKILL.md. (3) The shipped sports_edge.py contains an apparent bug (uses variable 'a' / truncated logic where 'yes_team, no_…
安装机制
No arbitrary downloads or extract steps. clawhub.json lists pip dependencies (simmer-sdk, requests), which is reasonable and expected for this skill. There is no install script pulling code from untrusted hosts.
证书
Only the two API keys (SIMMER_API_KEY, THE_ODDS_API_KEY) are required — proportionate to the stated task. Important caution: the SIMMER_API_KEY likely grants the skill permission to place trades on the user's Polymarket venue account; that is expected but high-impact, so only provide a key with appropriate trust and limits. Optional envs (LIVE, MIN_DIVERGENCE, TRADE_AMOUNT, SPORTS, FUTURES) are reasonable. The undocumented API_TIMEOUT env is a…
持久
clawhub.json config includes a cron schedule and 'automaton.managed: true' with an entrypoint; the skill is intended to be run automatically (cron hourly). always:false (good). Autonomous execution plus an account-level SIMMER_API_KEY means the skill can perform trades on a schedule if LIVE is set; ensure LIVE remains unset (dry-run) until you've audited and tested the code.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Polymarket Sports Edge」。简介:Find odds divergence between sportsbook consensus and Polymarket sports markets…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/0xjims/polymarket-sports-edge/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: polymarket-sports-edge
description: Find odds divergence between sportsbook consensus and Polymarket sports markets, then trade the gap.
metadata:
author: "jim.sexton"
version: "1.0.0"
displayName: "Polymarket Sports Edge"
difficulty: "intermediate"
---
# Polymarket Sports Edge
> **This is a template.** The default signal compares sportsbook consensus odds
> against Polymarket prices and trades when divergence exceeds a threshold.
> Remix it — adjust the sports, threshold, sizing, or add your own filters
> (e.g., only trade NBA, require minimum volume, weight by recency).
## What It Does
Scans active Polymarket sports markets and compares prices against the
sportsbook consensus from The Odds API. When a market is mispriced relative
to sharp bookmaker lines, it buys the underpriced side.
**The edge:** Sportsbook lines are set by professional oddsmakers with billions
in handle — they're extremely well-calibrated. Polymarket sports markets are
thinner and less efficient. When they disagree, the books are usually right.
## How It Works
1. Fetch active sports markets from Simmer (`GET /api/sdk/markets?q=<sport>`)
2. Fetch current odds from The Odds API for the same sports
3. Match markets to games by comparing team names and dates
4. Calculate implied probability from the sportsbook consensus (average across all bookmakers)
5. Compare against the Polymarket price — if divergence exceeds the threshold, trade
6. Buy the underpriced side with reasoning logged
## Setup
### Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| `SIMMER_API_KEY` | Yes | Your Simmer API key |
| `THE_ODDS_API_KEY` | Yes | Free key from [the-odds-api.com](https://the-odds-api.com) (500 req/month free) |
| `MIN_DIVERGENCE` | No | Minimum probability gap to trade (default: `0.08` = 8%) |
| `TRADE_AMOUNT` | No | Amount per trade in venue currency (default: `10.0`) |
| `SPORTS` | No | Comma-separated Odds API sport keys (default: NBA, NFL, NHL, MLB, MMA, EPL, MLS) |
| `LIVE` | No | Set to `true` for real trades. Default is dry-run. |
### Get a Free Odds API Key
1. Go to [the-odds-api.com](https://the-odds-api.com)
2. Sign up for the free tier (500 requests/month)
3. Copy your API key
4. Set it: `export THE_ODDS_API_KEY=your_key_here`
## Running
```bash
# Dry run (default) — logs what it would trade
python sports_edge.py
# Live trading
LIVE=true python sports_edge.py
```
## Example Output
```
[Sports Edge] Scanning 3 sports...
[Sports Edge] NBA: Found 6 games with odds
[Sports Edge] Matched: "Will the Celtics win vs Pacers?" → Celtics vs Pacers (2026-03-05)
[Sports Edge] Polymarket YES: 0.58 | Sportsbook consensus: 0.69 | Divergence: +0.11
[Sports Edge] TRADE: Buying YES at 0.58 (edge: 11%) — 10.00 $SIM
[Sports Edge] NHL: Found 4 games with odds
[Sports Edge] No divergence above threshold.
[Sports Edge] Done. 1 trade executed, 0 skipped.
```