{"uid":"cap_dsF4bu-U4X63ub_Jxks8T","slug":"madeonsol-wallet-pnl-analysis-b27e9ed7","name":"MadeOnSol Wallet PnL Analysis","description":"Full per-wallet PnL: realized + unrealized SOL, profit factor, max drawdown, avg + median hold minutes, daily UTC PnL curve, closed positions sorted by pnl desc (with ROI %, hold minutes, win/loss/breakeven), and open positions hydrated with current prices from market-cap tracker.\n\n**Caching**: stored in `wallet_analyses` with dynamic TTL — 5 min for wallets active in last 24h, 1h for 1-7d old, 24h for dormant. Cache hits don't count against your daily quota.\n\n**Honesty note**: cost basis is only observable inside our 38-day data window. A wallet that sold tokens bought before that window has the overflow silently discarded rather than fabricated. `notes.cost_basis_observable_from` surfaces the cutoff. PRO+.","url":"https://api.relai.fi/relay/1780517153303/wallet/{address}/pnl?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BZVEAZrd_u1P25w6QVwCR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns comprehensive profit-and-loss analytics for a Solana wallet address, including realized/unrealized PnL, drawdown, hold times, daily PnL curve, and open/closed positions.","exampleAgentPrompt":"Can you pull up the full PnL breakdown for Solana wallet 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb1PkjV49d — I want to see realized and unrealized gains, the daily PnL curve, profit factor, max drawdown, and how the closed positions rank by ROI?","exampleUseCases":[{"title":"Evaluate trader skill before partnership","prompt":"Check the PnL analytics for wallet 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb1PkjV49d and let me know their profit factor, max drawdown, and average hold time — I'm thinking about collaborating with them and want to see if they're disciplined."},{"title":"Monitor portfolio risk and volatility","prompt":"Pull the daily PnL curve and all open positions for this Solana wallet: 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb1PkjV49d. I need to understand their drawdown patterns and what they're currently holding to assess portfolio risk."},{"title":"Audit closed position performance","prompt":"Give me a ranked breakdown of closed positions for wallet 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb1PkjV49d sorted by ROI — I want to see which trades won and lost, how long they held, and what their overall realized PnL looks like."}],"resultDescription":"Returns a structured JSON object containing: realized and unrealized PnL in SOL, profit factor, max drawdown, average and median hold durations in minutes, a daily UTC PnL time series, a list of closed positions sorted by PnL (with ROI%, hold minutes, win/loss/breakeven status), open positions enriched with live prices, and metadata notes including the cost_basis_observable_from cutoff date. Results may be served from cache (dynamic TTL: 5 min for active wallets, 1h for recently dormant, 24h for inactive).","failureModes":["Invalid or malformed Solana wallet address returns an error","Wallet with no transaction history within the 38-day window returns empty or minimal data","Cost basis for positions opened before the 38-day window is silently discarded (not an error, but data is incomplete)","Rate limit / daily quota exceeded if cache is not hit","Network or upstream market-cap tracker unavailability may affect open position price hydration","PRO+ tier required — calls from lower-tier accounts may be rejected"],"whenToPreferThis":"Use this endpoint when you need deep, multi-dimensional trading performance analytics for a specific Solana wallet — particularly when you need profit factor, drawdown, hold-time statistics, and a chronological PnL curve in addition to simple balance data. Prefer this over basic balance checkers or transaction history APIs when the goal is trader performance evaluation or portfolio risk assessment. Best suited for PRO+ use cases where cost basis transparency and the 38-day data window limitation are acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-07T06:50:16.545Z","isFirstParty":false,"canonicalSlug":"madeonsol-wallet-pnl-analysis-b27e9ed7"}