add MIN_TRADE_REQUIREMENT_NOT_MET to response validation

This commit is contained in:
gcarq 2017-12-25 13:39:01 +01:00
parent de33d69eed
commit 8f40ede456

View File

@ -45,8 +45,12 @@ class Bittrex(Exchange):
Validates the given bittrex response
and raises a ContentDecodingError if a non-fatal issue happened.
"""
if response['message'] == 'NO_API_RESPONSE':
raise ContentDecodingError('Unable to decode bittrex response')
temp_error_messages = [
'NO_API_RESPONSE',
'MIN_TRADE_REQUIREMENT_NOT_MET',
]
if response['message'] in temp_error_messages:
raise ContentDecodingError('Got {}'.format(response['message']))
@property
def fee(self) -> float: