Add Sorting to available pair list

This commit is contained in:
Matthias 2021-05-24 07:47:38 +02:00
parent 830b2548bc
commit 2ec22f1d97

View File

@ -252,7 +252,7 @@ def list_available_pairs(timeframe: Optional[str] = None, stake_currency: Option
pair_interval = sorted(pair_interval, key=lambda x: x[0]) pair_interval = sorted(pair_interval, key=lambda x: x[0])
pairs = list({x[0] for x in pair_interval}) pairs = list({x[0] for x in pair_interval})
pairs.sort()
result = { result = {
'length': len(pairs), 'length': len(pairs),
'pairs': pairs, 'pairs': pairs,