From dff1c637694f7a770d5a04a55d6e6cbb7a1ddc98 Mon Sep 17 00:00:00 2001 From: "Varun (Linux)" Date: Wed, 10 Feb 2021 10:39:42 +0800 Subject: [PATCH] fix the rpc for balance which returns incorrect est. balance for the BTC pairs that starts with BTC such as BTCST/BTC --- freqtrade/rpc/rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 27563f73b..f1f4b7ee5 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -451,7 +451,7 @@ class RPC: pair = self._freqtrade.exchange.get_valid_pair_combination(coin, stake_currency) rate = tickers.get(pair, {}).get('bid', None) if rate: - if pair.startswith(stake_currency) and not pair.endswith(stake_currency): + if pair.startswith(stake_currency + "/") and not pair.endswith(stake_currency): rate = 1.0 / rate est_stake = rate * balance.total except (ExchangeError):