Analyzing the data, I noticed that Koinly correctly reports the PnL, which appears to be net of fees. The problem is that the same fees are then entered as Deposit, thus distorting the balance. The attached images clearly show the problem, and comparing it with the Bitunix CSV confirms this. The position fee shouldn't be imported as it's already calculated within the PnL.