Get trader positions
get_trader_positionsUse this when the user wants a Polymarket trader's open positions or holdings — for example "what positions does @exampletrader hold", "list all open positions for this 0x wallet", "what is this trader's biggest position", or "which of their positions are up the most". Accepts a full 0x wallet address, a polymarket.com profile URL, an @username or a username. Returns up to 50 open positions (default 20) sorted by current value or by unrealized profit, each with the market, outcome, shares held, average entry and current price in cents, current value and unrealized profit or loss in USD, plus the total number of open positions and the portfolio value. Positions worth under $1 and resolved positions awaiting redemption are left out of the list; the text notes the latter. Read-only public on-chain data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | 'value' = largest current value first; 'pnl' = largest unrealized gain first. Default 'value' | |
| limit | No | How many positions to return (default 20) | |
| trader | Yes | The trader: a full 0x wallet address (42 characters), a polymarket.com profile URL, an @username, or a username, e.g. '@exampletrader' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| kind | Yes | ||
| name | Yes | ||
| items | Yes | ||
| wallet | Yes | ||
| total_count | Yes | Open positions counted; a floor when total_count_is_floor is true | |
| total_value_usd | Yes | ||
| total_count_is_floor | Yes | True when the scan stopped at its 1,000-position cap: the wallet holds at least total_count open positions |