stoploss on exchange added as a parameter to order_types

This commit is contained in:
misagh
2018-11-25 17:22:56 +01:00
parent e4744c1ba4
commit 3e29fbb17a
7 changed files with 37 additions and 32 deletions

View File

@@ -227,6 +227,12 @@ class Exchange(object):
raise OperationalException(
f'Exchange {self.name} does not support market orders.')
if order_types.get('stoploss_on_exchange', False):
if self.name is not 'Binance':
raise OperationalException(
'On exchange stoploss is not supported for %s.' % self.name
)
def exchange_has(self, endpoint: str) -> bool:
"""
Checks if exchange implements a specific API endpoint.