refactor: don't assume all exchanges support spot markets

This commit is contained in:
Matthias
2025-07-13 10:27:33 +02:00
parent 1f52ff3f94
commit f889061b95
8 changed files with 12 additions and 10 deletions

View File

@@ -169,7 +169,8 @@ class Exchange:
_ft_has_futures: FtHas = {}
_supported_trading_mode_margin_pairs: list[tuple[TradingMode, MarginMode]] = [
# TradingMode.SPOT always supported and not required in this list
# Non-defined exchanges only support spot mode.
(TradingMode.SPOT, MarginMode.NONE),
]
def __init__(