PMWallets

v0.6.6
io.github.polymarketwallets/pmwallets Checked 2 days ago Published 1 month ago

Polymarket smart-money data: rank traders by on-chain PnL, follow them, read their fills.

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

leaderboard

Polymarket traders ranked by realized PnL and other stats over a window, with filters. Each row is an entity (one trader, possibly several wallets).

ParameterTypeDescription
bandsstringunlock price bands to include, comma-separated: 0 = free … 5
categorystringmarket category, e.g. "politics", "sports", "crypto", "crypto-updown", "esports"
dirstring
limitnumberrows, at most 200 (rows count against a daily allowance of 20,000)
maxWalletsnumberat most this many wallets in the entity
minCategorySharenumberwith category: at least this share (0–1] of the trader's volume in it
minEligiblenumberfloor on markets that count toward the win rate
minFillsnumberfloor on number of fills
minPnlnumberfloor on realized PnL in USD
minRoinumberfloor on ROI on buys (0.1 = 10%)
minVolumenumberfloor on traded volume in USD
minWinLonumberfloor on the lower bound of the 95% win-rate interval (0–1): a win rate that is not luck
minWinsLossesnumberfloor on markets won or lost
offsetnumberrows to skip (signed-in accounts; anonymous callers see a fixed sample)
periodstringstatistics window: "30d" (default) or "7d"
sortstringcolumn to sort by (default realizedPnl)
statusstring
stylestring

entity

One trader's statistics by handle or address (full address only once unlocked).

ParameterTypeDescription
id *string12-character handle or 0x address
periodstring"30d" or "7d"

subscriptions

The traders this account follows (active and paused subscriptions).

subscribe

Follow a trader: their fills start arriving from now on. BILLS THE ACCOUNT per hour (unless the plan covers it). 402 = balance too low; 409 = no fill for 7 days (retry with acceptInactive).

ParameterTypeDescription
entityId *stringhandle or 0x address
acceptInactiveboolean

cancel_subscription

Stop following (and stop paying for) a subscription, by its id from `subscriptions`.

ParameterTypeDescription
id *stringsubscription id

new_fills

Fills of the followed traders since the previous call of this tool (first call: the last hour). Each fill is returned once to this server; the CLI `pmwallets new-fills` shares the position file, so do not poll with both at once (or give each its own PMW_MCP_STATE). Call again while `more` is true.

ParameterTypeDescription
limitnumberat most this many fills (default 100, max 500)

fills

Fills of the followed traders strictly after a ledger position (block, logIndex), oldest first. Does not move the new_fills cursor.

ParameterTypeDescription
sinceBlock *numberblock
limitnumbermax 500
sinceLogIndexnumberlog index within the block (default 0)

market

The Polymarket market and outcome an outcome token id belongs to (question, outcome name, slug, end date).

ParameterTypeDescription
tokenId *stringoutcome token id (decimal)

account

The account's plan (allowances used) and balance.