Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion octobot/backtesting/independent_backtesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ def _find_reference_market(self):
self.logger.error(f"Mixed inverse and linear contracts backtesting are not supported yet")
self.octobot_backtesting.futures_contract_type = trading_enums.FutureContractType.LINEAR_PERPETUAL
# in inverse contracts, use BTC for BTC/USD trading as reference market
return symbol.settlement_asset
if symbol.settlement_asset:
# only use settlement asset if available
return symbol.settlement_asset
for symbol in symbols:
quote = symbol.quote
if ref_market_candidate is None:
Expand Down