Minor comment fix

This commit is contained in:
Matthias
2024-01-27 14:49:50 +01:00
parent f8dc161ab4
commit 132e143b9a
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -244,12 +244,14 @@ The optional `bearer_token` will be included in the requests Authorization Heade
``` ```
##### `top_rank` mode ##### `top_rank` mode
In this mode, it will return pairlist consist of active and not-blacklisted pairs that are placed at the top `number_assets` rank of the marketcap. In this mode, it will return pairlist consist of active and not-blacklisted pairs that are placed at the top `number_assets` rank of the marketcap.
##### `total_assets` mode ##### `total_assets` mode
In this mode, it will return pairlist consist of `number_assets` number of active and not-blacklisted pairs sorted by their marketcap rank. In this mode, it will return pairlist consist of `number_assets` number of active and not-blacklisted pairs sorted by their marketcap rank.
The `refresh_period` setting define the period (in seconds) at which the marketcap rank data will be cached. Defaults to 86,400s (1 day). The pairlist cache (refresh_period) is applicable on both generating pairlists (first position in the list) and filtering instances (not the first position in the list). The `refresh_period` setting define the period (in seconds) at which the marketcap rank data will be cached. Defaults to 86,400s (1 day). The pairlist cache (`refresh_period`) is applicable on both generating pairlists (first position in the list) and filtering instances (not the first position in the list).
#### AgeFilter #### AgeFilter
@@ -109,7 +109,7 @@ class MarketCapPairList(IPairList):
:return: List of pairs :return: List of pairs
""" """
# Generate dynamic whitelist # Generate dynamic whitelist
# Must always run if this pairlist is not the first in the list. # Must always run if this pairlist is the first in the list.
pairlist = self._marketcap_cache.get('pairlist_mc') pairlist = self._marketcap_cache.get('pairlist_mc')
if pairlist: if pairlist:
# Item found - no refresh necessary # Item found - no refresh necessary