Polymarket

v0.2.1
io.github.pipeworx-io/polymarket Checked 1 day ago Published 27 days ago

Polymarket MCP — prediction-market data via Gamma + CLOB + Data public APIs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

polymarket_top_markets

Highest-volume OPEN Polymarket markets right now — sorted by trading volume in the chosen window (24hr / 1wk / 1mo / 1yr / all). The "where is real money going this week" lens. Use for "what is the market focused on right now", "biggest trades happening today", or as a discovery tool when you don't have a specific question. Each result has live yes/no prices in [0,1] = implied probability.

ParameterTypeDescription
limitnumber1–100 per page (default 10)
offsetnumberPagination offset into the volume-ranked list (default 0). Use offset=100 (with limit=100) to fetch ranks 101–200, offset=200 for 201–300, etc. — walk the pages to build a true top-N-by-volume s…
windowstring24hr | 1wk | 1mo | 1yr | all (default 24hr)

polymarket_market

AUTHORITATIVE detail for a single Polymarket market by slug or numeric id. Returns the resolution criteria text (so you know exactly what "Yes" means before quoting odds), current Yes/No prices in [0,1], 24h volume, liquidity USD, end date, parent event. Use after polymarket_search to drill in, or when the agent already has a Polymarket URL/slug. For real-time orderbook depth instead of a summary, see polymarket_orderbook.

ParameterTypeDescription
slug_or_id *stringMarket slug (e.g. "will-bitcoin-hit-150k-by-december-31-2027") or numeric id. A dated slug still resolves after it settles — this tool automatically retries a closed-market lookup when the bare look…

polymarket_event

Get a Polymarket event with EVERY child market at once. Events group RELATED outcomes (e.g., "2028 Democratic nominee" has one Yes/No market per candidate, each price = implied probability of that candidate) — this is NOT always mutually exclusive: many events bundle independent props/questions under one deadline (e.g. per-senator vote markets) where multiple legs can resolve YES together. Check the returned `neg_risk` field (event- and market-level) before assuming the child markets sum to ~1 — only `neg_risk: true` means Polymarket has verified exclusivity. Use when you need the full sla…

ParameterTypeDescription
slug_or_id *stringEvent slug (e.g. "2028-presidential-election") or numeric id

polymarket_price_history

Historical probability time-series for one Polymarket market. Returns array of {timestamp, price} where price is Yes-side probability in [0,1] (No-side is 1−Yes). Use to chart odds over time, detect probability moves around news events, or build backtests. Intervals 1h | 6h | 1d | 1w | 1m | max — supports up to a month (1m) and full history (max). A young market may have less data than the requested window; the `coverage` field reports the actual span and whether it is the full available history (a data limit, not a tool limit).

ParameterTypeDescription
slug_or_id *stringMarket slug or numeric id (same as polymarket_market)
endstringISO datetime or epoch seconds. Requires `start`.
intervalstring1h | 6h | 1d | 1w | 1m | max (default 1d). Higher fidelity for shorter windows. Intervals are measured back from NOW, so a market that closed more than an interval ago returns nothing -- use start/end…
startstringISO datetime or epoch seconds. With `end`, reads exactly [start, end] at the interval's fidelity instead of the last `interval` back from now -- the way to read a market that has already closed.

polymarket_orderbook

REAL-TIME CLOB orderbook for one Polymarket market — bid/ask ladder on both YES and NO sides with size at each price level. Use to check actual tradable depth before quoting a size estimate; the `liquidity` field on polymarket_market is a rolled-up summary, this is the actual ladder. Returns yes_bids[], yes_asks[], no_bids[], no_asks[] each as [price, size] pairs sorted from inside the book outward. Necessary input before any "you could buy $X at price Y" answer — without depth that's a guess.

ParameterTypeDescription
slug_or_id *stringMarket slug or numeric id

polymarket_event_books

Batched CLOB orderbooks for EVERY tradable market in one Polymarket event — single round trip via the CLOB batch /books endpoint. Use before any multi-leg strategy (partition arbitrage "SELL/BUY EVERY LEG", basket trades) to check per-leg depth: theoretical overround means nothing if half the legs are 50-share books. Returns legs[] with {slug, question, yes_price, best_bid, best_ask, yes_bids[], yes_asks[]} where bids are sorted best(highest)-first and asks best(lowest)-first as {price, size} objects. Pass include_no=true to also fetch NO-side books (doubles payload — only needed for NO-le…

ParameterTypeDescription
event_slug_or_id *stringEvent slug (e.g. "fed-decision-may-2026") or numeric id — same input as polymarket_event.
include_nobooleanAlso fetch NO-side books for each leg (default false).

polymarket_trades

Recent EXECUTED trades (the fills tape) for a Polymarket market — actual money that changed hands, newest first. Each trade: side (BUY/SELL), outcome (Yes/No or the option name), outcome_index, size (shares), price (that fill's OWN outcome's price), unix, timestamp, and the trader's wallet/pseudonym. Use for "what's the recent order flow", "is smart money buying Yes", "how much just traded and at what price". DISTINCT from polymarket_orderbook (resting/unfilled orders — intent) and polymarket_price_history (the CP time-series). Pass a market slug or numeric id (same input as polymarket_mar…

ParameterTypeDescription
slug_or_id *stringMarket slug (e.g. "will-trump-win-2024") or numeric id — same input as polymarket_market.
cursorstringOpaque cursor from a previous call's `next_cursor` — continues the newest-first tape further back. Omit for the newest page. Ignored in window mode.
limitnumberTrades per page / trades returned, 1-1000 (default 20; in window mode default 100).
max_pagesnumberWindow mode only: page budget, 1-20 (default 8, 1000 fills each). If the walk hits it before reaching window_start, coverage.complete is false.
window_endstringISO datetime or epoch seconds, exclusive (default: now). Only used with window_start.
window_startstringISO datetime or epoch seconds. Switches to window mode: walks the whole tape back to this instant. Inclusive.

polymarket_holders

Largest position holders for a Polymarket market, per outcome — who holds the most Yes and the most No shares, with share amounts and trader pseudonyms. Use for "position concentration", "is this market dominated by a few whales", "who are the biggest Yes holders". Reveals conviction/concentration that price alone hides. Pass a market slug or numeric id (same input as polymarket_market).

ParameterTypeDescription
slug_or_id *stringMarket slug or numeric id — same input as polymarket_market.
limitnumberTop N holders per outcome to return (1-100, default 10)

polymarket_wallet_positions

Open and closed positions for one Polymarket wallet — size, entry basis, current mark, and realized/unrealized P&L per position, plus portfolio-level exposure and concentration (how much of the wallet's capital sits in its single largest position — a concentration measure, not a measure of trading skill). Wallet addresses are public on-chain identifiers (0x…), looked up directly — no name/ENS resolution. Omit `status` to get OPEN + CLOSED together in one call; pass a specific status to filter. Use for "what is this wallet holding", "how exposed is this wallet to market X", "is this wal…

ParameterTypeDescription
wallet *stringPolymarket proxy wallet address, 0x-prefixed (40 hex chars). Get one from polymarket_holders or polymarket_trades on a market of interest.
cursorstringOpaque pagination cursor from a previous call's `next_cursor` — omit for the first page.
limitnumberRows per page, 1-500 (default 50).
statusstringOPEN | CLOSED | REDEEMABLE | REDEEMABLE_LOST | MERGEABLE — filter to one lifecycle state. Omit to fetch OPEN and CLOSED together (default).

polymarket_wallet_activity

Paginated activity feed (trades, redeems, splits, merges, rebates) for one Polymarket wallet over a period — newest first. Use for "what has this wallet done recently", "show me this wallet's trade history", "did this wallet trade market X". Distinct from polymarket_wallet_positions (current holdings) and polymarket_wallet_performance (aggregated P&L) — this is the raw event-by-event tape. Follow `next_cursor` to page past the current window.

ParameterTypeDescription
wallet *stringPolymarket proxy wallet address, 0x-prefixed (40 hex chars).
cursorstringOpaque pagination cursor from a previous call's `next_cursor` — omit for the first page.
end_datestringISO date/datetime — only activity at or before this time (default: no upper bound).
limitnumberRows per page, 1-500 (default 50).
start_datestringISO date/datetime — only activity at or after this time (default: no lower bound).
typestringFilter to one activity type, e.g. TRADE, REDEEM, SPLIT, MERGE, MAKER_REBATE (default: all types).

polymarket_wallet_performance

Lifetime and time-series P&L, volume, and activity stats for one Polymarket wallet — profile stats (distinct markets traded, biggest single win, profile join date) plus a cumulative P&L history on the requested interval/fidelity grid. States fee treatment explicitly: `realized_pnl` in each point is already NET of taker fees paid; maker rebates and other non-trading income (rewards, referrals) are reported separately in `wallet_income` and are additive on top, not already included in `realized_pnl`. Use for "is this wallet profitable overall", "how has this wallet's P&L moved over time", "how…

ParameterTypeDescription
wallet *stringPolymarket proxy wallet address, 0x-prefixed (40 hex chars).
fidelitystringGrid step for the P&L series: 1h | 3h | 12h | 18h | 1d (default 1d). Finer grids only available for shorter intervals.
intervalstring1d | 1w | 1m | all | max — the P&L history window (default max).

polymarket_resolution_status

Resolution lifecycle state and timestamps for one Polymarket market: initialized / posed / proposed / challenged / reproposed / disputed / resolved (or active/arbitration), whether it was disputed, the reporter (UMA_OO / Chainlink / EOA), and — once resolved — the exact resolution timestamp and per-outcome payouts. Use for "has this market actually settled yet", "when did market X resolve", "was this resolution disputed" — distinct from polymarket_market's `closed`/`active` flags, which reflect trading status, not oracle finality. Pass a market slug or numeric id (same input as polymarke…

ParameterTypeDescription
slug_or_id *stringMarket slug or numeric id — same input as polymarket_market.