{"uid":"cap_ccHkcSSzycL-2o6gLN604","slug":"madeonsol-wallet-pnl-fifo-cost-basis-c05e8b74","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/CyaE1VxvBrahnPWkqm5VsdCvyS2QmNht2UFrKJHga54o/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","pathParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Solana wallet address (base58)"}}}},"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_J2zRGyDtgyjRAmlFpiU8U","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/loss for a Solana wallet address, including realized PnL, unrealized PnL, a daily PnL curve, and a breakdown of closed and open positions.","exampleAgentPrompt":"Pull the full FIFO cost-basis PnL breakdown for Solana wallet CyaE1VxvBrahnPWkqm5VsdCvyS2QmNht2UFrKJHga54o — I want realized and unrealized gains, the daily PnL curve, and a list of both open and closed positions.","exampleUseCases":null,"resultDescription":"Returns a structured breakdown including: realized PnL, unrealized PnL, a daily historical PnL curve, and lists of closed and open token positions — all computed using FIFO cost-basis accounting for the specified Solana wallet.","failureModes":["Invalid or malformed Solana wallet address returns an error","Wallet with no trading history may return empty or zero-value PnL fields","Payment failure or insufficient USDC balance blocks access with a 402 response","Temporary cache miss or upstream data lag may cause stale or incomplete results","Rate limiting may apply under high-volume usage"],"whenToPreferThis":"Use this endpoint when you need a comprehensive FIFO-accounted PnL view of a Solana wallet, including both realized and unrealized gains, a time-series daily curve, and a split between open and closed positions. Prefer this over the lighter /open-positions sibling when you need the full historical picture or tax-relevant realized PnL data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:54.092Z","isFirstParty":false}