Cost Basis overview
Send the transactions your platform already records. Taxbit builds lot-level inventory from them and calculates realized gains and losses under the cost-basis method that applies.
How it works
- You send transactions. Acquisitions, dispositions, and transfers, with timestamps and asset amounts.
- Inventory updates automatically. Each processed transaction triggers a background recalculation that matches dispositions to lots.
- You retrieve gains. Short-term and long-term gains per account, ready for tax screens in your app or a 1099-DA.
Inventory updates in the background, so it lags the transactions you send. The lag depends on where the transaction falls in the account's history. See how long the lag is. To know when inventory is current, subscribe to the INVENTORY_UPDATE webhook and poll as a fallback. Delivery is not guaranteed after every write. See how to know when figures are current.
Guides
Work through these in order the first time.
- Configure your assets: the crypto and precious-metal assets your platform supports, before you send any transactions.
- Send transactions and read gains: the end-to-end flow, from sending transactions to retrieving gains.
- Choose a cost-basis method: HIFO (highest in, first out), FIFO (first in, first out), LIFO (last in, first out), and LOFO (lowest in, first out), where each is set, and what changing one does.
- Handle transfers: move basis between accounts without creating a taxable event.
- Show tax data in your app: show unrealized positions and year-to-date gains in your own UI.
API resources
Updated 14 days ago
