Added name for futures market property

This commit is contained in:
Sam Germain 2021-10-23 01:13:59 -06:00
parent 3eda9455b9
commit d99e0dac7b
3 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class Binance(Exchange):
# (TradingMode.FUTURES, Collateral.CROSS), # TODO-lev: Uncomment once supported
# (TradingMode.FUTURES, Collateral.ISOLATED) # TODO-lev: Uncomment once supported
]
name_for_futures_market = 'future'
@property
def _ccxt_config(self) -> Dict:

View File

@ -30,3 +30,4 @@ class Bybit(Exchange):
# (TradingMode.FUTURES, Collateral.CROSS), # TODO-lev: Uncomment once supported
# (TradingMode.FUTURES, Collateral.ISOLATED) # TODO-lev: Uncomment once supported
]
name_for_futures_market = 'linear'

View File

@ -80,6 +80,7 @@ class Exchange:
_supported_trading_mode_collateral_pairs: List[Tuple[TradingMode, Collateral]] = [
# TradingMode.SPOT always supported and not required in this list
]
name_for_futures_market = 'swap'
def __init__(self, config: Dict[str, Any], validate: bool = True) -> None:
"""