add MIN_TRADE_REQUIREMENT_NOT_MET to response validation
This commit is contained in:
parent
de33d69eed
commit
8f40ede456
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user