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)`
This commit is contained in:
Ed Coppen 2022-08-09 20:17:51 +01:00 committed by GitHub
parent 8a18609be4
commit f3b6f08850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -884,7 +884,7 @@ class RPC:
""" Returns the currently active whitelist""" """ Returns the currently active whitelist"""
res = {'method': self._freqtrade.pairlists.name_list, res = {'method': self._freqtrade.pairlists.name_list,
'length': len(self._freqtrade.active_pair_whitelist), 'length': len(self._freqtrade.active_pair_whitelist),
'whitelist': self._freqtrade.active_pair_whitelist 'whitelist': sorted(self._freqtrade.active_pair_whitelist)
} }
return res return res