100 credits per API call
Closed and resolved positions for a wallet — one row per settled position (winning or losing), with the realised PnL, lifetime cost basis, settlement price, and the parent market's question and outcome metadata. Useful for backtest-style P&L drill-downs and tax exports.
Platform support
- Polymarket only. Kalshi wallets return
400.
Filtering, sorting and pagination
marketscopes the response to a comma-separated list ofcondition ids (
0x+ 64 hex), up to 50 entries.eventIdscopes the response to a comma-separated list ofPolymarket numeric event ids, up to 50 entries. Mutually exclusive with
market— passing both returns400.titlefilters by a substring of the market question.sortByacceptsREALIZEDPNL,TITLE,PRICE,AVGPRICE,TIMESTAMP. Defaultsto
REALIZEDPNL. Combine withsortDirection
(ASC/DESC, defaults toDESC).- Pagination is offset-based —
limit(1..50, default 10) andoffset(0..100000, default 0). Only the first 10,000 rows of a result are served:a page that starts past them is empty, and a page that crosses them is cut short.
TheTITLE,PRICEandAVGPRICEorders are applied
within the 10,000 rows with the highest realized profit.
Other notes
addressis normalised to lowercase before being echoed in theresponse (every row's
proxyWallet).timestampis unix-seconds (not milliseconds) — the settlementtime of the position.
curPriceis the resolution price (0 or 1 for binary markets);avgPriceis the volume-weighted entry price.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
502Polymarket rejected the request built for this call; the data is unavailable at the moment.
503Polymarket is temporarily unavailable (throttled, timed out or unreachable). Retry later.