{"uid":"cap_qFQa7G1yzgNjcNFZBgB5b","slug":"graphadvocate-com-b7bbf253","name":"Polymarket Full PnL Report","description":"Polymarket full PnL report. POST {wallet}. Returns derived skill metrics plus per-position aggregates: net position, average buy price, current price, realized and mark-to-market unrealized PnL per market. For agents that need position-level detail to audit, debug, or feed into a deeper reputation signal.","url":"https://graphadvocate.com/polymarket/pnl","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"wallet":{"type":"string"}}},"responseSchema":{"type":"json","example":{"scores":{"sample_size":213,"skill_score":71.4,"classification":"sharp"},"wallet":"0x38e5...","positions":[{"buys":4,"sells":1,"active":true,"outcome":"Yes","pnl_pct":41.9,"market_slug":"will-x-happen-by-eoy","condition_id":"0xabc…","net_position":500,"avg_buy_price":0.31,"current_price":0.44,"total_pnl_usdc":77.5,"realized_pnl_usdc":12.5,"unrealized_pnl_usdc":65}]}},"example":{"request":{"method":"fifo","wallet":"0xC2c03BBf11C7EF4F110DfF1C78adDB1835835F72"},"response":{"note":"Per-position aggregates from Pinax /users/positions. Free-tier JWT caps at 10 positions per wallet; a paid TOKEN_API_JWT lifts this. Lot-level FIFO/LIFO/HIFO reconstruction was dropped from v0.1 because the /markets/activity feed has no buy/sell side field.","scores":{"win_rate":0,"confidence":0,"sharpe_like":0,"skill_score":50,"classification":"insufficient_data","total_pnl_usdc":0,"realized_pnl_usdc":0,"sample_size_trades":0,"sample_size_markets":0,"unrealized_pnl_usdc":0,"open_positions_count":0,"worst_position_pnl_usdc":0},"wallet":"0xc2c03bbf11c7ef4f110dff1c78addb1835835f72","positions":[],"generated_at":"2026-05-30T00:20:01.805664+00:00"}},"exampleRequest":{"method":"fifo","wallet":"0xC2c03BBf11C7EF4F110DfF1C78adDB1835835F72"},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BSW-VTc4NKhG9oLjFujV9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a comprehensive Polymarket profit-and-loss report for a wallet, including FIFO/LIFO/HIFO per-lot realized PnL, open positions with mark-to-market unrealized PnL, and derived skill metrics.","exampleAgentPrompt":"Pull the full Polymarket PnL report for wallet 0xAbC123... using LIFO matching — I want to see realized gains per lot, open positions marked to market, and the derived skill metrics.","exampleUseCases":null,"resultDescription":"A structured JSON report containing: derived skill metrics (skill_score and classification), per-lot realized PnL computed using the chosen matching method (FIFO by default, or LIFO/HIFO), and open positions with current mark-to-market unrealized PnL values.","failureModes":["Invalid or unrecognized wallet address returns an error or empty result","Unsupported method value falls back to FIFO or returns a validation error","Wallet with no Polymarket activity returns empty lots and positions","Network or subgraph data lag causes stale or incomplete position data","Payment failure (x402) blocks the call before any computation"],"whenToPreferThis":"Use this endpoint when you need granular, lot-level realized PnL with configurable cost-basis accounting (FIFO/LIFO/HIFO) for a Polymarket wallet, especially for trade auditing, tax-like reporting, or feeding detailed performance data into a reputation or risk signal. Prefer this over the skill-score-only endpoint when you need the full financial breakdown, not just a summary score.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:39:47.200Z","isFirstParty":false}