Margin Trading Cost Basis incorrect

I received an email regarding margin trading tax rules incorrectly calculating. An update was done.

Since this time my cost basis for any transactions is incorrect, and no trading losses are calculated for. It was correct prior to the update. Can you tell me what changed regarding tax rules?

Welcome to the CoinTracker forum Aquafina. We have now fixed the margin trading calculations to correctly remove capital gains for opening and closing positions, as well as correctly calculate capital gains/losses on liquidations (e.g. if you have an appreciated asset as a collateralized asset that is margin liquidated, that results in a capital gain). This was originally not working correctly in all cases but now has been corrected for all affected users.