From ef429afb6fbbee356986b2660f81a65fdbd29fa1 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Sat, 31 Jul 2021 01:22:48 -0600 Subject: [PATCH] Removed is_oeing_trade is_closing_trade --- freqtrade/persistence/models.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index e886a58da..2cc7f51be 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -511,20 +511,6 @@ class LocalTrade(): f"Trailing stoploss saved us: " f"{float(self.stop_loss) - float(self.initial_stop_loss):.8f}.") - def is_opening_trade(self, side) -> bool: - """ - Determines if the trade is an opening (long buy or short sell) trade - :param side (string): the side (buy/sell) that order happens on - """ - return (side == 'buy' and not self.is_short) or (side == 'sell' and self.is_short) - - def is_closing_trade(self, side) -> bool: - """ - Determines if the trade is an closing (long sell or short buy) trade - :param side (string): the side (buy/sell) that order happens on - """ - return (side == 'sell' and not self.is_short) or (side == 'buy' and self.is_short) - def update(self, order: Dict) -> None: """ Updates this entity with amount and actual open/close rates.