Skip to main content

Swap management

Learn how to manage swap transactions executed on exchanges and other DeFi protocols.

Updated over a month ago

Below is the procedure for handling swap transactions that occurred on wallets or DeFi protocols. While these may not be automatically recognized as trades in CryptoBooks, they still represent actual trading activity.

CryptoBooks typically imports such transactions as separate deposits and withdrawals, but users can manually link them and classify the pair as a trade.

Doing so ensures that the outgoing transaction is excluded from capital gains calculations, unless required otherwise by the tax regulations of the user’s country.


How to manage swaps

  1. click on Transactions from the main menu on the left

  2. locate the transaction to link as a swap from the list and click on the three dots

  3. now click on Edit

  4. select Swap from the dropdown menu, then click on Save changes

  5. CryptoBooks will indicate the absence of the related transaction

  6. repeat the procedure for the other transaction (if you worked on the deposit earlier, it will be the withdrawal, or vice versa).

  7. now go to the Alerts page and click on Fix Swaps inside the warning banner

  8. you will visualize the transactions that need to be linked, then click on Fix

  9. the software will ask you to link a transaction, click on Select to choose the transaction to pair-click on Create new if you haven't entered the transaction yet

  10. by clicking on Select the software will suggest the transaction to link, to complete the pairing click on Select and link

  11. done! the outgoing and incoming transactions are now linked together as a swap

Did this answer your question?