All AI Data API - Capital gains by tax lot: FIFO, LIFO, HIFO, average cost and specific lots for a sale
https://allai-api.allaihq.workers.dev/v1/tools/cost_basis_lots_calcOverview
Matches a sale against purchase lots using FIFO, LIFO, HIFO (highest cost first), lowest cost, or average cost, giving the cost basis, proceeds, realized gain or loss, short-term versus long-term split by holding days (over 365 days is long-term), remaining lots and a comparison across methods. Fees can be included. Planning arithmetic; wash-sale and jurisdiction rules are not $0.004 per successful call (USDC on Base). 3 free trial calls a day. Operated by All AI LLC.
Health
x402 Payment Validation
Recent Health Checks
| Time | Status | HTTP | Latency | Error |
|---|---|---|---|---|
| 2026-12-05 08:38:40 | healthy | 402 | 346ms | |
| 2026-12-05 07:34:57 | healthy | 402 | 347ms | |
| 2026-12-05 06:32:36 | healthy | 402 | 374ms | |
| 2026-12-05 05:32:24 | healthy | 402 | 393ms | |
| 2026-12-05 03:44:36 | healthy | 402 | 354ms | |
| 2026-12-05 02:34:11 | healthy | 402 | 1001ms | |
| 2026-12-05 01:33:11 | healthy | 402 | 352ms | |
| 2026-12-04 17:33:32 | healthy | 402 | 3748ms |