From 8f40ede45663a303c58fa8455cd211f3c89465d8 Mon Sep 17 00:00:00 2001 From: gcarq Date: Mon, 25 Dec 2017 13:39:01 +0100 Subject: [PATCH] add MIN_TRADE_REQUIREMENT_NOT_MET to response validation --- freqtrade/exchange/bittrex.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/bittrex.py b/freqtrade/exchange/bittrex.py index ca7fce262..3714de070 100644 --- a/freqtrade/exchange/bittrex.py +++ b/freqtrade/exchange/bittrex.py @@ -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: