From f3b6f08850b4bf2a9556c8f8ac7d48b24ffcc967 Mon Sep 17 00:00:00 2001 From: Ed Coppen <51025241+ecoppen@users.noreply.github.com> Date: Tue, 9 Aug 2022 20:17:51 +0100 Subject: [PATCH] Sorted whitelist in rpc Added `sorted()` to line 883 so that when executing `/whitelist` command the pairings will be in alphabetical order making it faster to identify whether the pair you are confirming/looking for is present. `'whitelist': sorted(self._freqtrade.active_pair_whitelist)` --- 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 d848da546..f26eba94b 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -884,7 +884,7 @@ class RPC: """ Returns the currently active whitelist""" res = {'method': self._freqtrade.pairlists.name_list, 'length': len(self._freqtrade.active_pair_whitelist), - 'whitelist': self._freqtrade.active_pair_whitelist + 'whitelist': sorted(self._freqtrade.active_pair_whitelist) } return res