mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
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 any(v == 'market' for k, v in order_types.items()):
|
if self.trading_mode != TradingMode.FUTURES:
|
||||||
raise OperationalException(
|
if any(v == 'market' for k, v in order_types.items()):
|
||||||
f'Exchange {self.name} does not support market orders.')
|
raise OperationalException(
|
||||||
|
f'Exchange {self.name} does not support market orders.')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user