The positions endpoint fetches all open Polymarket positions for a connected wallet. Kuroko uses this to populate your portfolio page with live unrealized P&L and position details. It proxies Polymarket’s Gamma API to avoid browser CORS restrictions.Documentation Index
Fetch the complete documentation index at: https://0x-250ca30e.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/positions
A valid Ethereum wallet address:
0x followed by 40 hexadecimal characters.The Polymarket condition ID for the market.
The market question text.
"YES" or "NO" — which side of the market you hold.Number of shares held.
Your average entry price as a decimal (e.g.
0.44 = 44¢ per share).Current market probability as a decimal.
Unrealized profit or loss in USD.
Errors
| Status | Meaning |
|---|---|
400 | Missing wallet param, or address failed validation |
429 | Rate limit exceeded — 60 requests/minute per IP. Retry after 60 seconds. |
502 | Polymarket Gamma API unavailable |
Only positions with a size above 0.01 shares are returned. Dust positions are filtered out automatically.