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
|
Validates the given bittrex response
|
||||||
and raises a ContentDecodingError if a non-fatal issue happened.
|
and raises a ContentDecodingError if a non-fatal issue happened.
|
||||||
"""
|
"""
|
||||||
if response['message'] == 'NO_API_RESPONSE':
|
temp_error_messages = [
|
||||||
raise ContentDecodingError('Unable to decode bittrex response')
|
'NO_API_RESPONSE',
|
||||||
|
'MIN_TRADE_REQUIREMENT_NOT_MET',
|
||||||
|
]
|
||||||
|
if response['message'] in temp_error_messages:
|
||||||
|
raise ContentDecodingError('Got {}'.format(response['message']))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def fee(self) -> float:
|
def fee(self) -> float:
|
||||||
|
Loading…
Reference in New Issue
Block a user