A Koinly Missing Purchase History warning means the imported records do not explain where some disposed coins came from. Koinly can then assign zero cost basis to the unexplained quantity, making the calculated gain appear much larger. The reliable fix is not to hide the warning or invent a purchase price. It is to reconstruct the transaction chain, remove duplicates, correct imports and reconcile every wallet before generating the tax report.
Last reviewed: November 6, 2026. Koinly imports, integrations, warning names, menus and calculation behavior can change. Tax classification and acceptable evidence vary by country. Preserve original records, confirm the current Help Center instructions and consult a qualified tax professional for jurisdiction-specific treatment. This independent guide is educational and is not tax, accounting or legal advice.
1. What does Missing Purchase History mean?
Koinly shows this warning when its imported ledger records a disposal of more units than it can account for at that time. If the history shows a purchase of 1 BTC followed by a sale of 1.5 BTC, the additional 0.5 BTC has no imported acquisition.
The warning describes a data problem, not proof that the asset was actually obtained for free.
2. Why Koinly may use zero cost basis
Without an acquisition date and value, Koinly cannot establish the missing lot’s cost from the available history. Its official guidance explains that the unexplained quantity can receive zero cost basis, which makes its disposal value appear as gain.
A zero basis can be correct in limited circumstances under local rules, but it should not be accepted merely because a purchase failed to import.
3. Do not type an arbitrary cost basis
Koinly calculates cost basis from previous transactions and the selected accounting rules. The proper repair is to restore the real acquisition or correct the transaction chain. Choosing a number that makes the report look reasonable breaks the audit trail.
Evidence can include exchange trade history, bank records, wallet transactions, blockchain hashes, old CSV files, emails and prior-year tax workpapers.
4. The visible warning may be far from the original error
A sale in 2026 can expose a missing acquisition from 2021. The coin may also have passed through several personal wallets, bridges or token migrations. Editing only the final sale will not restore the original lot.
Move backward chronologically until the first point where Koinly’s ledger diverges from reality.
5. Common causes at a glance
| Cause | Typical symptom | First check |
|---|---|---|
| Missing old purchase | Zero basis on a later disposal | Import complete historical trade data |
| Duplicate sale | Negative calculated balance | Compare transaction IDs and source files |
| Wrong timezone | Sale appears before acquisition | Confirm source timezone and UTC offset |
| API limitation | Reported and calculated balances differ | Review integration limitations |
| API and CSV overlap | Near-duplicate trades or fees | Identify overlapping import periods |
| Unmatched transfer | Withdrawal and deposit treated separately | Compare hash, time, quantity and fee |
| Wrong token | Generic icon or missing price | Verify contract and currency identity |
| Spam token | Unknown deposit or poisoning withdrawal | Do not interact; verify on explorer |
6. Back up before changing anything
- Export the current Koinly transaction history and reports.
- Keep original exchange CSV files unchanged.
- Record API wallet names, settings and import dates.
- Capture the warning, affected transaction and report totals.
- Save blockchain explorer links and account statements.
- Document manual edits, merges and rules already applied.
A clean backup lets you compare before and after and recover from an edit that made the ledger worse.
7. Build a complete wallet inventory
List every exchange, self-custody address, hardware wallet, staking account, DeFi protocol and closed platform used during the asset’s ownership. Include old wallets even when their current balance is zero.
See our Koinly first tax report setup guide for the broader inventory and import workflow.
8. Calculated, reported and actual balances
| Balance | Source | Purpose |
|---|---|---|
| Calculated balance | Sum of imported Koinly transactions | Tests whether the history is internally complete |
| Reported balance | API or integration response | Comparison supplied by the external source |
| Actual balance | Exchange account or blockchain | Real-world control total |
When calculated balance is wrong, the transaction history requires repair. When only the reported balance differs, first investigate API reporting, staking, pending activity or rounding.
9. Which balance differences matter?
Tiny differences can result from rounding, precision or dust. A material unexplained quantity, negative balance or mismatch that affects a disposal needs investigation.
Do not create fake transactions solely to force every decimal to match. Determine whether the difference affects lots, gains, income or the tax report.
10. Start with the earliest broken disposal
- Open the warning transaction.
- Identify the exact asset and missing quantity.
- Open the asset ledger or cost analysis.
- Move backward to the most recent valid balance.
- Compare each later event with the source records.
- Fix the earliest divergence first.
One restored acquisition can clear multiple later warnings. Fixing later symptoms first can create additional duplicates.
11. Review API limitations
An exchange or blockchain API may not provide complete historical data. It may omit old trades, staking, earn products, loans, fiat activity, migrations or certain internal transfers. Koinly lists known limitations in the integration setup.
Changing API permissions cannot make an exchange return data it no longer exposes. Use official CSV or manual evidence when the integration cannot retrieve the missing event.
12. Try a full resync carefully
A full resync can recover records after an integration improvement or temporary API issue. Recheck transaction count, earliest date, warnings and balances afterward.
Resync is not proof of completeness. If the source API has a history limit, the same gap can remain.
13. When to recreate a wallet
Recreating a wallet can be more reliable than repairing years of overlapping imports and manual edits. Before deletion, preserve all source data and identify changes that will not return automatically.
After recreating it, import one clean source, check balances and warnings, and only then add necessary manual corrections.
14. API and CSV should not overlap
Koinly advises against mixing API and CSV data in the same wallet because their representations can differ. One source may contain individual fills while another contains aggregated orders; timestamps, fees and rounding can also differ.
Those entries are economically related but not exact duplicates, so both can be imported.
15. A safe CSV-to-API transition
If historical API coverage is incomplete, a controlled boundary can be used: CSV covers activity through a documented date, and API begins after that date. Avoid any overlap and verify the boundary transactions.
Koinly notes that a start-import date may be available for standard API-key integrations but not every OAuth connection.
16. How duplicate detection works
Koinly skips transactions it considers exact duplicates. Matching can use date and time, asset, amount, transaction hash and other details. If one field differs, both records can survive.
17. Why near-duplicates pass detection
- One file is in UTC and another in local time.
- One source rounds the quantity.
- API returns fills while CSV returns an order total.
- Fees are included in one source and separate in another.
- A transaction hash or ID is missing.
- A manual entry uses a different timestamp.
18. How to choose which duplicate to remove
Compare both records with the original exchange statement. If one is already matched to the opposite side of a transfer and the other is a loose deposit or withdrawal, investigate the loose entry first.
Preserve the version with the best source identifiers, fee detail and correct timestamp. Record why the other was removed.
19. Deleted versus permanently deleted
A crossed-out transaction remains stored and can prevent the same exact event from being imported again. Restore it when deletion was a mistake. Permanent deletion removes that retained record, but should be used only when reimporting is intentional and the source remains available.
Repeatedly importing files without understanding this behavior can make troubleshooting confusing.
20. Timezone errors can reverse chronology
If a local-time CSV is interpreted as UTC, a disposal can appear before its acquisition. This is especially common when trades occur close together or around midnight.
Confirm the source timezone from exchange documentation. Apply one consistent offset to the raw import rather than editing individual timestamps until the warning disappears.
21. Import all years needed for cost basis
A current-year tax report still depends on lots acquired in earlier years. Include historical purchases, deposits, withdrawals, fees, airdrops, forks, staking rewards and migrations that explain current disposals.
Do not limit the import to the reporting year unless every opening lot has already been accurately established and documented.
22. Repair unmatched transfers
A personal transfer should connect a withdrawal from one owned wallet with a deposit to another. Matching can fail when time, quantity, asset or network data differ.
Compare transaction hash, source and destination addresses, network, timestamp and fee. Merge only events that represent the same real transfer.
23. Network fees explain quantity differences
A user may send 1 ETH and receive less because the fee was deducted from the transferred asset. The difference is not automatically a sale or missing acquisition.
Use the exchange withdrawal record and blockchain receipt to determine whether the fee was separate or deducted. Avoid inventing a deposit to balance the units.
24. Split an implausible merge
An incorrect merge can hide chronology and connect unrelated transactions. Split the entry and inspect the original legs. Koinly’s troubleshooting guidance notes that an apparent acquisition can display before a sale only because later fills were merged into one trade.
After splitting, determine whether data is missing or whether a source timestamp is wrong.
25. Manual transactions require evidence
Add a manual event only when it really occurred and cannot be imported. Record the exact date, asset, quantity, transaction type, value and supporting evidence.
A fabricated deposit clears a screen warning by replacing it with inaccurate tax data. That is not reconciliation.
26. Airdrops, forks and signup bonuses
Some assets genuinely arrive without an ordinary purchase. Import the actual receipt and classify it under applicable local tax rules rather than creating a fictional trade.
The receipt value, income treatment and later cost basis can vary by jurisdiction. Koinly tags assist calculation but do not decide the law.
27. Spam tokens and address poisoning
Unknown tokens can be sent to public addresses without consent. Poisoning transactions may resemble a familiar address or token and create misleading withdrawals. Never visit a URL embedded in a token or approve its contract merely to identify it.
Verify the contract on a trusted explorer and compare it with the legitimate asset.
28. Mark as Spam versus deleting one entry
Koinly can mark an individual transaction or an entire token as spam. Token-level treatment creates a rule that can hide existing and future records for that token. Custom rules can be reviewed in Settings, while global spam rules are maintained by Koinly.
Do not mark an asset as spam if you traded it or received it through a real taxable event. Removing a spam rule can restore hidden transactions.
29. Wrong Token and Change Currency
A generic icon, missing price or unexpected balance can mean that Koinly mapped a symbol to the wrong asset. Symbols are not unique; contract address and network identify tokens more reliably.
Use Change Currency only after confirming the correct asset. Changing a spam token into a valuable token can create false income and basis.
30. Distinguish the warning types
| Warning | What is missing or wrong | Typical repair |
|---|---|---|
| Missing Purchase History | Acquisition for disposed units | Restore transaction chain |
| Missing Market Price | Fair market value at a timestamp | Verify token and set supported value |
| Balance mismatch | Imported history does not explain holdings | Find missing or duplicate events |
| Wrong Token | Incorrect asset identity | Verify contract and change currency |
| Duplicate | Same event represented more than once | Keep the accurate sourced record |
31. Missing Market Price is a different problem
Koinly normally uses pricing sources to set fair market value. A real low-cap token may have no price for the transaction date. Setting Worth can establish value for that event, but it does not supply a missing acquisition elsewhere.
If the token is recognized incorrectly, fix identity before entering a custom value.
32. Why the dashboard can still show zero
A manually entered transaction value applies to that transaction. The dashboard’s current market value can remain zero if the token has no supported live price. This does not necessarily prevent correct gain calculation when historical transaction values are complete.
Custom price history requires maintenance and evidence; it should not be guessed from an illiquid listing.
33. Token migrations and rebrands
A project can replace its contract, ticker or unit ratio. Missing migration legs can make the old token disappear and the new token appear without basis.
Collect the official migration ratio, transaction hashes and dates. Determine local tax treatment before assigning Swap or other tags.
34. Bridges and Layer 2 networks
A bridge can produce a withdrawal on one network and receipt of a wrapped or canonical asset on another. Fees, delays and contract changes can prevent automatic matching.
Import both networks, follow the bridge transaction and verify whether ownership continued or an actual exchange occurred under applicable rules.
35. DeFi and liquidity pool activity
Liquidity In, Liquidity Out, Swap, staking, lending, repayment and reward events can move or transform basis differently according to settings and jurisdiction. An incorrect tag can push value into another asset and create a surprising later gain.
Do not use Swap simply to suppress a taxable result. Review the protocol actions and selected Koinly settings.
36. Why stablecoin basis may not equal one dollar
Stablecoin basis can reflect real price variation, fees, foreign currency, settings, inherited basis or liquidity-pool treatment. Koinly’s official troubleshooting examples show that when crypto-to-crypto gains are not realized, basis can transfer into the stablecoin and appear later.
Investigate prior transactions before forcing USDT or USDC to exactly $1.
37. Complete repair workflow
| Stage | Action | Control |
|---|---|---|
| Preserve | Export and save original evidence | Before totals and warnings |
| Locate | Find earliest unexplained disposal | Asset ledger and quantity |
| Trace | Follow lots through every wallet | Statements and explorers |
| Diagnose | Check imports, duplicates, time and identity | One documented root cause |
| Repair | Correct the earliest broken event | No fabricated transactions |
| Recalculate | Let Koinly rebuild basis and reports | Warnings and balances |
| Validate | Compare report and source totals | Documented audit trail |
38. What not to do
- Do not invent a purchase or cost basis.
- Do not delete a real sale to remove a gain.
- Do not mark a traded token as spam.
- Do not mix overlapping API and CSV data casually.
- Do not change timestamps without source evidence.
- Do not merge transactions only because quantities look similar.
- Do not generate a final report while material warnings remain unexplained.
39. Validate after every correction
Recalculate and check transaction count, calculated balances, negative balances, warning count, transfer matches, realized gains, income and fees. Compare the current report with the saved before version.
A warning disappearing is not enough. The result must also agree with external evidence and remain logically consistent across years.
40. Preserve an audit trail
Keep source CSVs, API setup notes, explorer links, screenshots, correction dates and a short explanation for every manual edit. Save report versions and reconcile changes in gains or income.
Our Koinly crypto tax audit checklist explains how to organize the final evidence package.
41. When to contact support or a professional
Contact Koinly Support when an integration omits data contrary to its documentation, a supported token is mapped incorrectly, a file is rejected or ledger behavior cannot be explained. Provide non-sensitive examples and transaction IDs.
Use a qualified tax professional when the data is complete but legal classification is uncertain, especially for DeFi, loans, liquidations, migrations, airdrops, lost assets or method changes.
42. Frequently asked questions
Can I manually set cost basis in Koinly?
Koinly derives basis from prior transactions. Restore the real acquisition and its value rather than inserting an arbitrary basis.
Why is my calculated balance negative?
Koinly records more disposals than acquisitions at that point. Look for missing history, duplicates, wrong timestamps or unmatched transfers.
Should I import transactions from previous years?
Yes, when they establish the basis of assets disposed in the reporting year.
Can I use API and CSV in the same wallet?
Koinly generally advises against overlapping them. If a controlled transition is required, use a clear non-overlapping date boundary.
Why did Koinly miss a duplicate?
The two representations may differ in time, rounding, fees, hashes or aggregation, so they are not exact duplicates.
Why will a deleted transaction not reimport?
A crossed-out transaction remains stored for duplicate detection. Restore it or permanently delete it only when a clean reimport is intended.
Can timezone cause Missing Purchase History?
Yes. A shifted timestamp can place a disposal before its acquisition.
Should I mark an unknown token as spam?
Only after verifying that it was unsolicited and not genuinely traded or earned. Never interact with its contract merely to investigate it.
Is Missing Market Price the same as Missing Purchase History?
No. One lacks a price at a time; the other lacks the acquisition history for disposed units.
Why does USDT have basis above $1?
Prior settings, fees, depeg, currency conversion or transferred basis can cause it. Trace earlier transactions before editing.
Should I file with unresolved warnings?
Material unresolved warnings can distort gains, income and balances. Investigate them and obtain professional advice when the correct treatment is uncertain.
Official sources and further reading
These official Koinly resources support the repair workflow in this guide:
- Koinly Blog — current crypto tax news, strategies and product guidance.
- Koinly Help Center — Missing Purchase History — zero cost basis, causes and official repair guidance.
- Koinly Help Center — Some transactions are missing — API, CSV and blockchain-wallet troubleshooting.
- Koinly Help Center — Duplicate detection — exact duplicates, overlapping imports and deleted entries.
- Koinly Help Center — API limitations — incomplete history and integration-specific workarounds.
- Koinly Help Center — Import CSV or Excel — file imports, duplicates and API transition boundaries.
- Koinly Help Center — Import errors — skipped, failed, rejected and unrecognized data.
- Koinly Help Center — Spam tokens — spam marking, rules and restoration.
- Koinly Help Center — Wrong token imported — unrecognized assets, token identity and Change Currency.
- Koinly Help Center — Missing market prices — fair market value warnings and manual Worth.
- Koinly Help Center — Wrong wallet balance — calculated and reported balance reconciliation.
- Koinly Help Center — Troubleshoot cost basis — zero basis, stablecoins, Swap tags and liquidity pools.
Related guides: first tax report setup, cost basis settings, tax optimization and tax audit records.
A clean Koinly report begins with a complete transaction history. Repair the earliest factual error, preserve evidence and validate the entire chain afterward. Removing a warning without explaining the real acquisition can produce a polished report that is still wrong.