File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -362,11 +362,11 @@ def _find_reference_market(self):
362362 if next (iter (self .octobot_backtesting .exchange_type_by_exchange .values ())) \
363363 == common_constants .CONFIG_EXCHANGE_FUTURE :
364364 if symbol .is_inverse ():
365- if not all (symbol .is_inverse () for symbol in symbols ):
365+ if not all ([ symbol .is_inverse () for symbol in symbols ] ):
366366 self .logger .error (f"Mixed inverse and linear contracts backtesting are not supported yet" )
367367 self .octobot_backtesting .futures_contract_type = trading_enums .FutureContractType .INVERSE_PERPETUAL
368368 else :
369- if not all (symbol .is_linear () for symbol in symbols ):
369+ if not all ([ symbol .is_linear () for symbol in symbols ] ):
370370 self .logger .error (f"Mixed inverse and linear contracts backtesting are not supported yet" )
371371 self .octobot_backtesting .futures_contract_type = trading_enums .FutureContractType .LINEAR_PERPETUAL
372372 # in inverse contracts, use BTC for BTC/USD trading as reference market
You can’t perform that action at this time.
0 commit comments