Skip to main content
GET
/
v2
/
pnl
/
wallets
/
{wallet}
/
chart
PnL chart + summary header
curl --request GET \
  --url https://api.dexploit.dev/v2/pnl/wallets/{wallet}/chart \
  --header 'X-API-Key: <api-key>'
{
  "wallet": "<string>",
  "pnl_mode": "<string>",
  "points": [
    {
      "t": "<string>",
      "realized": 123,
      "unrealized": 123,
      "value": 123
    }
  ],
  "summary": {
    "realized_sol": 123,
    "unrealized_sol": 123,
    "total_value_sol": 123,
    "unrealized_usd": 123,
    "total_value_usd": 123,
    "win_rate": 123,
    "best_day": {
      "day": "<string>",
      "realized_sol": 123
    },
    "worst_day": {
      "day": "<string>",
      "realized_sol": 123
    },
    "open_positions": 123,
    "closed_positions": 123
  }
}

Authorizations

X-API-Key
string
header
required

Preferred for swaps-api endpoints (/swaps/*, /stats/*, /trending, /pool-events).

Path Parameters

wallet
string
required

Wallet address (base58, 32–44 characters).

Query Parameters

from
string

Inclusive start date (UTC, YYYY-MM-DD).

to
string

Inclusive end date (UTC, YYYY-MM-DD).

pnl_mode
enum<string>
default:adjusted

PnL accounting mode. strict (FIFO) and adjusted (weighted-avg cost) are realized-PnL figures; raw is net cash-flow (Σ sells − Σ buys), not realized PnL. Unknown values fall back to adjusted.

Available options:
raw,
strict,
adjusted

Response

Chart + summary

wallet
string
pnl_mode
string
points
object[]
summary
object