{"uid":"cap_kzTnZvn1DOyU0PbbVRWSb","slug":"madeonsol-wallet-pnl-fifo-cost-basis-e2e378ce","name":"MadeOnSol Wallet PnL (FIFO Cost-Basis)","description":"FIFO cost-basis PnL — realized + unrealized + daily curve + closed/open positions","url":"https://madeonsol.com/api/x402/wallet/2FxiPRPLYX3H84FZkdRiUHDgDm4U5u98etbL4yvZ3qRq/pnl","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6KKRZjCMoj3o0vRdx9-MN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns FIFO cost-basis profit and loss for a Solana wallet, including realized and unrealized PnL, a daily PnL curve, and breakdowns of closed and open positions.","exampleAgentPrompt":"What's the full FIFO PnL breakdown for Solana wallet 2FxiPRPLYX3H84FZkdRiUHDgDm4U5u98etbL4yvZ3qRq — I want to see realized and unrealized gains, the daily profit/loss curve, and all my closed and open positions.","exampleUseCases":[{"title":"Tax reporting for Solana traders","prompt":"Can you pull my complete PnL report for wallet 2FxiPRPLYX3H84FZkdRiUHDgDm4U5u98etbL4yvZ3qRq? I need the realized gains and losses for my accountant, plus the unrealized gains on positions I'm still holding."},{"title":"Portfolio performance review dashboard","prompt":"Show me how I've done on Solana this year — gimme the daily profit and loss curve, total realized PnL from closed trades, and what I'm currently up or down on my open positions."},{"title":"Cost-basis audit for inheritance","prompt":"I need a detailed breakdown of a Solana wallet's trading history with FIFO cost basis. Can you give me all the closed-out positions with their gains and losses, plus the current unrealized PnL on anything still open?"}],"resultDescription":"A JSON object containing FIFO cost-basis PnL data for the specified Solana wallet: total realized PnL, total unrealized PnL, a time-series daily PnL curve, and detailed lists of both closed (realized) and open (unrealized) positions with per-position cost basis and gain/loss figures.","failureModes":["Invalid or malformed wallet address returns an error or empty result","Wallet with no transaction history may return zero values or minimal data","Payment not received (x402 flow incomplete) results in 402 Payment Required","Network or RPC latency may cause slow or failed responses during high Solana traffic","Cache miss may slightly increase response time for recently active wallets"],"whenToPreferThis":"Use this endpoint when you need a comprehensive, FIFO-accurate PnL report for a Solana wallet, including both the historical realized gains and the current unrealized gains, plus a daily curve. Prefer this over the sibling /open-positions endpoint when you need the full picture rather than just current open positions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:31:57.204Z","isFirstParty":false}