Back to Marketplace
Modulr Official
x402 Ready

Wallet PnL Tracker

Estimates realized and unrealized profit and loss for any Solana wallet based on on-chain swap history. Returns total PnL, best and worst trades, most traded tokens, win rate, and a performance summary. Useful for evaluating trader wallets, copy trading research, and performance auditing.

$0.35 USDC per call@Modulr402Last tested 2026-06-05
solanapnltradinganalyticswallet

Endpoint

POSThttps://modulr402.com/api/marketplace/wallet-pnl
x402 compatible — payment handled automatically

Expected Input

addressSolana wallet address
daysLookback period in days (default: 30, max: 90)

Example Output

{
  "address": "9apA5U8...",
  "period": "30 days",
  "realizedPnl": "+$1,240 USDC",
  "unrealizedPnl": "-$180 USDC",
  "totalTrades": 47,
  "winRate": "62%",
  "bestTrade": "+$840 USDC on SOL",
  "worstTrade": "-$320 USDC on BONK",
  "verdict": "Profitable trader with strong win rate"
}

Call this tool

TypeScript — x402
import { wrapFetchWithPayment } from "@x402/fetch";

// Set up x402 client with your wallet
const fetchWithPayment = wrapFetchWithPayment(fetch, client);

const response = await fetchWithPayment("https://modulr402.com/api/marketplace/wallet-pnl", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"address":"...","days":"..."}),
});

const result = await response.json();
cURL — raw request
curl -X POST "https://modulr402.com/api/marketplace/wallet-pnl" \
  -H "Content-Type: application/json" \
  -d '{"address":"...","days":"..."}' 
Example request body
{
  "address": "Solana wallet address",
  "days": "Lookback period in days (default: 30, max: 90)"
}

See the developers page for the full x402 setup guide.