This article explains how to adjust your transactions when cross-collateral was used. Exchanges that allow cross-collateral include Deribit, Binance Futures and Bitget Unified Account.
The solution in this article should not be used if the "missing purchase history" warnings are caused by other issues like missing trades, duplicated transactions, etc.
What is cross-collateral
Some exchanges and defi protocols allow you to use cross-collateral: assets held in your account can automatically "back" your other trading activity.
This is a de facto loan you receive, with your other assets used as collateral. However, this loan is not reported by the exchange anywhere.
Since the loan is missing, you may see "missing purchase history" warnings in Koinly after importing your data because of this, even though your final balance of the tokens you traded is correct.
Accounting for cross-collateral
The steps below explain what to do if you traded using cross-collateral.
đ¨ Ensure no other errors
Account for cross-collateral only once you fixed all other errors and you are certain that all the remaining problems are due to cross-collateral. Otherwise, you may be creating a fake image of your trading activity, causing calculations to be inaccurate.
Locate transactions that show "missing purchase history"
Confirm with your own documentation that in this transaction cross-collateral was used (ie you used funds you didn't really have)
Add a manual deposit equal to the missing amount, tag is as
LoanNote the amount you added this way
Check the ledger entries for this asset to see when the running balance is above the amount you added (usually - once some of your position was closed)
Add a manual withdrawal equal to the amount you added, tag it as
Loan repayment
Repeat the same process for all other instances where you see "missing purchase history".