From 6c7a4230ada5051bb8415e1444f0b2043ede5ae5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 16 Jan 2022 14:24:28 +0100 Subject: [PATCH] Update comment about funding_fees calculation --- freqtrade/persistence/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index 609a8c18c..3e45c0fbf 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -728,6 +728,8 @@ class LocalTrade(): elif (trading_mode == TradingMode.FUTURES): funding_fees = self.funding_fees or 0.0 + # Positive funding_fees -> Trade has gained from fees. + # Negative funding_fees -> Trade had to pay the fees. if self.is_short: return float(self._calc_base_close(amount, rate, fee)) - funding_fees else: