Added property _ft_has_default.ccxt_futures_name and removed subclass ccxt_config properties

This commit is contained in:
Sam Germain
2021-11-13 05:00:47 -06:00
parent 2e451da08f
commit 3d86b18492
6 changed files with 17 additions and 62 deletions

View File

@@ -35,24 +35,6 @@ class Gateio(Exchange):
# (TradingMode.FUTURES, Collateral.ISOLATED) # TODO-lev: Uncomment once supported
]
@property
def _ccxt_config(self) -> Dict:
# Parameters to add directly to ccxt sync/async initialization.
if self.trading_mode == TradingMode.MARGIN:
return {
"options": {
"defaultType": "margin"
}
}
elif self.trading_mode == TradingMode.FUTURES:
return {
"options": {
"defaultType": "swap"
}
}
else:
return {}
def validate_ordertypes(self, order_types: Dict) -> None:
super().validate_ordertypes(order_types)