From ff393e54b871c492b9032a90803aa1e049a80622 Mon Sep 17 00:00:00 2001 From: gcarq Date: Fri, 13 Oct 2017 21:48:43 +0200 Subject: [PATCH] update sell --- freqtrade/exchange/bittrex.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/bittrex.py b/freqtrade/exchange/bittrex.py index 979ed9492..c686cd8c1 100644 --- a/freqtrade/exchange/bittrex.py +++ b/freqtrade/exchange/bittrex.py @@ -52,10 +52,16 @@ class Bittrex(Exchange): return data['result']['OrderId'] def sell(self, pair: str, rate: float, amount: float) -> str: - data = _API.sell_limit(pair.replace('_', '-'), amount, rate) + data = _API.trade_sell( + market=pair.replace('_', '-'), + order_type=ORDERTYPE_LIMIT, + quantity=amount, + rate=rate, + time_in_effect=TIMEINEFFECT_GOOD_TIL_CANCELLED, + ) if not data['success']: raise RuntimeError('{}: {}'.format(self.name.upper(), data['message'])) - return data['result']['uuid'] + return data['result']['OrderId'] def get_balance(self, currency: str) -> float: data = _API.get_balance(currency)