Investors & landlords

you have not provided complete details  - basically, you had two buys and two sells. the buy and liquidation of the crypto and the buy and liquidation of whatever you bought on margin.