Skip to content

Commit e488e87

Browse files
Guillaume De Saint MartinGuillaumeDSM
authored andcommitted
[Cython] compatibility fix
1 parent fb573a4 commit e488e87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

octobot/backtesting/independent_backtesting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)