This PR is a fix to issue #219.
Sometimes when there are insufficient funds, bot gets killed by by throwing an ‘OperationalException’ and has to be restarted. According to me, having insufficient funds cannot be a fatal error causing application to break.
This commit is contained in:
parent
4dca84817e
commit
209370f323
@ -50,6 +50,7 @@ class Bittrex(Exchange):
|
|||||||
temp_error_messages = [
|
temp_error_messages = [
|
||||||
'NO_API_RESPONSE',
|
'NO_API_RESPONSE',
|
||||||
'MIN_TRADE_REQUIREMENT_NOT_MET',
|
'MIN_TRADE_REQUIREMENT_NOT_MET',
|
||||||
|
'INSUFFICIENT_FUNDS'
|
||||||
]
|
]
|
||||||
if response['message'] in temp_error_messages:
|
if response['message'] in temp_error_messages:
|
||||||
raise ContentDecodingError(response['message'])
|
raise ContentDecodingError(response['message'])
|
||||||
|
Loading…
Reference in New Issue
Block a user