Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aaaaqwq avatar

Polymarket

  • 17 installs
  • 82 repo stars
  • Updated August 2, 2026
  • aaaaqwq/claude-code-skills

polymarket is a Claude Code skill that queries Polymarket prediction markets for odds, prices, portfolios, and trading.

About

This skill queries Polymarket prediction markets for live odds, prices, order books, events, and search results, treating prices as implied probabilities. A developer uses it to answer market-sentiment or win-probability questions and, with the Polymarket CLI and a wallet, to read portfolios, leaderboards, and place trades. Core read commands work without auth; advanced portfolio, analytics, and trading commands require the CLI binary and a private key.

  • Fetches Polymarket prediction-market odds, prices, order books, and events
  • Adds portfolio analytics, leaderboards, and on-chain trading via the Polymarket CLI
  • Core read commands need no auth; trading needs a configured wallet

Polymarket by the numbers

  • 17 all-time installs (skills.sh)
  • Ranked #731 of 1,106 Finance & Trading skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
At a glance

polymarket capabilities & compatibility

Core read commands are free with no auth; trading requires a funded wallet (USDC) and private key.

Capabilities
market data · portfolio analysis · trading
Use cases
trading · data analysis
Pricing
Bring your own API key
From the docs

What polymarket says it does

Polymarket prediction markets — live odds, prices, order books, events, series, market search, leaderboards, portfolio analytics, trading, and on-chain operations.
SKILL.md
**Prices are probabilities.** A price of 0.65 means 65% implied probability. No conversion needed.
SKILL.md
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill polymarket

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs17
repo stars82
Last updatedAugust 2, 2026
Repositoryaaaaqwq/claude-code-skills

What it does

Query Polymarket prediction markets for odds and probabilities, or trade on-chain via the CLI and a wallet.

Who is it for?

Reading prediction-market odds and probabilities, and on-chain trading

Skip if: Actual match results, scores, or historical sports statistics

When should I use this skill?

A user asks about prediction markets, betting odds, win probabilities, or market sentiment

What you get

Market probabilities, portfolio analytics, leaderboards, or placed orders from Polymarket.

  • market odds and probabilities
  • portfolio analytics
  • placed orders

By the numbers

  • 11 core commands need no auth
  • 30+ CLI commands

Files

SKILL.mdMarkdownGitHub ↗

Polymarket — Sports Prediction Markets

Quick Start

Prefer the CLI — it avoids Python import path issues:

sports-skills polymarket get_sports_markets --limit=20
sports-skills polymarket search_markets --query="NBA Finals"

Python SDK (alternative):

from sports_skills import polymarket

markets = polymarket.get_sports_markets(limit=20)
prices = polymarket.get_market_prices(token_id="abc123")

Prerequisites

Core commands (11 commands) work out of the box — no dependencies, no API keys.

CLI commands (30+ commands) require the Polymarket CLI binary:

pip install sports-skills[polymarket]

Or via Homebrew:

brew tap Polymarket/polymarket-cli https://github.com/Polymarket/polymarket-cli
brew install polymarket

Trading commands additionally require a configured wallet. Three options:

# Option 1 — environment variable
export POLYMARKET_PRIVATE_KEY=0x...
# Option 2 — Python SDK (per-session)
from sports_skills import polymarket
polymarket.configure(private_key="0x...")
# Option 3 — CLI config file (persists across sessions)
polymarket wallet import <private-key>
polymarket approve set

If a CLI command returns "polymarket CLI not installed", install with pip install sports-skills[polymarket].

Important Notes

  • Prices are probabilities. A price of 0.65 means 65% implied probability. No conversion needed.
  • `token_id` vs `market_id`: Price and orderbook endpoints require the CLOB token_id, not the Gamma market_id. Always call get_market_details first to get clobTokenIds.
  • `search_markets` matches event titles, not sport categories. Use specific league names ("Premier League", "Champions League"), not generic terms ("soccer", "football").
  • `cli_search_markets` is a more powerful full-text search via the CLI binary. Use it when search_markets returns no results.
  • Before complex fetches, run the parameter validator: bash scripts/validate_params.sh <command> [args]

For detailed reference data, see the files in the `references/` directory.

Workflows

Workflow: Live Odds Check

1. search_markets --query="<league/event name>" 2. get_market_details --market_id=<id> to get CLOB token IDs. 3. get_market_prices --token_id=<id> 4. Present probabilities.

Workflow: Event Overview

1. get_sports_events --active=true 2. Pick event, then get_event_details --event_id=<id>. 3. For each market, get prices.

Workflow: Price Trend Analysis

1. Find market via search_markets. 2. get_market_details for token_id. 3. get_price_history --token_id=<id> --interval=1w 4. Present price movement.

Workflow: Portfolio Analysis (requires CLI)

1. get_positions --address=<wallet> — open positions 2. get_portfolio_value --address=<wallet> — total value 3. get_trade_history --address=<wallet> --limit=20 — recent trades 4. get_activity --address=<wallet> — full activity feed

Workflow: Market Analytics (requires CLI)

1. get_holders --condition_id=<id> — who holds positions 2. get_open_interest --condition_id=<id> — total interest 3. get_volume --event_id=<id> — volume data

Workflow: Leaderboard (requires CLI)

1. get_leaderboard --period=week --order_by=pnl --limit=20 2. get_profile --address=<top_trader_address> — inspect top traders

Workflow: Trading (requires CLI + wallet)

1. get_balance --asset_type=collateral — check USDC balance 2. cli_search_markets --query="NBA" — find markets 3. get_market_details --market_id=<id> — get token_id 4. create_order --token_id=<id> --side=buy --price=0.55 --size=10 5. get_orders — verify order placed 6. cancel_order --order_id=<id> — cancel if needed

Commands Reference

Core Commands (no CLI needed)

CommandRequiredOptionalDescription
get_sports_marketslimit, offset, sports_market_types, game_id, active, closed, order, ascendingBrowse sports markets
get_sports_eventslimit, offset, active, closed, order, ascending, series_idBrowse sports events
get_serieslimit, offsetList series (leagues)
get_market_detailsmarket_id, slugSingle market details
get_event_detailsevent_id, slugSingle event details
get_market_pricestoken_id, token_idsCurrent CLOB prices
get_order_booktoken_idFull order book
get_sports_market_typesValid market types
search_marketsquery, sports_market_types, tag_id, limitSearch by keyword
get_price_historytoken_idinterval, fidelityHistorical prices
get_last_trade_pricetoken_idMost recent trade

CLI Commands: Data & Analytics

CommandRequiredOptionalDescription
get_leaderboardperiod, order_by, limitTrader leaderboard
get_positionsaddressOpen positions
get_closed_positionsaddressClosed positions
get_portfolio_valueaddressPortfolio value
get_trade_historyaddresslimitTrade history
get_activityaddressActivity feed
get_holderscondition_idMarket position holders
get_open_interestcondition_idOpen interest
get_volumeevent_idVolume data
get_tradedaddressMarkets traded

CLI Commands: Search, Tags & Discovery

CommandRequiredOptionalDescription
cli_search_marketsquerylimitFull-text search (CLI)
get_tagslimitList all tags
get_tagtagTag details
get_related_tagstagRelated tags

CLI Commands: Comments & Profiles

CommandRequiredOptionalDescription
get_commentsentity_type, entity_idComments on entity
get_commentcomment_idSingle comment
get_user_commentsaddressComments by user
get_profileaddressPublic profile

CLI Commands: Sports Metadata

CommandRequiredOptionalDescription
cli_sports_listList sports
cli_sports_teamsleaguelimitTeams by league

CLI Commands: CLOB Extras

CommandRequiredOptionalDescription
get_tick_sizetoken_idMinimum tick size
get_fee_ratetoken_idFee rate

CLI Commands: Trading (requires wallet)

CommandRequiredOptionalDescription
create_ordertoken_id, side, price, sizeorder_typePlace limit order
market_ordertoken_id, side, amountPlace market order
cancel_orderorder_idCancel order
cancel_all_ordersCancel all orders
get_balanceasset_type, token_idWallet balance
get_ordersmarketOpen orders
get_user_tradesYour trades

CLI Commands: On-Chain (requires wallet)

CommandRequiredOptionalDescription
ctf_splitcondition_id, amountSplit USDC to YES/NO
ctf_mergecondition_id, amountMerge YES/NO to USDC
ctf_redeemcondition_idRedeem winning tokens
approve_checkaddressCheck approvals
approve_setApprove contracts

Examples

User: "Who's favored to win the NBA Finals?" 1. Call search_markets(query="NBA Finals", sports_market_types="moneyline") 2. Get token_id from the market details 3. Call get_market_prices(token_id="...") for current odds 4. Present teams with implied probabilities (price = probability)

User: "Who will win the Premier League?" 1. Call search_markets(query="English Premier League") -- use full league name 2. Sort results by Yes outcome price descending 3. Present teams with implied probabilities (price = probability)

User: "Show me Champions League odds" 1. Call search_markets(query="Champions League") 2. Present top contenders with prices, volume, and liquidity

User: "Show me the Polymarket leaderboard" 1. Call get_leaderboard(period="week", order_by="pnl", limit=20) 2. Present traders with rank, username, PnL, and volume

User: "What positions does this wallet hold?" 1. Call get_positions(address="0x...") 2. Present positions with outcome, size, avg price, current value, PnL

User: "Buy 10 shares of YES on this market" 1. Call get_market_details(market_id="...") to get token_id 2. Call create_order(token_id="...", side="buy", price="0.55", size="10") 3. Call get_orders() to confirm

Error Handling & Fallbacks

  • If search returns 0 results, try full league names ("English Premier League" not "EPL", "Champions League" not "CL"). search_markets matches event titles.
  • If get_market_prices fails, you likely used market_id instead of token_id. Always call get_market_details first to get CLOB token_id.
  • If prices seem stale, check get_last_trade_price for the most recent trade. Low-liquidity markets may have wide spreads.
  • If a CLI command returns "polymarket CLI not installed", the command requires the Rust binary. The original 11 commands work without the CLI.
  • If a trading command fails with an auth error, ensure a wallet is configured: polymarket wallet create && polymarket approve set.
  • Never fabricate odds or probabilities. If no market exists, state so.

Related skills

FAQ

Do I need an API key or CLI?

Core commands (11) work with no auth; 30+ advanced commands require the Polymarket CLI binary, and trading also needs a configured wallet.

How do I read prices?

Prices are probabilities: a price of 0.65 means 65% implied probability, no conversion needed.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.