Merge branch 'develop' into feat/short

This commit is contained in:
Matthias
2022-03-18 08:18:17 +01:00
18 changed files with 141 additions and 50 deletions

View File

@@ -592,7 +592,7 @@ class RPC:
else:
try:
pair = self._freqtrade.exchange.get_valid_pair_combination(coin, stake_currency)
rate = tickers.get(pair, {}).get('bid', None)
rate = tickers.get(pair, {}).get('last', None)
if rate:
if pair.startswith(stake_currency) and not pair.endswith(stake_currency):
rate = 1.0 / rate