KCB Solutions

Crypto Cost Basis CSV

Choose FIFO, LIFO, HIFO or Optimized HIFO for 1–200,000 supplied spot trades. Your CSV traces each sale to the purchase lots selected and shows cost basis, net proceeds and gain or loss.

Supply executed buys and sells with prices and fees in USD. All four methods accept coins and fungible tokens, including BTC, ETH, SOL, DOGE and ERC-20 tokens.

Workpaper pricing

Choose the lot method for your CSV. ChainIQ uses FIFO as its filing method. LIFO, HIFO and Optimized HIFO each show how the same sales would look under a different method.

Fills per workpaperEstimated total (USDC)
1–1000.05
101–4990.05–0.24
500–9990.24–0.50
1,000–9,9990.50–2.50
10,000–24,9992.50–10.00
25,000–99,99910.00–25.00
100,000–200,00025.00–45.00

One fill is one executed buy or sell. Prices are per CSV for one selected method, rounded to cents. Enter a fill count for the exact total. Zero fills incur no charge.

A fictional BTC sale

FIFO workpaper

Trade input

Opening lot

0.5 BTC acquired for $4,000 in total.

Spot sale

0.125 BTC sold for $12,345.67 per BTC with a $1.25 fee.

View trade JSON
{
  "schema": "chainiq.fifo-trades.v1",
  "authorized": true,
  "brokerReporting": "no-broker-form",
  "taxYear": 2026,
  "openingAsOf": "2026-01-02T00:00:00Z",
  "openings": [
    {"asset": "BTC", "quantity": "0.5", "basisUSD": "4000", "acquired": "2025-03-03"}
  ],
  "trades": [
    {"id": "fictional-paper-sale-alpha", "side": "sell", "asset": "BTC", "time": "2026-02-10T12:00:00Z", "quantity": "0.125", "priceUSD": "12345.67", "feeUSD": "1.25"}
  ]
}
Download trade JSON

Workpaper output

Sale allocationExact USD
Cost basis$1,000
Net proceeds$1,541.95875
Gain$541.95875

The CSV stores each USD amount as a numerator and denominator to preserve its full precision.

View CSV row and headers
"id","asset","raw_units","decimals","acquired","sold","box","basis_numerator","basis_denominator","proceeds_numerator","proceeds_denominator","gain_numerator","gain_denominator"
"exchange226/fictional-paper-sale-alpha/opening/BTC","BTC","125","3","2025-03-03","2026-02-10","I","1000","1","1233567","800","433567","800"
Download workpaper CSV

2025 FIFO gain/loss statement

Get a PDF for your records or tax preparer, with the exact FIFO CSV attached. 5 USDC extra on the normal workpaper price. Small orders start at 5.05 USDC total.

Preview the paid statement with fictional trades (PDF)

Prepare your supplied 2025 trades for free. The PDF accepts up to 1,000 sale allocations with supplied acquisition dates, cost basis and USD amounts exact to the cent. One sale can use several purchase lots. The agent receives an exact quote only for an eligible statement.

Download the buyer client · Example trades · Agent instructions (JSON)

python3 bulk_upload.py prepare trades.json --statement-2025 my-inventory --state pdf-order

Approve and pay the quote using the x402 payment steps. Then run python3 bulk_upload.py collect --state pdf-order --output statement.pdf. Save the private order directory with your PDF.

Already paid for the CSV, or correcting a statement?

Add --paid-csv PAID_CSV_STATE to pay only the 5 USDC premium for the same active FIFO upload. Unpaid staging lasts 24 hours.

For a correction, prepare the revised trades with the same inventory label, a new order directory and --replaces PRIOR_PDF_STATE. The replacement carries the prior statement ID. Each new statement has its own quote. A repeat download of the same paid PDF is free during the one-hour recovery window.

What we verified in TurboTax

In September 2026 we imported both examples into TurboTax Online DIY Premium 2025. Each showed $520 in proceeds. Replacing the original with the corrected statement changed the basis from $425 to $440 and the net gain from $95 to $80.

Download the sample statement (PDF)

Download the corrected statement (PDF)

For a new or unfinished DIY 2025 return, Intuit directs filers to TurboTax Desktop. An already-filed return may offer an online amendment in the original account. PDF import in that workflow, Desktop and 2026 Online remains unverified. Intuit’s prior-year options · Online amendment instructions

The two downloads above are the historical test files. The personalized PDF uses a new layout for records and preparer review.

Form 8949, Schedule D and realized profit and loss

Three additional PDF reports are in development for x402. Form 8949 itemizes eligible disposals. The Schedule D summary covers the supported digital-asset lines. Realized profit and loss summarizes priced sales for the period. You can check availability and fees before ordering. Report catalog for agents

How to buy with x402

Quick checkout for small orders

Send the trades directly with the payment request. There is no separate upload to prepare. Use this shortcut for 1–128 fills when every asset uses a plain BTC, ETH or SOL symbol. Choose FIFO or one of the three comparisons for the same 0.05 USDC per CSV.

Open quick checkout or POST your trades and selected method to the agent checkout endpoint.

Upload trades for any method

All four methods accept 1–200,000 supplied fills. Use this route for other assets, mixed books, explicit asset IDs, or more than 128 fills. Preparing the upload is free. The price is the same as quick checkout when both routes support your order.

Start with the multi-asset example. Supply one inventory, one opening balance per asset and your executed USD spot buys and sells. The upload accepts up to 256 fungible assets and 32 MiB of JSON. The CSV can be up to 16 MiB.

Download the Python client and run this command with your trade file. Your agent can resume the same unpaid order for 24 hours.

python3 bulk_upload.py prepare trades.json --method FIFO --state my-order
Authorize payment and collect the CSV

Read the exact USDC price in the offer. Use your payer address and that amount to create a signing request. The amount below is for 200,000 fills.

python3 bulk_upload.py authorize --state my-order \
  --payer YOUR_BASE_ADDRESS --amount-usdc 45.00

Sign my-order/typed-data.json with your Base wallet using eth_signTypedData_v4. Save the returned hex signature in signature.txt and submit it within 60 seconds.

python3 bulk_upload.py pay --state my-order \
  --signature-file signature.txt
python3 bulk_upload.py collect --state my-order \
  --output workpaper.csv

Keep the order directory private. If settlement is pending, rerun collect. The client verifies every CSV part against the paid receipt. Download within one hour of confirmation.

Choose a checkout programmatically

Send your fill count, method and asset category to the pricing API. Use btc-eth-sol when every fill uses a plain BTC, ETH or SOL symbol. Use declared-assets if any other asset or explicit venue, network, contract or mint identity is present. Use OPTIMIZED_HIFO for Optimized HIFO.

For example, 20 DOGE fills with FIFO go to upload for 0.05 USDC. The same fills with HIFO also use upload at 0.05 USDC. Follow firstRequest only when checkoutAvailable is true. A different method requires a new selection.