I realized that you are not considering the funding rates in trades on Bybit ( I assume it is the same for all crypto perp exchanges). This leads to wrong data, but i could also actively manipulate my reports.