New260+ blocks and 240+ tools are now fully documented
DocumentationReferenceTool IntegrationsFinance & Payments
Tool

Polymarket Tools

Browse and analyze Polymarket prediction markets, prices, and trader activity

The Polymarket provider lets a workflow read live data from the Polymarket prediction-market platform: markets, events, series, tags, CLOB prices and orderbooks, and on-chain trader data (positions, trades, activity, leaderboard, holders). Use these tools when a workflow needs to discover markets, fetch real-time pricing, or analyze trader behavior.

Overview

PropertyValue
Providerpolymarket
Categorytools
AuthNone (public read-only API; no API key required)

All tools call Polymarket's public read APIs over GET with a Content-Type: application/json header and no credentials. They are spread across three hosts: the Gamma API (https://gamma-api.polymarket.com) for markets/events/series/tags/search, the CLOB API (https://clob.polymarket.com) for prices and orderbooks, and the Data API (https://data-api.polymarket.com) for positions/trades/activity/leaderboard/holders.

Operations

OperationTool IDDescription
Get Marketspolymarket_get_marketsRetrieve a list of prediction markets with optional filtering
Get Marketpolymarket_get_marketRetrieve details of a specific market by ID or slug
Get Eventspolymarket_get_eventsRetrieve a list of events with optional filtering
Get Eventpolymarket_get_eventRetrieve details of a specific event by ID or slug
Get Seriespolymarket_get_seriesRetrieve series (related market groups)
Get Series by IDpolymarket_get_series_by_idRetrieve a specific series by ID
Get Tagspolymarket_get_tagsRetrieve available tags for filtering markets
Searchpolymarket_searchSearch for markets, events, and profiles
Get Orderbookpolymarket_get_orderbookRetrieve the order book for a specific token
Get Pricepolymarket_get_priceRetrieve the market price for a token and side
Get Midpointpolymarket_get_midpointRetrieve the midpoint price for a token
Get Spreadpolymarket_get_spreadRetrieve the bid-ask spread for a token
Get Tick Sizepolymarket_get_tick_sizeRetrieve the minimum tick size for a token
Get Last Trade Pricepolymarket_get_last_trade_priceRetrieve the last trade price for a token
Get Price Historypolymarket_get_price_historyRetrieve historical price data for a token
Get Positionspolymarket_get_positionsRetrieve a user's positions
Get Tradespolymarket_get_tradesRetrieve trade history
Get Activitypolymarket_get_activityRetrieve on-chain activity for a user
Get Leaderboardpolymarket_get_leaderboardRetrieve trader leaderboard rankings
Get Holderspolymarket_get_holdersRetrieve top holders of a market token

Configuration

polymarket_get_markets

ParameterTypeRequiredDescription
closedstringNoFilter by closed status (true/false)
orderstringNoSort field (e.g., volumeNum, liquidityNum, startDate, endDate)
ascendingstringNoSort direction (true for ascending, false for descending)
tagIdstringNoFilter by tag ID
limitstringNoNumber of results per page (max: 50; defaults to 50)
offsetstringNoNumber of results to skip for pagination

polymarket_get_market

ParameterTypeRequiredDescription
marketIdstringNoThe market condition ID. Required if slug is not provided
slugstringNoThe market slug (e.g., will-trump-win). Required if marketId is not provided

polymarket_get_events

ParameterTypeRequiredDescription
closedstringNoFilter by closed status (true/false)
orderstringNoSort field (e.g., volume, liquidity, startDate, endDate)
ascendingstringNoSort direction (true for ascending, false for descending)
tagIdstringNoFilter by tag ID
limitstringNoNumber of results per page (max: 50; defaults to 50)
offsetstringNoNumber of results to skip for pagination

polymarket_get_event

ParameterTypeRequiredDescription
eventIdstringNoThe event ID. Required if slug is not provided
slugstringNoThe event slug. Required if eventId is not provided

polymarket_get_series

ParameterTypeRequiredDescription
limitstringNoNumber of results per page (max: 50; defaults to 50)
offsetstringNoNumber of results to skip for pagination

polymarket_get_series_by_id

ParameterTypeRequiredDescription
seriesIdstringYesThe series ID

polymarket_get_tags

ParameterTypeRequiredDescription
limitstringNoNumber of results per page (max: 50; defaults to 50)
offsetstringNoNumber of results to skip for pagination
ParameterTypeRequiredDescription
querystringYesSearch query term (e.g., presidential election, bitcoin price)
limitstringNoNumber of results per page (max: 50; defaults to 50)
pagestringNoPage number for pagination (1-indexed)
eventsStatusstringNoFilter events by status
sortstringNoSort field
ascendingstringNoSort direction (true for ascending, false for descending)

polymarket_get_orderbook

ParameterTypeRequiredDescription
tokenIdstringYesThe CLOB token ID from the market clobTokenIds array

polymarket_get_price

ParameterTypeRequiredDescription
tokenIdstringYesThe CLOB token ID from the market clobTokenIds array
sidestringYesOrder side: buy or sell (sent upper-cased to the API)

polymarket_get_midpoint

ParameterTypeRequiredDescription
tokenIdstringYesThe CLOB token ID from the market clobTokenIds array

polymarket_get_spread

ParameterTypeRequiredDescription
tokenIdstringYesThe CLOB token ID from the market clobTokenIds array

polymarket_get_tick_size

ParameterTypeRequiredDescription
tokenIdstringYesThe CLOB token ID from the market clobTokenIds array

polymarket_get_last_trade_price

ParameterTypeRequiredDescription
tokenIdstringYesThe CLOB token ID from the market clobTokenIds array

polymarket_get_price_history

ParameterTypeRequiredDescription
tokenIdstringYesThe CLOB token ID from the market clobTokenIds array
intervalstringNoDuration ending at current time (1m, 1h, 6h, 1d, 1w, max)
fidelitynumberNoData resolution in minutes (e.g., 60 for hourly)
startTsnumberNoStart timestamp (Unix seconds UTC)
endTsnumberNoEnd timestamp (Unix seconds UTC)

polymarket_get_positions

ParameterTypeRequiredDescription
userstringYesUser wallet address
marketstringNoCondition IDs to filter positions (comma-separated)
eventIdstringNoEvent ID to filter positions
sizeThresholdstringNoMinimum position size threshold (default: 1)
sortBystringNoSort field
sortDirectionstringNoSort direction (ASC or DESC)
limitstringNoNumber of results per page
offsetstringNoNumber of results to skip for pagination

polymarket_get_trades

ParameterTypeRequiredDescription
userstringNoUser wallet address to filter trades
marketstringNoMarket/condition ID to filter trades
eventIdstringNoEvent ID to filter trades
sidestringNoTrade direction filter (BUY or SELL)
limitstringNoNumber of results per page (default: 100, max: 10000)
offsetstringNoNumber of results to skip for pagination

polymarket_get_activity

ParameterTypeRequiredDescription
userstringYesUser wallet address (0x-prefixed)
limitstringNoMaximum results to return (default: 100, max: 500)
offsetstringNoNumber of results to skip for pagination
marketstringNoComma-separated condition IDs
eventIdstringNoComma-separated event IDs
typestringNoActivity type: TRADE, SPLIT, MERGE, REDEEM, REWARD, CONVERSION, MAKER_REBATE
startnumberNoStart timestamp (Unix seconds)
endnumberNoEnd timestamp (Unix seconds)
sortBystringNoSort field: TIMESTAMP, TOKENS, or CASH (default: TIMESTAMP)
sortDirectionstringNoSort direction: ASC or DESC (default: DESC)

polymarket_get_leaderboard

ParameterTypeRequiredDescription
categorystringNoCategory: OVERALL, POLITICS, SPORTS, CRYPTO, CULTURE, MENTIONS, WEATHER, ECONOMICS, TECH, FINANCE
timePeriodstringNoTime period: DAY, WEEK, MONTH, ALL (default: DAY)
orderBystringNoOrder by: PNL or VOL (default: PNL)
limitstringNoNumber of results to return (range: 1-50, default: 25)
offsetstringNoNumber of results to skip for pagination
userstringNoFilter by specific user wallet address

polymarket_get_holders

ParameterTypeRequiredDescription
marketstringYesComma-separated list of condition IDs
limitstringNoNumber of holders to return (range: 0-20, default: 20)
minBalancestringNoMinimum balance threshold (default: 1)

Outputs

polymarket_get_markets

  • markets (json) — Array of market objects

polymarket_get_market

  • market (json) — Market object with details

polymarket_get_events

  • events (json) — Array of event objects

polymarket_get_event

  • event (json) — Event object with details

polymarket_get_series

  • series (json) — Array of series objects (id, ticker, slug, title, seriesType, recurrence, image, icon, active, closed, archived, featured, volume, liquidity)

polymarket_get_series_by_id

  • series (json) — Series object with details

polymarket_get_tags

  • tags (json) — Array of tag objects

polymarket_search

  • markets (json) — Matching markets
  • events (json) — Matching events
  • profiles (json) — Matching profiles

polymarket_get_orderbook

  • orderbook (json) — Order book with bids and asks arrays (plus market, asset_id, hash, timestamp, min_order_size, tick_size)

polymarket_get_price

  • price (string) — Market price

polymarket_get_midpoint

  • midpoint (string) — Midpoint price

polymarket_get_spread

  • spread (string) — Bid-ask spread value

polymarket_get_tick_size

  • tickSize (string) — Minimum tick size

polymarket_get_last_trade_price

  • price (string) — Last trade price
  • side (string) — Side of the last trade (BUY or SELL)

polymarket_get_price_history

  • history (json) — Array of historical price entries [{t, p}]

polymarket_get_positions

  • positions (json) — Array of position objects

polymarket_get_trades

  • trades (json) — Array of trade objects

polymarket_get_activity

  • activity (json) — Array of on-chain activity objects

polymarket_get_leaderboard

  • leaderboard (json) — Array of leaderboard entries

polymarket_get_holders

  • holders (json) — Array of market holder groups by token

YAML Example

polymarket_1:
  type: polymarket
  name: "Polymarket"
  inputs:
    operation: "polymarket_get_markets"
    order: "volumeNum"
    ascending: "false"
    limit: "10"
  connections:
    outgoing:
      - target: next-block-id

Tips

  • No authentication is required — all Polymarket endpoints used here are public read-only APIs, so there is no API key or secret to configure.
  • Price/orderbook operations (polymarket_get_price, polymarket_get_orderbook, polymarket_get_midpoint, polymarket_get_spread, polymarket_get_tick_size, polymarket_get_last_trade_price, polymarket_get_price_history) require a CLOB tokenId. Get these first via polymarket_get_market/polymarket_get_markets and read the clobTokenIds array, then reference it like {{polymarket_1.market.clobTokenIds}}.
  • Most list operations cap limit at 50 (leaderboard at 50, holders at 20). Use offset (or page for search) to paginate through larger result sets rather than raising the limit.
  • User-scoped operations (polymarket_get_positions, polymarket_get_activity) require a 0x-prefixed wallet address; trades and leaderboard accept an optional user filter.