{"uid":"cap_aQL8lqPeSBo-NzHOemdhx","slug":"base-wallet-fifo-realized-gains-tax-lot-estimator-ab199528","name":"Base Wallet FIFO Realized Gains & Tax Lot Estimator","description":"FIFO realized-gains estimate for a wallet: per-token and total realized profit/loss in USD from its Base ERC-20 trade history, priced at historical closes. Send { address }. Fast cost-basis/tax estimate (not filing-grade — see notes).","url":"https://x402-services-production.up.railway.app/api/portfolio/taxlots","method":"POST","headers":{},"bodySchema":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"0x wallet address (Base)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZNwodvsD80nxcQM0wAqo5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates FIFO-based realized gains and losses in USD for a Base wallet's ERC-20 trade history, returning per-token and total profit/loss estimates priced at historical closes.","exampleAgentPrompt":"Can you estimate the realized gains and losses on my Base wallet 0x4f3B...aD92 — I want to see per-token FIFO profit/loss in USD based on historical prices?","exampleUseCases":null,"resultDescription":"Returns a breakdown of realized gains and losses per ERC-20 token traded from the given Base wallet, calculated using FIFO cost-basis methodology and historical close prices, plus a total realized P&L figure in USD. Intended as a fast tax estimate, not filing-grade output.","failureModes":["Invalid or non-Base wallet address returns an error or empty result","Wallet with no trade history returns zero gains/losses","Historical price data unavailable for obscure tokens may result in incomplete P&L","Rate limiting or payment failure (x402) blocks the request","Very large trade histories may timeout or return partial results"],"whenToPreferThis":"Use this endpoint when you need a quick FIFO realized-gains estimate for a Base wallet's ERC-20 trading history, especially for tax estimation or portfolio review purposes. Prefer this over on-chain raw data endpoints when you need pre-computed USD P&L rather than raw transaction logs. Not suitable for tax filing — use only for fast estimates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:57:17.564Z","isFirstParty":false}