# Crypto Tax Computation 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. Each paid operation uses a fixed USDC price on Base with the x402 exact scheme. Unpaid GET, HEAD, and POST return 402 payment terms (POST validates the body only after payment terms are satisfied). A request that carries payment-signature is not yet charged: settlement happens only after a successful (2xx) result. HTTP 4xx/5xx are not charged. Coverage bodies with status complete, partial, or failed all return HTTP 200 and are charged at the full listed price. Settled 2xx responses include a payment-response header; 4xx/5xx do not. Follow https://www.brainiac.software/agent-instructions.txt for install, payment pins, idempotency, and billing rules. - Product: https://www.brainiac.software/api/crypto-tax - Docs: https://www.brainiac.software/api/crypto-tax/docs - OpenAPI: https://www.brainiac.software/api/crypto-tax/openapi.json - Contact: support@brainiac.software (https://www.brainiac.software/contact) ## Operations ### POST /api/v1/crypto-tax/cost-basis-lots $0.05 USDC. 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. Inputs: fiatCurrency, method, feePolicy?, ledger Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-cost-basis-lots Example request: ```json { "fiatCurrency": "USD", "method": "FIFO", "feePolicy": "add_to_basis_and_deduct_from_proceeds", "ledger": [ { "id": "b1", "ts": "2025-01-01T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "1", "fiatValue": 1000000, "feeFiat": 0, "wallet": "w1" }, { "id": "b2", "ts": "2025-02-01T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "1", "fiatValue": 2000000, "feeFiat": 0, "wallet": "w1" }, { "id": "s1", "ts": "2025-03-01T00:00:00Z", "type": "sell", "asset": "BTC", "qty": "1.5", "fiatValue": 4500000, "feeFiat": 0, "wallet": "w1" } ] } ``` Example response: ```json { "disposals": [ { "id": "s1", "asset": "BTC", "qty": "1.5", "proceeds": 4500000, "basis": 2000000, "gain": 2500000, "matches": [ { "lotId": "b1", "qty": "1", "basis": 1000000, "acquiredTs": "2025-01-01T00:00:00Z" }, { "lotId": "b2", "qty": "0.5", "basis": 1000000, "acquiredTs": "2025-02-01T00:00:00Z" } ] } ], "openLots": [ { "lotId": "b2", "asset": "BTC", "qty": "0.5", "basis": 1000000, "acquiredTs": "2025-02-01T00:00:00Z", "wallet": "w1" } ], "warnings": [], "fiatCurrency": "USD", "method": "FIFO", "sources": [ { "source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally", "url": "https://www.brainiac.software/api/v1/crypto-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Lot matching uses FIFO. Partial-lot basis uses half-even rounding to the minor unit; the final slice of a lot takes the…", "Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time.", "…" ] } ``` ### POST /api/v1/crypto-tax/specific-id-select $0.05 USDC. Apply caller-chosen lot identifications to disposals, validate timing and quantities, and return matched basis or structured selection errors. Inputs: fiatCurrency?, feePolicy?, ledger, selections Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-specific-id-select Example request: ```json { "fiatCurrency": "USD", "ledger": [ { "id": "b1", "ts": "2025-01-01T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "1", "fiatValue": 1000000, "feeFiat": 0, "wallet": "w1" }, { "id": "b2", "ts": "2025-02-01T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "1", "fiatValue": 2000000, "feeFiat": 0, "wallet": "w1" }, { "id": "s1", "ts": "2025-03-01T00:00:00Z", "type": "sell", "asset": "BTC", "qty": "1.5", "fiatValue": 4500000, "feeFiat": 0, "wallet": "w1" } ], "selections": [ { "disposalId": "s1", "lots": [ { "lotId": "b1", "qty": "1" }, { "lotId": "b2", "qty": "0.5" } ] } ] } ``` Example response: ```json { "disposals": [ { "id": "s1", "asset": "BTC", "qty": "1.5", "proceeds": 4500000, "basis": 2000000, "gain": 2500000, "matches": [ { "lotId": "b1", "qty": "1", "basis": 1000000, "acquiredTs": "2025-01-01T00:00:00Z" }, { "lotId": "b2", "qty": "0.5", "basis": 1000000, "acquiredTs": "2025-02-01T00:00:00Z" } ] } ], "openLots": [ { "lotId": "b2", "asset": "BTC", "qty": "0.5", "basis": 1000000, "acquiredTs": "2025-02-01T00:00:00Z", "wallet": "w1" } ], "warnings": [], "errors": [], "sources": [ { "source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally", "url": "https://www.brainiac.software/api/v1/crypto-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Specific identification requires selected lots to exist, predate the disposal, match the asset, and sum exactly to the …", "Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time.", "…" ] } ``` ### POST /api/v1/crypto-tax/us-form-8949-rows $0.04 USDC. Produce Form 8949 rows and Schedule D box totals from caller disposals using 2025 short/long-term and 1099-B / 1099-DA box rules. Inputs: taxYear, roundToDollars?, disposals Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-us-form-8949-rows Example request: ```json { "taxYear": 2025, "disposals": [ { "id": "s1", "description": "1.5 BTC", "acquired": "2024-01-10", "sold": "2025-01-11", "proceeds": 4500000, "basis": 2000000, "adjustmentCode": null, "adjustment": 0, "reportedOn": "1099-DA", "basisReported": true } ] } ``` Example response: ```json { "rows": [ { "part": "II", "box": "J", "description": "1.5 BTC", "dateAcquired": "01/10/2024", "dateSold": "01/11/2025", "proceeds": 4500000, "basis": 2000000, "code": null, "adjustment": 0, "gain": 2500000, "term": "long", "id": "s1" } ], "totalsByBox": { "J": { "proceeds": 4500000, "basis": 2000000, "adjustment": 0, "gain": 2500000 } }, "taxYear": 2025, "sources": [ { "source": "IRS Instructions for Form 8949 (2025)", "url": "https://www.irs.gov/instructions/i8949", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Long-term when the sale date is after the one-year anniversary of the acquisition date (holding period starts the day a…", "Boxes follow IRS Form 8949 (2025) for 1099-B (A–F) and 1099-DA (G–L).", "…" ] } ``` ### POST /api/v1/crypto-tax/uk-share-pooling $0.05 USDC. Apply same-day, 30-day and section 104 share-pooling rules to a GBP ledger and return allowable cost, gains, pool balances and AEA. Inputs: ledger, taxYear, fiatCurrency?, feePolicy? Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-uk-share-pooling Example request: ```json { "taxYear": "2025-26", "fiatCurrency": "GBP", "ledger": [ { "id": "b1", "ts": "2025-01-01T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "10", "fiatValue": 1000000, "feeFiat": 0, "wallet": "w1" }, { "id": "s1", "ts": "2025-06-01T00:00:00Z", "type": "sell", "asset": "BTC", "qty": "5", "fiatValue": 1000000, "feeFiat": 0, "wallet": "w1" }, { "id": "b3", "ts": "2025-06-15T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "5", "fiatValue": 750000, "feeFiat": 0, "wallet": "w1" } ] } ``` Example response: ```json { "disposals": [ { "id": "s1", "matches": [ { "rule": "30_day", "acqId": "b3", "qty": "5", "cost": 750000 } ], "proceeds": 1000000, "allowableCost": 750000, "gain": 250000 } ], "pool": { "BTC": { "qty": "10", "cost": 1000000 } }, "netGain": 250000, "annualExemptAmount": 300000, "taxableAfterAea": 0, "taxYear": "2025-26", "warnings": [], "sources": [ { "source": "TCGA 1992 ss.104–106A / HMRC CRYPTO22200; GOV.UK CGT annual exempt amount", "url": "https://www.gov.uk/guidance/capital-gains-tax-rates-and-allowances", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Matching order: same-day (s.105), then 30-day acquisitions after the disposal (s.106A), then the s.104 pool at average …", "AEA bundled for 2024-25 and 2025-26 only (£3,000).", "…" ] } ``` ### POST /api/v1/crypto-tax/canada-acb $0.04 USDC. Compute Canadian ACB and capital gains with superficial-loss detection for identical properties on a CAD ledger. Inputs: ledger, treatment?, fiatCurrency?, feePolicy? Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-canada-acb Example request: ```json { "treatment": "capital", "fiatCurrency": "CAD", "ledger": [ { "id": "b1", "ts": "2025-01-01T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "10", "fiatValue": 100000, "feeFiat": 0, "wallet": "w1" }, { "id": "b2", "ts": "2025-02-01T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "10", "fiatValue": 200000, "feeFiat": 0, "wallet": "w1" }, { "id": "s1", "ts": "2025-03-01T00:00:00Z", "type": "sell", "asset": "BTC", "qty": "5", "fiatValue": 150000, "feeFiat": 0, "wallet": "w1" } ] } ``` Example response: ```json { "disposals": [ { "id": "s1", "proceeds": 150000, "acbUsed": 75000, "gain": 75000, "superficialLossDenied": 0 } ], "acb": { "BTC": { "qty": "15", "acb": 225000 } }, "warnings": [], "treatment": "capital", "sources": [ { "source": "Income Tax Act (Canada) s.47 identical properties and s.54 superficial loss", "url": "https://laws-lois.justice.gc.ca/eng/acts/I-3.3/", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Identical properties use average ACB (s.47). Superficial losses in the ±30-day window that remain held at day +30 are d…", "Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time.", "…" ] } ``` ### POST /api/v1/crypto-tax/australia-cgt-discount $0.03 USDC. Apply the Australian 12-month CGT discount by entity type after losses, from caller event proceeds and cost base. Inputs: entity, resident, events, carriedForwardLosses? Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-australia-cgt-discount Example request: ```json { "entity": "individual", "resident": true, "events": [ { "id": "s1", "acquired": "2024-01-01", "eventDate": "2025-01-02", "capitalProceeds": 2000000, "costBase": 1000000 } ], "carriedForwardLosses": 200000 } ``` Example response: ```json { "events": [ { "id": "s1", "gain": 1000000, "discountEligible": true } ], "grossGains": 1000000, "lossesApplied": 200000, "discountRate": 0.5, "netCapitalGain": 400000, "sources": [ { "source": "ATO CGT discount (updated 29 Jun 2026)", "url": "https://www.ato.gov.au/individuals-and-families/investments-and-assets/capital-gains-tax/cgt-discount", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Discount requires ownership of at least 12 months excluding the acquisition day and the CGT event day.", "Losses apply to non-discountable gains first, then discountable gains, before the discount.", "…" ] } ``` ### POST /api/v1/crypto-tax/germany-holding-period $0.04 USDC. Classify crypto private sales under §23 EStG with FIFO (or caller method), one-year holding and the €1,000 Freigrenze. Inputs: ledger, calendarYear, method?, fiatCurrency?, feePolicy? Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-germany-holding-period Example request: ```json { "calendarYear": 2026, "method": "FIFO", "fiatCurrency": "EUR", "ledger": [ { "id": "b1", "ts": "2025-03-01T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "1", "fiatValue": 100000, "feeFiat": 0, "wallet": "w1" }, { "id": "s1", "ts": "2026-03-02T00:00:00Z", "type": "sell", "asset": "BTC", "qty": "1", "fiatValue": 150000, "feeFiat": 0, "wallet": "w1" } ] } ``` Example response: ```json { "disposals": [ { "id": "s1", "holdingDays": 366, "taxable": false, "gain": 50000, "acquired": "2025-03-01", "sold": "2026-03-02" } ], "taxableGainTotal": 0, "exempt": true, "reason": "no_taxable_gain", "method": "FIFO", "calendarYear": 2026, "sources": [ { "source": "§23 EStG private sales (Freigrenze €1,000)", "url": "https://www.gesetze-im-internet.de/estg/__23.html", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Private sales are taxable when the period between acquisition and sale is not more than one year (§23 Abs. 1).", "Freigrenze: total taxable private-sale gains under €1,000 are exempt; at €1,000 the whole amount is taxable.", "…" ] } ``` ### POST /api/v1/crypto-tax/income-events-value $0.03 USDC. Value staking, mining, airdrop and interest receipts in fiat using caller-supplied prices within a max lag window. Inputs: events, prices, maxPriceLagHours, fiatCurrency Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-income-events-value Example request: ```json { "events": [ { "id": "i1", "ts": "2026-02-01T10:00:00Z", "asset": "ETH", "qty": "0.1", "kind": "staking" } ], "prices": [ { "asset": "ETH", "ts": "2026-02-01T00:00:00Z", "price": 250000 } ], "maxPriceLagHours": 24, "fiatCurrency": "USD" } ``` Example response: ```json { "events": [ { "id": "i1", "value": 25000, "priceTs": "2026-02-01T00:00:00Z", "kind": "staking", "asset": "ETH" } ], "totalsByKind": { "staking": 25000 }, "missingPrices": [], "fiatCurrency": "USD", "sources": [ { "source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally", "url": "https://www.brainiac.software/api/v1/crypto-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Uses the latest caller price at or before the event within maxPriceLagHours. Missing prices are listed and never guesse…", "Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time.", "…" ] } ``` ### POST /api/v1/crypto-tax/transfer-match $0.04 USDC. Pair outgoing and incoming transfers between the caller's own wallets by txHash or amount/time so they are not treated as disposals. Inputs: ledger, windowMinutes?, maxFeeRatio? Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-transfer-match Example request: ```json { "windowMinutes": 120, "maxFeeRatio": 0.02, "ledger": [ { "id": "t1", "ts": "2026-01-01T10:00:00Z", "type": "transfer_out", "asset": "BTC", "qty": "1.0000", "fiatValue": 0, "feeFiat": 0, "wallet": "a" }, { "id": "t2", "ts": "2026-01-01T10:20:00Z", "type": "transfer_in", "asset": "BTC", "qty": "0.9998", "fiatValue": 0, "feeFiat": 0, "wallet": "b" } ] } ``` Example response: ```json { "pairs": [ { "outId": "t1", "inId": "t2", "asset": "BTC", "fee": "0.0002", "matchedBy": "amount_time" } ], "unmatchedOut": [], "unmatchedIn": [], "warnings": [], "sources": [ { "source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally", "url": "https://www.brainiac.software/api/v1/crypto-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Pairs by identical txHash first, then earliest same-asset in on a different wallet within windowMinutes where 0 ≤ out−i…", "Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time.", "…" ] } ``` ### POST /api/v1/crypto-tax/network-fee-allocate $0.02 USDC. Assign network/gas fees to acquisition basis, disposal proceeds, expense or fee-asset disposal per caller policy. Inputs: fees, policy Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-network-fee-allocate Example request: ```json { "fees": [ { "id": "f1", "relatedId": "s1", "context": "disposal", "asset": "ETH", "qty": "0.002", "fiatValue": 500 } ], "policy": { "acquisition": "add_to_basis", "disposal": "deduct_from_proceeds", "transfer": "expense", "failed_tx": "ignore" } } ``` Example response: ```json { "adjustments": [ { "feeId": "f1", "target": "s1", "action": "deduct_from_proceeds", "amount": 500 } ], "feeAssetDisposals": [], "sources": [ { "source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally", "url": "https://www.brainiac.software/api/v1/crypto-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Maps each fee context to the caller policy. disposal_of_fee_asset emits a disposal of the fee asset at fiatValue for la…", "Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time.", "…" ] } ``` ### POST /api/v1/crypto-tax/tax-loss-harvest $0.03 USDC. List open lots with unrealised losses at caller prices and an estimated tax saving, with US/UK rule flags. Inputs: openLots, prices, marginalRate, jurisdiction, asOf Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-tax-loss-harvest Example request: ```json { "openLots": [ { "lotId": "b2", "asset": "BTC", "qty": "1", "basis": 2000000, "acquired": "2025-06-01" } ], "prices": { "BTC": 1500000 }, "marginalRate": 0.24, "jurisdiction": "US", "asOf": "2026-11-14" } ``` Example response: ```json { "candidates": [ { "lotId": "b2", "unrealisedLoss": 500000, "estimatedTaxSaving": 120000, "flags": [ "check_current_wash_sale_rules" ], "asset": "BTC", "qty": "1", "basis": 2000000, "value": 1500000 } ], "totalLoss": 500000, "asOf": "2026-11-14", "sources": [ { "source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally", "url": "https://www.brainiac.software/api/v1/crypto-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Estimated tax saving is unrealisedLoss × marginalRate only; it is not a filing figure.", "UK flags the 30-day bed-and-breakfast rule; US flags that wash-sale applicability to digital assets is not decided here.", "…" ] } ``` ### POST /api/v1/crypto-tax/derivatives-pnl $0.03 USDC. Compute realised P/L for linear perpetuals/futures and options including fees and funding from caller trade inputs. Inputs: trades Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-derivatives-pnl Example request: ```json { "trades": [ { "id": "p1", "instrument": "BTC-PERP", "kind": "linear_future", "side": "long", "qty": "0.5", "entryPrice": 6000000, "exitPrice": 6200000, "fees": 3000, "fundingPayments": [ -1200, 800 ] } ] } ``` Example response: ```json { "trades": [ { "id": "p1", "instrument": "BTC-PERP", "grossPnl": 100000, "fees": 3000, "funding": -400, "netPnl": 96600 } ], "total": 96600, "sources": [ { "source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally", "url": "https://www.brainiac.software/api/v1/crypto-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Linear futures: (exit−entry)×qty for long, reversed for short. Options use caller premium and settlement. Inverse/coin-…", "Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time.", "…" ] } ``` ### POST /api/v1/crypto-tax/unrealized-snapshot $0.04 USDC. Replay a ledger to a date with a cost-basis method and report holdings, basis, unrealised gain, dust and unpriced assets at caller prices. Inputs: ledger, asOf, prices, method?, feePolicy?, dustThresholdFiat?, fiatCurrency? Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-unrealized-snapshot Example request: ```json { "asOf": "2026-12-31T23:59:59Z", "prices": { "BTC": 9000000 }, "method": "FIFO", "dustThresholdFiat": 100, "fiatCurrency": "USD", "ledger": [ { "id": "b1", "ts": "2025-01-01T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "1", "fiatValue": 1000000, "feeFiat": 0, "wallet": "w1" }, { "id": "b2", "ts": "2025-02-01T00:00:00Z", "type": "buy", "asset": "BTC", "qty": "1", "fiatValue": 2000000, "feeFiat": 0, "wallet": "w1" }, { "id": "s1", "ts": "2025-03-01T00:00:00Z", "type": "sell", "asset": "BTC", "qty": "1.5", "fiatValue": 4500000, "feeFiat": 0, "wallet": "w1" } ] } ``` Example response: ```json { "holdings": [ { "asset": "BTC", "qty": "0.5", "basis": 1000000, "value": 4500000, "unrealised": 3500000 } ], "dust": [], "unpriced": [], "openLots": [ { "lotId": "b2", "asset": "BTC", "qty": "0.5", "basis": 1000000, "acquiredTs": "2025-02-01T00:00:00Z", "wallet": "w1" } ], "asOf": "2026-12-31T23:59:59Z", "method": "FIFO", "sources": [ { "source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally", "url": "https://www.brainiac.software/api/v1/crypto-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Holdings replay the ledger to asOf with FIFO. Assets below dustThresholdFiat are listed under dust.", "Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time.", "…" ] } ``` ### POST /api/v1/crypto-tax/exchange-csv-normalize $0.03 USDC. Convert a caller CSV export into the shared ledger schema using a caller column mapping, or return a mapping template from headers. Inputs: csv, mapping?, wallet?, fiatCurrency? Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-exchange-csv-normalize Example request: ```json { "csv": "Date,Type,Asset,Amount,Total\n2026-01-02 10:00:00,Buy,BTC,0.1,4000.00\n", "mapping": { "ts": { "column": "Date", "format": "yyyy-MM-dd HH:mm:ss", "timezone": "UTC" }, "type": { "column": "Type", "values": { "Buy": "buy", "Sell": "sell" } }, "asset": "Asset", "qty": "Amount", "fiatValue": { "column": "Total", "scale": 100 } }, "wallet": "exchange-1", "fiatCurrency": "USD" } ``` Example response: ```json { "ledger": [ { "id": "row-2", "ts": "2026-01-02T10:00:00+00:00", "type": "buy", "asset": "BTC", "qty": "0.1", "fiatValue": 400000, "feeFiat": 0, "wallet": "exchange-1", "txHash": null, "counterAsset": null, "counterQty": null } ], "rejectedRows": [], "mappingTemplate": null, "fiatCurrency": "USD", "sources": [ { "source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally", "url": "https://www.brainiac.software/api/v1/crypto-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "RFC 4180 CSV with caller column mapping only. Timestamps are emitted with an offset. No built-in exchange formats are s…", "Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time.", "…" ] } ``` ### POST /api/v1/crypto-tax/missing-basis-detect $0.03 USDC. Replay balances to find disposal-without-acquisition, negative balance, unmatched transfer-in and unpriced events before gains are computed. Inputs: ledger, prices? Docs: https://www.brainiac.software/api/crypto-tax/docs#crypto-tax-missing-basis-detect Example request: ```json { "ledger": [ { "id": "s9", "ts": "2026-01-01T00:00:00Z", "type": "sell", "asset": "SOL", "qty": "1", "fiatValue": 100, "feeFiat": 0, "wallet": "w1" } ] } ``` Example response: ```json { "issues": [ { "asset": "SOL", "firstTxId": "s9", "kind": "disposal_without_acquisition" }, { "asset": "SOL", "firstTxId": "s9", "kind": "negative_balance" } ], "ok": false, "sources": [ { "source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally", "url": "https://www.brainiac.software/api/v1/crypto-tax", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Replays balances per asset and reports the earliest offending transaction per asset and kind.", "Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time.", "…" ] } ```