Crypto Tax Cost Basis Calculator API
Cost-basis lots, specific ID, Form 8949, UK share pooling, Canada ACB, Australia CGT discount, German §23 holding, income valuation, transfer matching, fee allocation, tax-loss harvest, derivatives P/L, unrealised snapshots, CSV normalize and missing-basis checks — pure computation on caller ledgers and prices.
Match disposals to acquisition lots by FIFO, LIFO, HIFO or average cost and compute gains from a caller-supplied ledger and fiat values. No market prices are fetched.
Apply caller-chosen lot identifications to disposals, validate timing and quantities, and return matched basis or structured selection errors.
Produce Form 8949 rows and Schedule D box totals from caller disposals using 2025 short/long-term and 1099-B / 1099-DA box rules.
Apply same-day, 30-day and section 104 share-pooling rules to a GBP ledger and return allowable cost, gains, pool balances and AEA.
Compute Canadian ACB and capital gains with superficial-loss detection for identical properties on a CAD ledger.
Apply the Australian 12-month CGT discount by entity type after losses, from caller event proceeds and cost base.
Classify crypto private sales under §23 EStG with FIFO (or caller method), one-year holding and the €1,000 Freigrenze.
Value staking, mining, airdrop and interest receipts in fiat using caller-supplied prices within a max lag window.
Pair outgoing and incoming transfers between the caller's own wallets by txHash or amount/time so they are not treated as disposals.
Assign network/gas fees to acquisition basis, disposal proceeds, expense or fee-asset disposal per caller policy.
List open lots with unrealised losses at caller prices and an estimated tax saving, with US/UK rule flags.
Compute realised P/L for linear perpetuals/futures and options including fees and funding from caller trade inputs.
Replay a ledger to a date with a cost-basis method and report holdings, basis, unrealised gain, dust and unpriced assets at caller prices.
Convert a caller CSV export into the shared ledger schema using a caller column mapping, or return a mapping template from headers.
Replay balances to find disposal-without-acquisition, negative balance, unmatched transfer-in and unpriced events before gains are computed.