Xpersona
P

Polymarket

CLAWHUB · Unverified

This skill should be used when the user wants to query real-time data from Polymarket (https://polymarket.com/), including market categories, trending market...

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s175x3pfx5fnahtt36c088xke984q9v6:polymarket-query
  1. Install using `clawhub skill install s175x3pfx5fnahtt36c088xke984q9v6:polymarket-query` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/amurtiger01/polymarket-query before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-amurtiger01-polymarket-query/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

130,276 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: polymarket-query
version: 1.6.1
description: >
  This skill should be used when the user wants to query real-time data from Polymarket
  (https://polymarket.com/), including market categories, trending markets, event details,
  market odds/prices, live/in-play sports markets, and search for specific prediction markets
  across all categories such as sports, politics, crypto, business, entertainment, and more.
  It provides access to Polymarket's public Gamma API and CLOB API for real-time odds,
  volumes, and market information.
metadata:
  openclaw:
    slug: polymarket-query
    requires:
      bins:
        - python
    primaryEnv: ""
    homepage: "https://github.com/Amurtiger01/polymarket-skill"
---

# Polymarket Real-time Query Skill

## Purpose

Query real-time prediction market data from Polymarket, including:
- Sports metadata, series, and tournament brackets
- Current odds/prices for any market
- Trending and most actively traded markets
- Live/in-play sports markets
- Search for specific markets by keyword
- Detailed event and market information with sub-markets

## When to Use

Use this skill when the user asks about:
- Polymarket markets, odds, or predictions
- Current betting odds for events (sports, politics, crypto, etc.)
- Live or in-play markets
- Trending prediction markets
- Specific market or event details on Polymarket
- Tournament brackets (March Madness, World Cup)
- Sports series information (NFL, NBA, MLB seasons)
- Prediction market probabilities for real-world events

## How to Use

### Primary Tool: Python Query Script

Execute the bundled Python script `scripts/polymarket_query.py` to query Polymarket data:

```bash
python "<skill_dir>/scripts/polymarket_query.py" <command> [options]
```

A PowerShell version (`scripts/polymarket_query.ps1`) is available in the [GitHub repository](https://github.com/Amurtiger01/polymarket-skill) but is not included in the ClawHub package due to file type restrictions.

### Schedule Sport Keywords

When using the `schedule` command, supported sport keywords are:
- `nba`, `basketball` → NBA
- `nfl`, `football` → NFL
- `mlb`, `baseball` → MLB
- `nhl`, `hockey` → NHL
- `soccer`, `epl`, `premierleague` → English Premier League (soccer also covers all soccer leagues + World Cup + UEFA tournaments)
- `laliga` → La Liga
- `ligue1` → Ligue 1
- `ucl`, `championsleague` → UEFA Champions League
- `uel`, `europaleague` → UEFA Europa League
- `ueu`, `europaconference` → UEFA Conference League
- `worldcup`, `fifaworldcup`, `fifawc`, `fifa`, `wc`, `fifwc` → FIFA World Cup (slug prefix `fifwc-`)
- `mls` → MLS
- `atp`, `tennis` → ATP Tennis
- `wta` → WTA Tennis
- `ufc`, `mma` → UFC/MMA
- `cs2`, `csgo` → Counter-Strike 2
- `lol`, `leagueoflegends` → League of Legends
- `f1`, `racing` → Formula 1
- `pga`, `golf` → PGA Golf
- `boxing` → Boxing
- `cricket` → Cricket

> **Soccer note**: The `soccer` keyword maps to multiple league prefixes (`epl`, `lal`, `serie`, `bundes`, `ligue`, `fifwc`, `ucl`

README.md

# Polymarket Real-time Query Skill

Query real-time prediction market data from [Polymarket](https://polymarket.com/) — odds, trending markets, sports schedules, live events, and more.

## Features

- **Sports Schedules** — NBA, NFL, MLB, NHL, EPL, La Liga, UCL, MLS, ATP, WTA, UFC, LOL, CS2, F1, PGA, Boxing, Cricket
- **Real-time Odds** — Current prices/probabilities for any market
- **Trending Markets** — Top markets by 24h volume across all categories
- **Live/In-Play** — Currently active sports markets
- **Market Search** — Find markets by keyword across sports, politics, crypto, etc.
- **Event Details** — Full event breakdowns with sub-markets (spreads, O/U, props)
- **Sports Metadata** — Browse 306 sports entries (leagues, image, resolution sources)
- **Series Data** — NFL/NBA/MLB series information with nested events
- **Tournament Brackets** — March Madness, World Cup with phases/sections/games

## Quick Start

### Python (cross-platform)

```bash
python polymarket_query.py trending --limit 10
python polymarket_query.py schedule --sport nba --date 2026-04-12
python polymarket_query.py search Bitcoin
python polymarket_query.py market 540816
python polymarket_query.py categories
python polymarket_query.py tournaments
python polymarket_query.py series --limit 20
```

### PowerShell (Windows)

```powershell
.\polymarket_query.ps1 -Command trending -Limit 10
.\polymarket_query.ps1 -Command schedule -Sport nba -Date 2026-04-12
.\polymarket_query.ps1 -Command search -Keyword "Bitcoin" -Limit 5
.\polymarket_query.ps1 -Command market -Id 540816
```

## Commands

| Command | Parameters | Description |
|---------|-----------|-------------|
| `categories` | — | List sports metadata & popular tags (uses `/sports` + `/tags`) |
| `sports-meta` | `--limit N` | List sports metadata from `/sports` endpoint (306 entries) |
| `series` | `--limit N` | List series (NFL/NBA/MLB/etc.) from `/series` |
| `tournaments` | `--limit N` | List tournaments (March Madness, World Cup) with brackets |
| `trending` | `--limit N` | Top trending markets by 24h volume |
| `search` | `<keyword>` `--limit N` | Search markets by keyword |
| `market` | `<market_id>` | Detailed market info with odds |
| `event` | `<event_id>` | Event with all sub-markets |
| `odds` | `<market_id>` | Focused odds for a market |
| `sports` | `--limit N` | Sports markets |
| `politics` | `--limit N` | Politics markets |
| `crypto` | `--limit N` | Crypto markets |
| `category` | `<slug>` `--limit N` | Markets in a category |
| `live` | `--limit N` | Live/in-play sports markets |
| `schedule` | `--sport X` `--date YYYY-MM-DD` | Sports schedule by sport & date |

> **Note**: All `--limit N` arguments can also be passed as a bare positional integer
> (e.g., `trending 5` works the same as `trending --limit 5`) for backward compatibility.

## Supported Sports

| Keyword | League | Keyword | League |
|---------|--------|---------|--------|
| `nba` / `basketball` | NBA | `ufc` / `mma` | UFC/MMA |
| `nfl` / `f

_meta.json

{
  "ownerId": "kn74yqvqr8gy2c7yr0n4yg1kv584p8mw",
  "slug": "polymarket-query",
  "version": "1.6.1",
  "publishedAt": 1783587948165
}

references/api_reference.md

# Polymarket API Reference

## Base URLs

| API | Base URL | Purpose |
|-----|----------|---------|
| Gamma API | `https://gamma-api.polymarket.com` | Markets, events, sports metadata, series, tournaments |
| CLOB API | `https://clob.polymarket.com` | Order book, prices, trading data |

## API Change Notes (July 2026)

The Polymarket Gamma API has changed significantly. Key changes:
- **REMOVED**: `/categories` endpoint (HTTP 404) — use `/sports` + `/tags` instead
- **REMOVED**: `/leagues`, `/countries`, `/competitions`, `/fixtures`, `/matches` endpoints
- **NEW**: `/sports` — sports metadata (306 entries: sport slug, image, resolution source, series ID, tag IDs)
- **NEW**: `/series` — series data (NFL, NBA, MLB, etc.) with nested events
- **NEW**: `/tournaments` — tournament data (March Madness, World Cup) with phases/sections/games
- **NEW**: `/tags` — tag list (player/team/topic tags)
- **CHANGED**: Event `tags` field is now an array of objects `{id, label, slug, forceShow, ...}` (was string)
- **CHANGED**: `gameStartTime` is now only present at the **market** level for game markets (not at the event level)
- **CHANGED**: The `category` query parameter on `/markets` still works but may return loosely-related markets (e.g., World Cup props appear under `category=sports` and `category=politics`). Tag-based filtering via `/markets?tag=<slug>` is more precise but returns smaller result sets.

## Key Endpoints

### Categories / Metadata (updated)
- `GET /sports?limit=N` — List sports metadata (replaces `/categories`)
- `GET /series?limit=N&active=true` — List series (NFL/NBA/etc.)
- `GET /tournaments?limit=N` — List tournaments (March Madness, World Cup)
- `GET /tags?limit=N` — List tags (players, teams, topics)

### Markets
- `GET /markets?limit=N&active=true&closed=false&order=volume24hr&ascending=false` — Active markets sorted by volume
- `GET /markets/{id}` — Single market details
- `GET /markets?category={slug}` — Markets by category (note: results may be loose)
- `GET /markets?tag={slug_or_id}` — Markets by tag (more precise than category)
- `GET /markets?event_id={id}` — Markets belonging to an event
- `GET /markets?slug={slug}` — Market by slug

### Events
- `GET /events?limit=N&active=true&closed=false` — List events
- `GET /events/{id}` — Event with sub-markets
- `GET /events?slug={slug}` — Event by slug

### CLOB (Order Book)
- `GET /book?token_id={tokenId}` — Order book for a token
- `GET /midpoint?token_id={tokenId}` — Midpoint price (requires valid token_id)
- `GET /spread?token_id={tokenId}` — Current spread
- `GET /price?token_id={tokenId}&side={buy|sell}` — Price for a side
- `GET /markets` — CLOB markets list

## Removed Endpoints (do not use)
- ~~`GET /categories`~~ — Returns HTTP 404
- ~~`GET /leagues`~~ — Returns HTTP 404
- ~~`GET /countries`~~ — Returns HTTP 404
- ~~`GET /competitions`~~ — Returns HTTP 404
- ~~`GET /fixtures`~~ — Returns HTTP 404
- ~~`GET /matches`~~ — Returns HTTP 404
- ~~`GET /tickers` (CLOB)~~ — Returns HTT

skill-card.md

## Description:

This skill helps an agent query Polymarket public APIs for prediction-market odds, market details, trending markets, sports schedules, live or in-play markets, series, tournaments, and event data.

This skill is ready for commercial/non-commercial use.

## Publisher:

[amurtiger01](https://clawhub.ai/user/amurtiger01)

### License/Terms of Use:

MIT-0

## Use Case:

External users, developers, and analysts use this skill to look up public Polymarket market data, including implied probabilities, volumes, schedules, event details, and current prices. It is suited for answering market-data questions, not for placing trades or providing financial advice.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Queries send Polymarket search terms, market IDs, event IDs, and selected topics to Polymarket public APIs.

Mitigation: Avoid using the skill for private or sensitive intent; use it only for public market lookup questions.

Risk: Prediction-market prices are market-implied probabilities that can change quickly and may be delayed by seconds to minutes.

Mitigation: Present results as current market data, include timing context when useful, and verify important real-world claims against primary sources.

Risk: The skill does not provide a real-time score feed, and server security guidance notes that one live-market command appears to have a Python bug.

Mitigation: Use sports-specific sources for live scores and validate live-market command output before relying on it.

## Reference(s):

- [Polymarket API Reference](references/api_reference.md)
- [ClawHub Skill Page](https://clawhub.ai/amurtiger01/skills/polymarket-query)
- [Project Homepage](https://github.com/Amurtiger01/polymarket-skill)
- [Polymarket](https://polymarket.com/)
- [Polymarket Gamma API](https://gamma-api.polymarket.com)
- [Polymarket CLOB API](https://clob.polymarket.com)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, guidance]

**Output Format:** [Markdown prose with summarized command output and optional inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [The bundled query scripts print human-readable market, odds, schedule, sports metadata, series, and tournament results from public API responses.]

## Skill Version(s):

1.6.1 (source: frontmatter and server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Polymarket and adjacent AI workflows.