We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 431f0ae commit dce5b1eCopy full SHA for dce5b1e
octobot/backtesting/independent_backtesting.py
@@ -370,7 +370,9 @@ def _find_reference_market(self):
370
self.logger.error(f"Mixed inverse and linear contracts backtesting are not supported yet")
371
self.octobot_backtesting.futures_contract_type = trading_enums.FutureContractType.LINEAR_PERPETUAL
372
# in inverse contracts, use BTC for BTC/USD trading as reference market
373
- return symbol.settlement_asset
+ if symbol.settlement_asset:
374
+ # only use settlement asset if available
375
+ return symbol.settlement_asset
376
for symbol in symbols:
377
quote = symbol.quote
378
if ref_market_candidate is None:
0 commit comments