← Back to directory

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_calc

Overview

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.

Protocol x402 (POST)
Price $0.0040
Payment Asset USDC
Payment Network base
Category data
Provider All AI LLC (All AI Data API)
Source self-registered
Indexed 2026-12-04 16:38:38

Health

Status healthy
Latency (p50) 374ms
Uptime (30d) 100.0%
Reliability Score 87/100
Last Checked 2026-12-05 08:38:40
Last Healthy 2026-12-05 08:38:40
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

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