{"uid":"cap_gXHShxBuABBGqhi3o1fXi","slug":"allium-pnl-0cfbbee1","name":"Allium Wallet PnL","description":"Get wallet profit and loss","url":"https://agents.allium.so/api/v1/developer/wallet/pnl?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"type":"object","required":["chain","address"],"properties":{"chain":{"type":"string","description":"Blockchain network (e.g. ethereum, solana, base)"},"address":{"type":"string","description":"Wallet address"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["blockchain","prices","tokens","wallet","balances","transactions","pnl","sql","explorer","solana","base","defi","data"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LrGAzrXUyqP_2hALOms47","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_YR9jcECHDc0JcpMD-HEYP","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"Allium","brandSlug":"allium","brandBaseUrl":"https://allium.so","brandDocsUrl":"https://docs.allium.so","whatItDoes":"Returns profit and loss data for a given wallet address across onchain positions and trades","exampleAgentPrompt":"Can you pull the profit and loss for wallet address 0x1234...abcd on Base — I want to see how much it has made or lost across all its token trades?","exampleUseCases":null,"resultDescription":"Returns a breakdown of realized and unrealized profit and loss for the specified wallet, including per-token position performance, trade history, and aggregate returns across supported chains like Solana and Base.","failureModes":["Invalid or malformed wallet address returns a 400 error","Unsupported chain or network returns a validation error","Wallet with no transaction history returns empty PnL data","Insufficient USDC balance for the $0.03 per-call fee results in payment failure","Timeout or upstream data unavailability returns a 503 or similar server error"],"whenToPreferThis":"Choose this endpoint when you need structured, precomputed profit and loss analytics for a specific wallet address on supported chains (Solana, Base) without writing custom SQL. Prefer it over the raw SQL endpoint when PnL is the specific metric needed and speed matters. It is especially useful for DeFi portfolio analysis, trader performance evaluation, and wallet due diligence.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:44:34.551Z","isFirstParty":false,"canonicalSlug":"allium-pnl-0cfbbee1"}