Enable gate market orders

closes #8368
This commit is contained in:
Matthias
2023-03-23 18:15:54 +01:00
parent 8ae44c204e
commit cde432fef0
2 changed files with 0 additions and 41 deletions

View File

@@ -50,14 +50,6 @@ class Gate(Exchange):
(TradingMode.FUTURES, MarginMode.ISOLATED)
]
def validate_ordertypes(self, order_types: Dict) -> None:
if self.trading_mode != TradingMode.FUTURES:
if any(v == 'market' for k, v in order_types.items()):
raise OperationalException(
f'Exchange {self.name} does not support market orders.')
super().validate_stop_ordertypes(order_types)
def _get_params(
self,
side: BuySell,