Divly imports margin trades, futures, and derivatives using the labels Realized Profit and Realized Loss.
Realized Profit: The entire value is accounted for as a profit and taxed accordingly. If paid in crypto, your cost basis of the crypto will increase by the same amount.
Realized Loss: The entire value is accounted for as a loss and taxed accordingly. You can see it as the same as selling the cryptocurrency for 0 USD. The cost basis is decreased accordingly if the loss was realized in crypto.