PMWallets Board API
Leaderboard, entity pages and market aggregates.
Leaderboard, entity pages and market aggregates.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pmwallets-com:pmwallets-com-board-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PMWallets Board API
version: 1.0.0
summary: Polymarket wallet leaderboard, address unlocks, live fill subscriptions and trade-history exports.
description: 'PMWallets tracks every Polymarket fill on Polygon, groups wallets that belong together into **entities**, and ranks them by forward-only PnL over published windows (`30d`, `7d`; each recomputed about once a day). It sells three things: the **address** behind an entity, a **live stream of its fills** (billed per hour), and **per-wallet daily trade-history files**.
**Handles vs addresses.** An entity whose address you have not bought is named by a 12-character **handle** in `entityId` (Crockford base32, e.g. `7KQ2MF9X4B1C`) with a masked address in `label` (`0x4b96…984e`). After you unlock it (`POST /v1/account/reveals`), follow it, or unlock it from a plan, `entityId` and `label` are the full 0x address. Send handles back to every endpoint that takes an entity; a raw address is only accepted from a caller who already holds it. A masked label is never accepted.
**Money.** Prices are integer US cents. Charges come from the prepaid account balance (top-ups happen on https://pmwallets.com). Every charging call takes a ceiling (`maxPriceCents` / `maxCents`) and answers 409 instead of charging more. 402 means not enough balance; nothing was charged.
**Quotas.** A signed-in board read spends rows from a 20,000-row daily allowance (UTC day). Opening an entity page as a subscriber, unlocking, subscribing and exporting each spend one unit of a daily *distinct-entity* budget (50 by default, raised by plans); touching the same entity again that day is free. Over-limit answers are 403. Heavy reads are rate limited per account and per IP (429).
**Auth.** Send an API key `pmw__` in `x-api-key` (`Authorization: Bearer ` also works). Create keys at https://pmwallets.com/keys. A key can spend the balance but cannot manage keys, add/remove webhooks or change a card plan (session-only, not in this document). Without a key: the 20-row board sample, periods, plans, rate card, markets, latency and readiness.
**Live fills are not in this document.** They arrive over the WebSocket `wss://api.pmwallets.com/v1/ws` (send the key in `x-api-key`; one API connection per account, `?clientId=&takeover=1` replaces another) or as signed webhooks (see `webhooks.fill`; the endpoint is registered on the website). An agent without a long-running process can poll `GET /v1/account/fills` with the `next` cursor instead: same fills, same `eventId`, scoped to active subscriptions, retained 60 days.
**Units.** In fills, `usdc`, `shares` and `fee` are integer strings in 1e-6 units (`"1824000000"` = $1,824); `price` is a decimal string; `ts` is UTC `YYYY-MM-DD HH:MM:SS`. Board and entity figures (`realizedPnl`, `grossBuyUsdc`, …) are dollars as numbers.'
contact:
name: PMWallets
url: https://pmwallets.com
email: support@pmwallets.com
servers:
- url: https://api.pmwallets.com
description: Production
security:
- ApiKeyAuth: []
tags:
- name: Board
description: Leaderboard, entity pages and market aggregates.
paths:
/v1/periods:
get:
operationId: listPeriods
tags:
- Board
summary: Published board windows
security:
- {}
- ApiKeyAuth: []
description: The published windows (e.g. 30d, 7d) with their block range and run. Free.
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Period'
'429':
$ref: '#/components/responses/RateLimited'
/v1/leaderboard:
get:
operationId: getLeaderboard
tags:
- Board
summary: Ranked entities with filters
security:
- {}
- ApiKeyAuth: []
description: 'Entities ranked by PnL. Unbought entities appear as handles with their unlock price (revealCents). No key: 20-row sample. With a key: up to 200 rows a call; each call spends `limit` rows of a 20,000/day allowance (403 when used up). mine=1 lists your unlocked addresses, free. Never charges.'
parameters:
- name: period
in: query
required: false
description: Window id from GET /v1/periods (30d or 7d). Default 30d. Unknown → 400.
schema:
type: string
- name: sort
in: query
required: false
description: Order column. Default realizedPnl; an unknown value falls back to realizedPnl.
schema:
type: string
enum:
- realizedPnl
- roiOnBuys
- eligible
- winsLosses
- nFills
- conditions
- grossBuyUsdc
- unrealizedPnl
- winLo
- fillsPerDay
- lastFill
default: realizedPnl
- name: dir
in: query
required: false
description: Sort direction. Anything other than asc means desc.
schema:
type: string
enum:
- asc
- desc
default: desc
- name: limit
in: query
required: false
description: Rows to return, 1-200 (anonymous capped to 20). Out of range → 400. With a key this many rows are taken from the daily allowance, whether or not that many come back.
schema:
type: integer
minimum: 1
maximum: 200
default: 50
- name: offset
in: query
required: false
description: Rows to skip, 0-100000 (anonymous forced to 0).
schema:
type: integer
minimum: 0
maximum: 100000
default: 0
- name: mine
in: query
required: false
description: Set to 1 to list only the addresses you have unlocked (needs a key; 401 without). Spends no row allowance; minEligible defaults to 0.
schema:
type: string
enum:
- '1'
- name: minEligible
in: query
required: false
description: Floor on settled markets (wins + losses + breakevens). Default 5.
schema:
type: integer
minimum: 0
maximum: 100000
default: 5
- name: minWinsLosses
in: query
required: false
description: Floor on markets won or lost (breakevens excluded). Absent = no floor; the website uses 10.
schema:
type: integer
minimum: 0
maximum: 100000
- name: minPnl
in: query
required: false
description: Floor on realised PnL, dollars. May be negative.
schema:
type: number
minimum: -1000000000000
maximum: 1000000000000
- name: minRoi
in: query
required: false
description: Floor on ROI on buys (0.2 = 20%).
schema:
type: number
minimum: -100
maximum: 1000000
- name: minWinLo
in: query
required: false
description: Floor on the Wilson 95% lower bound of the win rate.
schema:
type: number
minimum: 0
maximum: 1
- name: maxWallets
in: query
required: false
description: Ceiling on addresses of the entity that traded in the window (1 = single address).
schema:
type: number
minimum: 1
maximum: 100000
- name: minFills
in: query
required: false
description: Floor on fills in the window.
schema:
type: number
minimum: 0
maximum: 1000000000000
- name: minVolume
in: query
required: false
description: Floor on dollars spent buying in the window (grossBuyUsdc).
schema:
type: number
minimum: 0
maximum: 1000000000000000
- name: status
in: query
required: false
description: Last fill <24h (active), <7d (quiet), older (dormant).
schema:
type: string
enum:
- active
- quiet
- dormant
- name: style
in: query
required: false
description: 'By share of traded value made as maker: >=0.8 maker, <=0.2 taker, else two-sided.'
schema:
type: string
enum:
- maker
- taker
- two-sided
- name: category
in: query
required: false
description: Entities that traded this category in the window.
schema:
type: string
enum:
- crypto-updown
- crypto
- esports
- sports
- politics
- economy
- geopolitics
- science-tech
- culture
- other
- unknown
- name: minCategoryShare
in: query
required: false
description: 'With category only (400 otherwise): at least this share (0, 1] of traded value in that category.'
schema:
type: number
exclusiveMinimum: 0
maximum: 1
- name: bands
in: query
required: false
style: form
explode: false
description: Unlock price bands, any of them, comma-separated (0 = free … 5). Priced on the 30d window whatever `period` is.
schema:
type: array
items:
type: integer
enum:
- 0
- 1
- 2
- 3
- 4
- 5
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Leaderboard'
'400':
$ref: '#/components/responses/BadRequest'
'401':
description: mine=1 without a valid key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Daily row allowance used up; resets 00:00 UTC.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
statusCode: 403
message: daily row limit reached (20000); it resets at 00:00 UTC
error: Forbidden
'404':
description: No published stats yet.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
/v1/entities/{id}:
get:
operationId: getEntity
tags:
- Board
summary: One entity in full
security:
- ApiKeyAuth: []
description: 'Figures, badges, PnL curve, wallets and recent fills. Subscribers (active push or plan) open any entity, spending 1 daily distinct-entity unit; others only the free sample or entities they paid to unlock. A raw address you do not hold: 403 not_unlocked with handle and price. Never charges.'
parameters:
- name: id
in: path
required: true
description: A 12-character entity handle (Crockford base32, e.g. 7KQ2MF9X4B1C) or a full 0x address (40 hex).
schema:
type: string
- name: period
in: query
required: false
description: Window id (30d or 7d). Default 30d.
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Entity'
'400':
description: Not a handle or 0x address, unknown handle, or unknown period.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: '`error: not_unlocked` (address you do not hold; body has entityId = handle, label, revealCents), the daily distinct-entity limit, or outside the free sample (needs a subscription or a paid unlock).'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
statusCode: 403
error: not_unlocked
message: open this wallet by its handle; an address opens only for the reader who bought or follows it
entityId: 7KQ2MF9X4B1C
label: 0x4b96…984e
revealCents: 100
'404':
description: No published stats for this entity in the window.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/Unavailable'
/v1/markets:
get:
operationId: listMarkets
tags:
- Board
summary: Per-market trader aggregates
security:
- {}
- ApiKeyAuth: []
description: The busiest markets of the 30d window (up to 1,000, at least 20 traders each) with counts and sums over traders, never any one trader. Same answer for everyone; may serve the previous run while a new one loads.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
periodId:
type: string
b0:
type: integer
b1:
type: integer
completedAt:
type: string
markets:
type: array
items:
$ref: '#/components/schemas/MarketStat'
minTraders:
type: integer
strongRule:
type: object
properties:
minDecided:
type: integer
minWinLo:
type: number
minGroup:
type: integer
'404':
description: No published stats yet.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/Unavailable'
components:
schemas:
Activity:
type: object
properties:
nFills:
type: integer
firstFillTs:
type:
- string
- 'null'
lastFillTs:
type:
- string
- 'null'
lastFillBlock:
type: integer
activeDays:
type: integer
fills24h:
type: integer
fills7d:
type: integer
windowEndTs:
type:
- string
- 'null'
makerFills:
type:
- number
- 'null'
makerUsdc:
type:
- number
- 'null'
usdc:
type:
- number
- 'null'
PlanUsage:
type: object
description: The caller's plan and what is left of its unlock allowance (present when signed in).
properties:
state:
type: string
enum:
- active
- grace
- none
tier:
type:
- string
- 'null'
graceUntil:
type:
- string
- 'null'
daily:
type: integer
dailyUsed:
type: integer
monthly:
type: integer
monthlyUsed:
type: integer
pushSlots:
type: integer
pushActive:
type: integer
Error:
type: object
description: Error body. `message` is always present; machine-readable refusals add `error` (unlock, export, subscription paths) or `code` (plan paths) plus the figures the caller needs.
properties:
statusCode:
type: integer
message:
description: Human-readable reason (English).
oneOf:
- type: string
- type: array
items:
type: string
error:
type: string
description: Machine code, e.g. insufficient_balance, price_changed, not_unlocked, address_not_unlocked, entity_budget, not_sellable, plan_exhausted, no_plan.
code:
type: string
description: Machine code on plan endpoints, e.g. insufficient_balance, price_changed, card_active, already_queued, request_conflict.
required:
- message
additionalProperties: true
Entity:
type: object
properties:
periodId:
type: string
entityId:
type: string
description: Handle, or the address if you hold it.
label:
type: string
tier:
type: string
enum:
- free
- subscriber
revealed:
type: boolean
revealCents:
type: integer
description: Unlock price now (0 = free band).
viaPlan:
type: boolean
plan:
$ref: '#/components/schemas/PlanUsage'
subscribed:
type: boolean
badges:
type: array
items:
type: string
enum:
- two-sided-maker
- high-win-rate
- pnl-1k
- short-term
- swing
- holds-to-settlement
tagVersion:
type: integer
categories:
type: array
items:
type: object
properties:
category:
type: string
share:
type: number
stats:
description: The window figures (same fields as a board row, plus wr/lo/hi).
allOf:
- $ref: '#/components/schemas/LeaderboardRow'
history:
type:
- object
- 'null'
properties:
partialPct:
type: number
since:
type: string
description: Set when a notable share of markets were opened before the ledger begins.
dataSource:
type: string
enum:
- live
- frozen
dataPeriodId:
type: string
dataAsOf:
type:
- string
- 'null'
status:
type: string
enum:
- active
- quiet
- dormant
statusAsOf:
type:
- string
- 'null'
pnlCurve:
type: object
description: PnL from genesis to the end of each day.
properties:
locked:
type: boolean
since:
type:
- string
- 'null'
through:
type:
- string
- 'null'
fromGenesis:
type: boolean
points:
type: array
items:
type: object
properties:
day:
type: string
pnl:
type: number
wallets:
type: array
items:
type: object
properties:
wallet:
type: string
description: Masked unless you subscribe to the entity.
kind:
type: string
method:
type: string
fills:
type: array
items:
$ref: '#/components/schemas/EntityFill'
tags:
type: object
additionalProperties: true
fillSample:
type: integer
description: Row cap applied to `fills` (100 subscribed, else 10).
fillsDelayedMs:
type: integer
description: 0 when subscribed, else 900000 (15 min).
views:
type: object
properties:
usedToday:
type: integer
cap:
type: integer
description: 'Subscriber tier: the distinct-entity budget after this call.'
MarketStat:
type: object
properties:
conditionId:
type: string
slug:
type: string
question:
type: string
eventSlug:
type: string
eventTitle:
type: string
category:
type: string
traders:
type: integer
boughtUsdc:
type: number
soldUsdc:
type: number
fills:
type: integer
resolved:
type: boolean
up:
type: integer
description: Traders whose result on this market was above a cent.
down:
type: integer
description: Traders whose result was below minus a cent.
strong:
type:
- object
- 'null'
properties:
traders:
type: integer
up:
type: integer
down:
type: integer
description: Counts for traders with strong records; null under 5 members.
EntityFill:
type: object
description: A recent fill on the entity page. For readers who do not subscribe to the entity, `wallet`, `txHash` and `blockHash` are masked and the list is delayed 15 minutes.
properties:
block:
type: integer
logIndex:
type: integer
blockHash:
type: string
ts:
type: string
txHash:
type: string
wallet:
type: string
role:
type: string
side:
type: string
tokenId:
type: string
price:
type: string
shares:
type: string
description: 1e-6 units.
usdc:
type: string
description: 1e-6 units.
fee:
type: string
description: 1e-6 units.
exchange:
type: string
conditionId:
type: string
marketTitle:
type: string
marketSlug:
type: string
eventSlug:
type: string
Leaderboard:
type: object
properties:
periodId:
type: string
tier:
type: string
enum:
- anon
- free
- subscriber
description: anon = no valid key; subscriber = an active push subscription or active plan.
plan:
$ref: '#/components/schemas/PlanUsage'
sampled:
type: boolean
description: true for the anonymous 20-row sample.
filters:
type: object
additionalProperties: true
description: The filters actually applied.
sort:
type: string
enum:
- realizedPnl
- roiOnBuys
- eligible
- winsLosses
- nFills
- conditions
- grossBuyUsdc
- unrealizedPnl
- winLo
- fillsPerDay
- lastFill
dir:
type: string
enum:
- asc
- desc
sorts:
type: array
items:
type: string
historyFrom:
type:
- string
- 'null'
description: First UTC day of the ledger behind this window.
refresh:
type: object
properties:
everyBlocks:
type: integer
maxIdleMin:
type: integer
blockSec:
type: number
pricing:
type: object
properties:
revealCents:
type: integer
description: Price of the cheapest paid band.
subscriptionCentsPerHour:
type: integer
bands:
type: array
items:
type: object
properties:
band:
type: integer
from:
type:
- number
- 'null'
description: pnlExTop where the band starts; null = no floor.
cents:
type: integer
limits:
type: object
properties:
maxRows:
type: integer
maxOffset:
type: integer
capped:
type: boolean
description: limit/offset were reduced to the tier maximum.
dailyRows:
type: integer
usedToday:
type: integer
tracked:
type: integer
description: 'Entities in the window (independent of filters). With mine=1: how many addresses you have unlocked.'
rows:
type: array
items:
$ref: '#/components/schemas/LeaderboardRow'
outside:
type: array
description: 'mine=1, first page only: your unlocked addresses with no fill in this window.'
items:
type: object
properties:
entityId:
type: string
label:
type: string
revealed:
type: boolean
subscribed:
type: boolean
unlockedBy:
type:
- string
- 'null'
pausedReason:
type: string
LeaderboardRow:
type: object
properties:
entityId:
type: string
description: Handle until you hold the address, then the 0x address. Pass it back to other endpoints as-is.
label:
type: string
description: Masked address (0x4b96…984e) until you hold it, then the full address.
revealed:
type: boolean
description: You hold the address (paid unlock, a still-free free unlock, or an active plan unlock).
revealCents:
type: integer
description: What unlocking this address costs now (0 = free band). Absent when not for sale (prices not published for the window).
subscribed:
type: boolean
description: You have an active push subscription to it.
subscriptionId:
type: string
description: Present when subscribed.
viaPlan:
type: boolean
description: Held only through your plan; masked again when the plan ends.
unlockedBy:
type:
- string
- 'null'
enum:
- paid
- free
- plan
- null
description: 'mine=1 only: how you hold it; null = lapsed (masked again).'
pausedReason:
type: string
description: 'mine=1 only: your subscription to it is paused for this reason.'
wallets:
type: integer
description: Addresses of the entity that traded in the window.
conditions:
type: integer
description: Markets traded in the window.
eligible:
type: integer
description: Settled markets counted (wins + losses + breakevens).
wins:
type: integer
losses:
type: integer
breakevens:
type: integer
excludedConditions:
type: integer
realizedPnl:
type: number
description: Dollars.
unrealizedPnl:
type: number
description: Dollars.
totalPnl:
type: number
description: Dollars.
grossBuyUsdc:
type: number
description: Dollars spent buying in the window.
feeUsdc:
type: number
roiOnBuys:
type: number
description: realizedPnl / grossBuyUsdc (0.2 = 20%).
nFills:
type: integer
pnlExTop:
type: number
description: Realised PnL minus its single best settled market; decides the price band.
pricePnlExTop:
type:
- number
- 'null'
wr:
type:
- number
- 'null'
lo:
type:
- number
- 'null'
hi:
type:
- number
- 'null'
status:
type: string
enum:
- active
- quiet
- dormant
description: Last fill <24h / <7d / older.
statusAsOf:
type:
- string
- 'null'
style:
type:
- string
- 'null'
enum:
- maker
- taker
- two-sided
- null
description: By share of traded value made as maker (>=0.8 maker, <=0.2 taker).
makerShare:
type:
- number
- 'null'
categories:
type: array
items:
type: object
properties:
category:
type: string
enum:
- crypto-updown
- crypto
- esports
- sports
- politics
- economy
- geopolitics
- science-tech
- culture
- other
- unknown
share:
type: number
activity:
$ref: '#/components/schemas/Activity'
dataSource:
type: string
enum:
- live
- frozen
dataPeriodId:
type: string
dataAsOf:
type:
- string
- 'null'
Period:
type: object
properties:
periodId:
type: string
description: Window id, e.g. 30d or 7d.
runId:
type: string
description: The published run the window is read from.
b0:
type: integer
description: First block of the window.
b1:
type: integer
description: Last block of the window.
completedAt:
type: string
description: When the run was published (UTC).
coverageStart:
type: integer
description: First ledger block the run could see; positions opened earlier have no cost basis.
responses:
Unauthorized:
description: No valid API key (missing, malformed, unknown or revoked).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
statusCode: 401
message: Unauthorized
BadRequest:
description: Invalid parameter or body; `message` names what was expected.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unavailable:
description: Temporarily unavailable; nothing was charged. Retry shortly.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limited. Per IP 240/min overall and 180/min on the board and entity routes; per account 120/min (anonymous 60/min per IP) on board, entity and market reads. A `retry-after` header may be set.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
statusCode: 429
message: rate limited
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: 'API key `pmw_<12 hex>_<64 hex>` from https://pmwallets.com/keys. `Authorization: Bearer <key>` is accepted too.'