---
title: "Per-token PnL breakdown for one KOL"
method: GET
path: "/kol/{wallet}/pnl"
tags: ["KOL"]
---

# Per-token PnL breakdown for one KOL

`GET /kol/{wallet}/pnl`

## Request

- Base URL: `https://madeonsol.com/api/v1`
- URL: `https://madeonsol.com/api/v1/kol/{wallet}/pnl`
- Auth: HTTP bearer

Trade-by-trade and per-token realised/unrealised PnL for a single KOL over a configurable period.

## Path parameters

- `wallet` string, required

## Query parameters

- `period` '7d' | '30d' | '90d' | '180d'

## Response `200`

OK

- object
  - `kol` object
    - `name` string
    - `wallet` string
    - `twitter_url` string, nullable
    - `strategy_tag` string, nullable
  - `summary` object
    - `realized_pnl_sol` number
    - `unrealized_pnl_sol` number
    - `total_pnl_sol` number
    - `held_value_sol` number
    - `total_volume_sol` number
    - `tokens_traded` integer
    - `closed_positions` integer
    - `open_positions` integer
    - `held_positions` integer
    - `priced_held_positions` integer
    - `win_count` integer
    - `loss_count` integer
    - `win_rate` number, nullable
    - `profit_factor` number, nullable
    - `best_trade_pnl_sol` number
    - `worst_trade_pnl_sol` number
    - `avg_roi_pct` number, nullable
    - `avg_hold_minutes` number
    - `median_hold_minutes` number
    - `max_drawdown_sol` number
  - `completeness` 'complete' | 'incomplete': Realized-PnL completeness for the KOL (migration 512). incomplete when at least one KOL sell in the window has unknown SOL proceeds (they went to another wallet or cannot be proven; kol_trades valuation_status unvalued, sol_amount null): those positions still reduce holdings but are left out of realized PnL, win rate, ROI and the ranking, never booked as 0 proceeds or a loss. This is realized-PnL completeness. It is NOT `coverage.completeness` (source-coverage verification: verified / not_verified / ...), which says whether the trade capture for this subject is proven complete.
  - `incomplete_reasons` string[]: Empty when complete; proceeds_unattributed when unknown_realizations > 0.
  - `unknown_realizations` integer: Migration 512: (KOL, token) positions with a sell whose proceeds are unknown, excluded from realized PnL / win rate / ROI. 0 when complete.
  - `unknown_proceeds_sells` integer: Migration 512: KOL sells with unknown proceeds (sol_amount null) in the window. 0 when complete.
  - `pnl_curve` object[]
    - `date` string, date
    - `day_pnl` number, nullable: null on a day with a sell of unknown proceeds (migration 512); cumulative_pnl carries the known days.
    - `cumulative_pnl` number
    - `trades` integer
    - `unknown_sells` integer
  - `closed_positions` object[]: Up to 50 (max_positions), sorted by the underlying kol_wallet_pnl RPC
    - `token_mint` string
    - `token_symbol` string
    - `token_name` string
    - `buy_count` integer
    - `sell_count` integer
    - `bought_sol` number
    - `sold_sol` number
    - `pnl_sol` number, nullable: null when the realization is unknown (a sell's proceeds went to another wallet or cannot be proven, migration 512). Never 0.
    - `roi_pct` number, nullable
    - `still_holding` boolean
    - `held_value_sol` number
    - `unrealized_pnl_sol` number
    - `hold_minutes` number
    - `result` 'win' | 'loss' | 'unknown'
    - `realization_status` 'known' | 'unknown'
    - `unknown_proceeds_sells` integer
    - `first_trade` string, date-time
    - `last_trade` string, date-time
  - `open_positions` object[]: ULTRA only
    - `token_mint` string
    - `token_symbol` string
    - `token_name` string
    - `buy_count` integer
    - `bought_sol` number
    - `held_value_sol` number
    - `unrealized_pnl_sol` number
    - `is_priced` boolean
    - `first_buy_at` string, date-time
  - `period` '7d' | '30d' | '90d' | '180d'

## Other responses

- `401`: Missing or invalid API key, or an expired free-tier key. Authentication-stage error: no `X-RateLimit-*` headers, no `_rid`.
- `403`: Forbidden. One of: the key's tier is below this endpoint's or parameter's gate (`tier_required` with an `upgrade` block); the public demo key used outside its allow-list (`demo_key_endpoint_not_allowed`); an invalid or revoked key; an origin-restricted key called from a disallowed origin (`code` `origin_not_allowed` / `origin_required`). `X-RateLimit-*` headers are present only on `tier_required`.
- `429`: Too many requests. Every 429 carries `Retry-After`. A quota 429 (`rate_limit_exceeded`, with `X-RateLimit-*`), a heavy-query concurrency 429 (`error_kind` `concurrency`/`capacity`), or the per-IP authentication-failure block (30 failed auths/min; plain `error` + `retry_after_seconds`, no `X-RateLimit-*`).
- `500`: Unexpected server error from the route (`Internal server error`, with `_rid`). Safe to retry with backoff. A failed API-key lookup is a 503 `auth_backend_unavailable`, never a 500.
- `503`: The API-key or subscription lookup could not be answered (authentication stage). Retryable and not your fault: it is never counted as a failed authentication. Honour `Retry-After`; no `X-RateLimit-*`, no `_rid`.

---

[API](https://skmtc.dev/madeonsol/apis/madeonsol-api.md) · [All operations](https://skmtc.dev/madeonsol/apis/madeonsol-api/llms.txt) · [OpenAPI document](https://skmtc.dev/madeonsol/apis/madeonsol-api/revisions/96ce84657f55?raw)
