Polymarket API for wallet data: trades, positions and P&L after the v2 migration
Polymarket serves any wallet's trades, positions, activity and P&L through its public Data API at https://data-api.polymarket.com/v2, with no API key. Pass the wallet's address as user and you get JSON back. Four details decide whether what you get is complete: version 1 of the API was retired on 2 November 2026, paging is by cursor only, a per-wallet trades request returns only taker fills by default, and one route rejected a default HTTP client's user agent. This guide lists the wallet endpoints, the request shapes that work today, and the traps we hit porting CopyGrade's own ingestion.
Where behaviour is documented the guide cites the reference. Everything marked "probed" is our own observation of the live API on the stated date, not a documented guarantee. Polymarket's API reference is the authority, and it changes.
Which endpoints return a wallet's data?
All of these are GET requests under https://data-api.polymarket.com/v2 and take the wallet address as user. The list follows Polymarket's wallet activity documentation.
| Data | Endpoint | Useful parameters |
|---|---|---|
| Open positions | /positions | limit, cursor, sort_by, sort_direction |
| Closed positions | /positions | status=CLOSED |
| Activity (trades, redemptions, rewards, merges, splits, conversions) | /activity | type, limit |
| Trades | /trades | taker_only, start, limit, cursor |
| Portfolio value | /value | |
| P&L series | /user-pnl | interval, fidelity |
| Trading volume | /user-volume | start, end |
The address to send is the account's trading wallet, the one responses call proxy_wallet. The tracking guide explains how to find it and why the owner key's address returns nothing.
Market metadata, such as the question text, category tags and resolution, comes from a different service, the Gamma API at https://gamma-api.polymarket.com.
What changed when Data API v1 was retired?
Polymarket's changelog records the sequence: v2 launched on 4 September 2026 with v1 frozen, and v1 retired on 2 November 2026. From that evening the un-prefixed routes (/trades, /positions, /activity, /holders) answered HTTP 410 with {"error":"Data API v1 has been retired"}. Any script, bot or tracker still calling them stopped working, including ours for about 20 hours.
Version 2 differs in four ways that every client has to honour. Polymarket publishes a migration guide.
| v1 (retired) | v2 | |
|---|---|---|
| Response body | A bare array | An envelope: { "data": [...], "pagination": {...} } |
| Paging | offset | Cursor only. offset is rejected with HTTP 400, even offset=0 |
| Field names | camelCase | snake_case (proxy_wallet, condition_id) |
| Selecting a market | market= | condition=. market= is rejected with HTTP 400 |
How do you page through a wallet's full trade history?
Request the first page with a limit and start=1, then follow pagination.next_cursor until it is null.
GET /v2/trades?user=0x…&start=1&taker_only=false&limit=1000
GET /v2/trades?user=0x…&start=1&taker_only=false&cursor=<next_cursor>
start=1 matters. Polymarket's trades reference says an omitted or zero start floors the request to three years back, and start=1 asks for full history.
Three rules:
limitis capped at 1,000. The reference documents the maximum, and it held on every route we probed on 2026-11-03.- A short or empty page is not the end. Only a null
next_cursorends the walk. A client that stops at the first page shorter than itslimitdrops rows. data: nullmeans "nothing here". It is a documented empty result, not an error. A body with nodatakey at all is an error body.
The old 10,000-row ceiling of v1's offset paging is gone. One cursor walk returned 14,000 rows for a single wallet without stalling.
Why does the trades endpoint return only half a wallet's trades?
Because the default is taker fills only. Polymarket's trades reference documents the taker_only parameter: it "Defaults to true: each fill is served once, on its taker side", and false includes the maker rows. Every fill has a taker, who crossed the spread, and a maker, whose resting limit order was hit. A default per-wallet response holds only the fills where the wallet was the taker, and nothing in the body says rows were left out. The camelCase spelling takerOnly=false returned the same rows in our probes.
We measured it on 2026-11-15. For one wallet the default request returned about 1,100 fills and the same request with maker rows included returned about 2,250. Across the wallets scoring 90 or more that we checked, the maker share of fills ranged from none to about half. We re-ran the comparison on another wallet on 2026-11-17 with the same result.
The effect on analysis is severe. A wallet that buys with market orders and sells with limit orders shows buys and no sells. Any P&L, win rate or holding period computed from the default list is wrong, in either direction. CopyGrade's own trade feed had this fault until 15 November 2026. The P&L guide covers what it did to our figures and how to reconcile against Polymarket's own numbers.
If you page by cursor, restate the flag on every page.
How do you get a wallet's current positions?
/v2/positions?user=0x… defaults to status=OPEN, as documented. In our probes that set is the currently held book: unresolved positions and resolved ones the wallet has not redeemed yet, sorted by current value, largest first. The documented status values also include REDEEMABLE, REDEEMABLE_LOST, MERGEABLE and CLOSED.
Two things to know:
- Resolved-but-unredeemed positions are in the default list. Winning tokens can be redeemed at any time after resolution, so a wallet can carry them for months. A loser worth $0 also sits there until someone clears it.
redeemable=falsewas accepted and ignored. The request returned HTTP 200 and the same rows as without it. To cut the list to live positions, walk it in value order and stop at the first row worth $0.
The second point is an instance of a general hazard: v2 can answer an obsolete or unsupported query string with HTTP 200 and rows you did not ask for. A status check proves nothing. Assert on the rows.
Which P&L does the API report?
/v2/user-pnl?user=0x…&interval=all&fidelity=1d returns a cumulative series with several differently defined figures per point: realized, unrealized, position, settled, economic and trade P&L, plus fees and income as separate fields. They can differ a great deal for the same wallet. The P&L guide quotes each definition. For checking your own reconstruction, this series is the reference to reconcile against.
Null values in the series mean the source was unavailable. Polymarket's reference says clients must not coerce them to zero.
What are the rate limits, and why do requests fail with 429?
Polymarket publishes per-route limits, enforced per IP address. As read on 2026-11-17:
| Route | Limit |
|---|---|
All /v2 endpoints together | 800 requests per 10 seconds |
/v2/trades | 300 per 10 seconds |
/v2/positions | 200 per 10 seconds |
/v2/activity | 200 per 10 seconds |
The documentation says requests over the limit are "throttled (delayed/queued) rather than immediately rejected".
One failure looked like rate limiting and was not. On 2026-11-03 every /v2/positions request from our server returned an empty HTTP 429 within about 80 milliseconds, with no Retry-After header, while the same request from a laptop returned 200. The difference was the User-Agent header. Node's built-in fetch sends the literal value node, and that value was rejected on that one route. A descriptive user agent fixed it. If a request works in curl and fails from your server, compare the headers before assuming a limit.
What other changes should a builder plan for?
Three dated changes, in order, as read on 2026-11-17:
- 11 November 2026 (in effect). The relayer only relays transactions that interact with Polymarket contracts and a short list of supported third-party contracts.
- 20 November 2026. Taker fees and rebates change. Any model that nets fees out of a trade history needs the new rates from that date.
- 14 December 2026.
associate_tradesis deprecated on CLOB order and trade responses, and open-order routes stop acceptingasset_idandtoken_idfilters.
Is there a way to skip the raw API?
If the goal is a wallet's copy-trading read and not the raw rows, CopyGrade publishes one over HTTP and over the Model Context Protocol, both read-only and with no key:
GET https://copygrade.com/api/v1/wallets/<address>returns the CopyGrade Score, five sub-scores, the farming-risk level, and the edge before and after modelled fees and copy latency.- The MCP server exposes the same read to an AI assistant, plus the current shortlist, a filtered screen and a copy replay. The AI-analysis guide walks through it.
Those are graded outputs, with the methodology published and its limits stated. The raw API is the right tool when you want to compute something yourself.
The short version
- Wallet data is public at
data-api.polymarket.com/v2. Version 1 has returned HTTP 410 since 2 November 2026. - Page by cursor until
next_cursoris null. A short page is not the end. - Send
taker_only=falseandstart=1on per-wallet trades, or a wallet's limit-order fills and its oldest history are missing. - An HTTP 200 does not prove the query did what you meant. Check the rows.
- Set a real
User-Agent.
CopyGrade is analysis-only. It never executes trades, holds funds, or custodies keys. A CopyGrade Score is a documented research opinion. Not financial advice.