Polymarket

ToolByBrandonVersion0.1.0

Polymarket public market intelligence integration for IronClaw. Reads markets, events, tags, sports, orderbooks, prices, positions, leaderboards, profiles, and comments across the Polymarket prediction-market platform. No authentication required.

Data FeedWeb3

Use Cases

  • Query real-time election odds
  • Track crypto prediction markets
  • Feed sentiment data into trading agents
Install
$ironclaw hub install polymarket

Description

polymarket

Polymarket public market intelligence integration for IronClaw. Reads markets, events, tags, sports, orderbooks, prices, positions, leaderboards, profiles, and comments across the Polymarket prediction-market platform. No authentication required.

Actions

Discovery

ActionParametersPurpose
list_marketsoptional slug[], id[], condition_ids[], clob_token_ids[], tag_id, related_tags, active, closed, order, ascending, limit, offset, liquidity_num_min, volume_num_min, start_date_min, end_date_maxBrowse markets with filters
get_market_by_idmarket_idSingle market by Gamma id
get_market_by_slugslugSingle market by URL slug
get_clob_market_infocondition_idCLOB-level params (tokens, tick size, fees, rewards)
list_eventsoptional slug[], id[], tag_id, related_tags, active, closed, order, ascending, limit, offsetBrowse events
get_event_by_idevent_idSingle event by id
get_event_by_slugslugSingle event by URL slug

Tags and sports

ActionParametersPurpose
list_tagsoptional limit, offsetTag taxonomy
get_tag_by_id / get_tag_by_slugtag_id or slugSingle tag
get_related_tags_by_tag_id / get_related_tags_by_tag_slugtag_id or slugTag relationship graph
get_sports_metadatanoneSports leagues + metadata
list_teamsnoneSports teams catalog

Search

ActionParametersPurpose
searchq, optional limitFull-text search across markets, events, profiles

Market data

ActionParametersPurpose
get_orderbook / get_orderbookstoken_id (single) or token_ids[] (batch)Bids and asks
get_market_pricetoken_id, side (BUY or SELL)Best bid or ask
get_midpoint_price / get_midpoint_pricessingle or batchMidpoint between best bid and ask
get_last_trade_price / get_last_trade_pricessingle or batchMost recent trade price
get_spread / get_spreadssingle or batchBest ask minus best bid
get_tick_sizetoken_idMinimum price increment
get_fee_ratetoken_idBase fee rate for a market
get_server_timenoneServer time for client sync

Historical pricing

ActionParametersPurpose
get_prices_historymarket, optional start_ts, end_ts, fidelity, intervalTime-series for one market
get_batch_prices_historymarkets[], optional start_ts, end_ts, fidelity, intervalTime-series for multiple markets

Positions and activity (read of any wallet, no auth)

ActionParametersPurpose
get_current_positionsuser, optional filters (market[], event_id[], size_threshold, redeemable, mergeable, sort_by, sort_direction, limit, offset)Open positions
get_closed_positionsuser, optional limit, offsetClosed position history
get_user_activityuser, optional limit, offsetActivity feed
get_tradesoptional user, market, limit, offsetTrade list
get_trader_leaderboardoptional period, limitTop trader rankings

Profiles and comments

ActionParametersPurpose
get_public_profileaddressWallet's public profile
list_commentsoptional parent_entity_type, parent_entity_id, limit, offsetComment threads

Auth model

No auth. All endpoints exposed by this tool are public. The capabilities file allowlists gamma-api.polymarket.com, clob.polymarket.com, and data-api.polymarket.com.

Hosts and routing

The tool routes each action to the correct Polymarket host:

HostUsed for
gamma-api.polymarket.comDiscovery: markets, events, tags, sports, search, comments
clob.polymarket.comMarket data: orderbooks, prices, spreads, tick sizes, server time, prices history
data-api.polymarket.comUser-scoped reads: positions, activity, trades, leaderboard, profiles

Limits

Polymarket caps individual list endpoints at 500 entries per request. Order book and price endpoints accept arrays of token IDs up to 500 per call. Geographic restrictions apply at the wallet level (US users in particular have CFTC-related blocks) but reads are unaffected.

The host-level rate limit is 120 requests per minute and 3,600 per hour; the runtime enforces this regardless of Polymarket's upstream quota.

Out of scope

Signed CLOB write operations (post and cancel orders, manage relayer, bridge, user-channel WebSocket subscriptions) live in the polymarket-clob trunk. WebSocket public-channel subscriptions are deferred until the IronClaw runtime exposes a WebSocket primitive to wasm tools.

Specifications

WIT Interface0.3.0
Action Capacity36 actions
Auth ModelNo auth
Source Pathtools/polymarket

Security & Network

Network Allowlist
gamma-api.polymarket.comclob.polymarket.comdata-api.polymarket.com

Constraints & Tags

Known Limits
  • Public list endpoints cap at 500 entries per request
  • Batch price endpoints accept up to 500 token IDs per call
  • WebSocket subscriptions are deferred until the IronClaw runtime exposes a WebSocket primitive to wasm tools
  • Signed CLOB write operations (post and cancel orders, manage relayer, bridge) live in the separate `polymarket-clob` trunk.
Technical Tags
WASM toolHTTP allowlistNo required secrets

Standalone tool trunk without current skill branches.