@FairValue No realized profit. If the Bitcoin continues to fall and I swap back, then I want the cost basis to be taken along. Let's say I bought Bitcoin with a cost basis of 50,000, it has risen to 90,000 and I swap to USDC. If Bitcoin then falls to 70,000 and I swap back, the cost basis is of course lower than 70,000. But maybe I'm thinking wrong.
@MrVice Yes, that is a mistake. An exchange into a stablecoin is more or less the same as an exchange into euros, dollars, etc., i.e. a sale with possible realization of a profit (according to individual valuation or FIFO principle) If you buy BTC for 50k, it rises to 90k and you exchange into USDC, you realize a profit of 40k at that moment.
@PowerWordChill How would you handle this? My idea would be to have only one transaction per coin and to change the respective cost basis if necessary. I determine the cost basis with Blockpit.