# Polymarket Full PnL Report

> Polymarket Full PnL Report is a paid API for AI agents from graphadvocate.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

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.

## Facts

- Endpoint: POST https://graphadvocate.com/polymarket/pnl
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/graphadvocate-com-b7bbf253
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qFQa7G1yzgNjcNFZBgB5b

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability graphadvocate-com-b7bbf253 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Example request

```json
{
 "method": "fifo",
 "wallet": "0xC2c03BBf11C7EF4F110DfF1C78adDB1835835F72"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "wallet": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/graphadvocate-com-b7bbf253/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from graphadvocate.com](https://www.zero.xyz/host/graphadvocate.com/llms.txt)
