Fully support kraken limit stoploss
This commit is contained in:
parent
53231d94a9
commit
1d56c87a34
@ -524,7 +524,7 @@ class Exchange:
|
|||||||
'rate': self.get_fee(pair)
|
'rate': self.get_fee(pair)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if closed_order["type"] in ["stop_loss_limit"]:
|
if closed_order["type"] in ["stop_loss_limit", "stop-loss-limit"]:
|
||||||
closed_order["info"].update({"stopPrice": closed_order["price"]})
|
closed_order["info"].update({"stopPrice": closed_order["price"]})
|
||||||
self._dry_run_open_orders[closed_order["id"]] = closed_order
|
self._dry_run_open_orders[closed_order["id"]] = closed_order
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ class Trade(_DECL_BASE):
|
|||||||
if self.is_open:
|
if self.is_open:
|
||||||
logger.info(f'{order_type.upper()}_SELL has been fulfilled for {self}.')
|
logger.info(f'{order_type.upper()}_SELL has been fulfilled for {self}.')
|
||||||
self.close(safe_value_fallback(order, 'average', 'price'))
|
self.close(safe_value_fallback(order, 'average', 'price'))
|
||||||
elif order_type in ('stop_loss_limit', 'stop-loss', 'stop'):
|
elif order_type in ('stop_loss_limit', 'stop-loss', 'stop-loss-limit', 'stop'):
|
||||||
self.stoploss_order_id = None
|
self.stoploss_order_id = None
|
||||||
self.close_rate_requested = self.stop_loss
|
self.close_rate_requested = self.stop_loss
|
||||||
if self.is_open:
|
if self.is_open:
|
||||||
|
Loading…
Reference in New Issue
Block a user