Add retrier to stoploss calls (but without retrying)

This commit is contained in:
Matthias
2020-06-28 11:56:29 +02:00
parent 2c45114a64
commit 5bd4798ed0
8 changed files with 61 additions and 57 deletions

View File

@@ -27,6 +27,7 @@ class Ftx(Exchange):
"""
return order['type'] == 'stop' and stop_loss > float(order['price'])
@retrier(retries=0)
def stoploss(self, pair: str, amount: float, stop_price: float, order_types: Dict) -> Dict:
"""
Creates a stoploss order.