From 8a708a9892bb2a6fd4ee4d8bf3f0a55b1fcbe4b5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 23 Mar 2022 06:48:23 +0100 Subject: [PATCH] Don't assing attributes we never use --- freqtrade/freqtradebot.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 685d4a81b..0d87ca706 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -16,8 +16,7 @@ from freqtrade.configuration import validate_config_consistency from freqtrade.data.converter import order_book_to_dataframe from freqtrade.data.dataprovider import DataProvider from freqtrade.edge import Edge -from freqtrade.enums import (MarginMode, RPCMessageType, RunMode, SellType, SignalDirection, State, - TradingMode) +from freqtrade.enums import RPCMessageType, RunMode, SellType, SignalDirection, State, TradingMode from freqtrade.exceptions import (DependencyException, ExchangeError, InsufficientFundsError, InvalidOrderException, PricingError) from freqtrade.exchange import timeframe_to_minutes, timeframe_to_seconds @@ -104,9 +103,6 @@ class FreqtradeBot(LoggingMixin): LoggingMixin.__init__(self, logger, timeframe_to_seconds(self.strategy.timeframe)) self.trading_mode: TradingMode = self.config.get('trading_mode', TradingMode.SPOT) - self.margin_mode_type: Optional[MarginMode] = None - if 'margin_mode' in self.config: - self.margin_mode = MarginMode(self.config['margin_mode']) self._schedule = Scheduler()