Polymarket API

Query Polymarket prediction markets. Use for questions about prediction markets, betting odds, market prices, event probabilities, or when user asks about Polymarket data.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
16 · 6.4k · 58 current installs · 60 all-time installs
byDanny Shmueli@dannyshmueli
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the implementation: the script queries Polymarket's public API endpoints (/markets, /events) and formats market data. No unrelated capabilities, binaries, or credentials are requested.
Instruction Scope
SKILL.md and the script limit actions to fetching and displaying public API data from gamma-api.polymarket.com. The instructions do not read local files, environment secrets, or send data to any unexpected endpoints.
Install Mechanism
No install spec; the skill is instruction + a small Python script. No downloads or archive extraction occur. Risk from install mechanism is minimal.
Credentials
No environment variables, credentials, or config paths are required. The skill only needs network access to the public Polymarket API, which aligns with its purpose.
Persistence & Privilege
always is false and the skill does not request persistent privileges or modify other skills or system settings. Autonomous invocation is allowed (platform default) but not by itself a concern here.
Assessment
This skill is a lightweight, read-only Polymarket client that makes HTTPS requests to gamma-api.polymarket.com and prints results. It does not request credentials or write files. Before installing, confirm you trust outbound network access to that domain (the script will perform live API calls). Also note this tool relies on the public API responses — results reflect Polymarket data and may change; there are no hidden endpoints or exfiltration behaviors in the provided code.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk97cypak5m1j38dd5p1cp6fnc5800exp

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Polymarket

Query prediction market data from Polymarket's public API (no auth required).

Quick Start

# Top markets by 24h volume
python3 scripts/polymarket.py --top

# Search markets
python3 scripts/polymarket.py --search "trump"

# Get specific market by slug
python3 scripts/polymarket.py --slug "will-trump-win-the-2024-election"

# List events (grouped markets)
python3 scripts/polymarket.py --events

Script Location

skills/polymarket/scripts/polymarket.py

API Endpoints

The script uses gamma-api.polymarket.com:

  • /markets - Individual markets with prices, volumes
  • /events - Event groups containing related markets

Output Format

Markets show: question, Yes/No prices (as percentages), 24h volume, total volume.

Interpreting Prices

  • outcomePrices are 0-1 representing probability
  • Price of 0.65 for "Yes" = market thinks 65% chance of Yes
  • Higher volume = more liquid, more reliable signal

Files

2 total
Select a file
Select a file to preview.

Comments

Loading comments…