Crypto & DeFi
Match a crypto sale against buy lots (FIFO / LIFO / HIFO), returning realized gain/loss split short- vs long-term (IRS >365-day rule) plus the remaining lots.
Match a crypto sale against buy lots (FIFO / LIFO / HIFO), returning realized gain/loss split short- vs long-term (IRS >365-day rule) plus the remaining lots.
Payment: x402 ($0.25 USDC on eip155:8453). Call unpaid to receive an HTTP 402 with requirements, then retry with the PAYMENT-SIGNATURE header. Method: order lots by method (FIFO=oldest, LIFO=newest, HIFO=highest cost); consume the sale qty; per matched portion gain = qty*(sellPrice - lotPrice), term = long if held > 365 days else short
post/v1/crypto/tax-lots
Request
- Base URL: (relative, and it does not resolve against the document’s source URL)
- URL: /v1/crypto/tax-lots
- Auth: none declared
Request body
Response
Verified result + provenance (formula, sources, reproducible SHA-256 hash).
Changes
No recorded changes to this operation across all 1 revision of this API.