mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-01 04:48:39 +08:00
Improved handling of insufficient funds on bittrex
This commit is contained in:
@@ -119,7 +119,14 @@ class Bittrex(Exchange):
|
||||
)
|
||||
return order
|
||||
else:
|
||||
raise CreateOrderError(exchange=self.name, error=order_status)
|
||||
if order_status == 'INSUFFICIENT_FUNDS':
|
||||
log.warn('not enough funds to create order')
|
||||
return None
|
||||
else:
|
||||
raise CreateOrderError(
|
||||
exchange=self.name,
|
||||
error=order_status
|
||||
)
|
||||
else:
|
||||
raise InvalidOrderStyle(exchange=self.name,
|
||||
style=style.__class__.__name__)
|
||||
|
||||
Reference in New Issue
Block a user