Merge pull request #6489 from samgermain/gateio-market

gateio market orders futures
This commit is contained in:
Matthias 2022-03-03 06:34:06 +01:00 committed by GitHub
commit 761ac6685a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,7 @@ class Gateio(Exchange):
def validate_ordertypes(self, order_types: Dict) -> None:
super().validate_ordertypes(order_types)
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.')