Merge pull request #6489 from samgermain/gateio-market
gateio market orders futures
This commit is contained in:
commit
761ac6685a
@ -37,6 +37,7 @@ class Gateio(Exchange):
|
|||||||
def validate_ordertypes(self, order_types: Dict) -> None:
|
def validate_ordertypes(self, order_types: Dict) -> None:
|
||||||
super().validate_ordertypes(order_types)
|
super().validate_ordertypes(order_types)
|
||||||
|
|
||||||
|
if self.trading_mode != TradingMode.FUTURES:
|
||||||
if any(v == 'market' for k, v in order_types.items()):
|
if any(v == 'market' for k, v in order_types.items()):
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
f'Exchange {self.name} does not support market orders.')
|
f'Exchange {self.name} does not support market orders.')
|
||||||
|
Loading…
Reference in New Issue
Block a user