{"uid":"cap_TGNPlFr21ru4K9CIz1UhX","slug":"x402-coinstats-app-c9841ebe","name":"CoinStats Shared Portfolio Total Value & PnL","description":"CoinStats shared portfolio total value and PnL — total value, DeFi value, unrealized + realized profit/loss. Requires sharetoken header","url":"https://x402.coinstats.app/portfolio/value","method":"GET","headers":{},"bodySchema":{"properties":{"input":{"required":["method"],"properties":{"method":{"enum":["GET"],"type":"string"}}}}},"responseSchema":null,"example":{"request":{"method":"GET"},"response":{"defiValue":0,"totalCost":0,"totalValue":0,"allTimeProfitLoss":0,"realizedProfitLoss":0,"unrealizedProfitLoss":0,"allTimeProfitLossPercent":0,"realizedProfitLossPercent":0,"unrealizedProfitLossPercent":0}},"exampleRequest":{"method":"GET"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2wPRMy6Xw_IqiBxuCRa6d","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the total portfolio value, DeFi value, and unrealized/realized profit and loss for a CoinStats shared portfolio identified by a sharetoken.","exampleAgentPrompt":"Can you pull up my CoinStats portfolio summary and tell me the total value, how much is in DeFi, and my unrealized and realized profit and loss?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the portfolio's total USD value, DeFi-specific value, total cost basis, all-time profit/loss (absolute and percent), realized profit/loss (absolute and percent), and unrealized profit/loss (absolute and percent). All values are numeric and expressed in USD.","failureModes":["Missing or invalid sharetoken header returns unauthorized/error response","Sharetoken from a non-Degen-plan CoinStats user may be rejected or return empty data","Portfolio with no assets returns all zero values","Network or upstream CoinStats API outage returns a 5xx error","Payment failure (insufficient USDC balance) blocks the request via x402 protocol"],"whenToPreferThis":"Use this endpoint when you need a high-level financial snapshot of a CoinStats user's entire crypto portfolio — total value, DeFi exposure, and PnL metrics — rather than granular coin-by-coin breakdowns. Prefer this over the value chart endpoint when you want current point-in-time numbers rather than historical time-series data. Best suited for dashboards, alerts, or agent workflows that need a quick portfolio health check.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:40:34.284Z","isFirstParty":false}