{"uid":"cap_al0CfZRsM8xJXghyUU64j","slug":"vybe-solana-wallet-pnl-summary-33ebd951","name":"Vybe Solana Wallet PnL Summary","description":"Read access to Solana on-chain data — tokens, wallets, markets, prices, trades, transfers. No API key, no signup. Pay in USDC per request with the x402 protocol; the per-route price is declared in `x-payment-info`. WebSocket streaming uses prepaid credits.","url":"https://x402-api.vybenetwork.xyz/v4/wallets/%7BownerAddress%7D/pnl?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["ownerAddress"],"properties":{"page":{"type":"integer","description":"The requested page."},"limit":{"type":"integer","description":"The limit of entries to return. If not passed, first 1000 entries are returned (the maximum)."},"sortByAsc":{"type":"string","description":"Sort ascending by 'mintAddress', 'tokenSymbol', 'buysTransactionCount', 'buysTokenAmount', 'buysVolumeUsd', 'sellsTransactionCount', 'sellsTokenAmount', 'sellsVolumeUsd', 'realizedPnlUsd', 'unrealizedPnlUsd'. Only one of sort_by_asc or sort_by_desc can be used."},"resolution":{"type":"string","description":"Resolution of the data. Possible values: 1d, 7d, 30d, Full. Default is \"1d\"."},"sortByDesc":{"type":"string","description":"Sort descending by 'mintAddress', 'tokenSymbol', 'buysTransactionCount', 'buysTokenAmount', 'buysVolumeUsd', 'sellsTransactionCount', 'sellsTokenAmount', 'sellsVolumeUsd', 'realizedPnlUsd', 'unrealizedPnlUsd'. Only one of sort_by_asc or sort_by_desc can be used."},"mintAddress":{"type":"string","description":"The mint address filter for tokens. Provides the mint address to filter the requested data by."},"ownerAddress":{"type":"string","description":"The public key (pubKey) associated with the Solana account."}}},"responseSchema":{"$ref":"#/components/schemas/AccountTradesSummaryReturn"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xWdNclWCYXTala_Icrm5v","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a per-token profit-and-loss summary (realized and unrealized PnL, buy/sell volume and trade counts) for a given Solana wallet address over a chosen time resolution.","exampleAgentPrompt":"Show me the trading PnL breakdown for Solana wallet 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU over the last 30 days, sorted by realized PnL descending, up to 50 tokens.","exampleUseCases":null,"resultDescription":"Returns an AccountTradesSummaryReturn object containing a paginated list of per-token trading summaries for the wallet, each with realized PnL (USD), unrealized PnL (USD), buy/sell transaction counts, token amounts, and USD volumes, scoped to the requested time resolution.","failureModes":["Invalid or malformed ownerAddress returns a 400 error","Using both sortByAsc and sortByDesc simultaneously returns a 400 validation error","Invalid resolution value (not 1d, 7d, 30d, or Full) returns a 400 error","Payment not provided or insufficient USDC via x402 returns a 402 Payment Required","Wallet address with no trading history returns an empty result set","Nonexistent mintAddress filter returns empty results without error","Pagination limit exceeding 1000 silently caps at 1000 entries"],"whenToPreferThis":"Use this endpoint when you need a comprehensive per-token profit-and-loss breakdown for a specific Solana wallet, including both realized and unrealized PnL alongside buy/sell volume metrics. Prefer it over general balance or transfer endpoints when the goal is trading performance analysis rather than raw transaction history. Ideal for portfolio analytics dashboards, trader performance scoring, or identifying the most/least profitable tokens for a given address.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-28T06:30:18.082Z","isFirstParty":false,"canonicalSlug":"vybe-solana-wallet-pnl-summary-33ebd951"}