added todos back in

This commit is contained in:
Sam Germain
2022-02-16 05:47:41 -06:00
parent a2b84561fe
commit a9eb8ce1bf
2 changed files with 3 additions and 0 deletions

View File

@@ -127,6 +127,8 @@ class Backtesting:
self.config['startup_candle_count'] = self.required_startup
self.exchange.validate_required_startup_candles(self.required_startup, self.timeframe)
# TODO-lev: This should come from the configuration setting or better a
# TODO-lev: combination of config/strategy "use_shorts"(?) and "can_short" from the exchange
self.trading_mode = TradingMode(config.get('trading_mode', 'spot'))
self._can_short = self.trading_mode != TradingMode.SPOT