mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Small visual changes
This commit is contained in:
parent
04624aae40
commit
bd7600ff06
|
@ -16,7 +16,7 @@ The pair blacklist (configured via `exchange.pair_blacklist` in the configuratio
|
||||||
This can be as simple as excluding `DOGE/BTC` - which will remove exactly this pair.
|
This can be as simple as excluding `DOGE/BTC` - which will remove exactly this pair.
|
||||||
|
|
||||||
The pair-blacklist does also support wildcards (in regex-style) - so `BNB/.*` will exclude ALL pairs that start with BNB.
|
The pair-blacklist does also support wildcards (in regex-style) - so `BNB/.*` will exclude ALL pairs that start with BNB.
|
||||||
You may also use something like `.*DOWN/BTC` or `.*UP/BTC` to exclude leveraged tokens (check Naming conventions for your exchange!)
|
You may also use something like `.*DOWN/BTC` or `.*UP/BTC` to exclude leveraged tokens (check Pair naming conventions for your exchange!)
|
||||||
|
|
||||||
### Available Pairlist Handlers
|
### Available Pairlist Handlers
|
||||||
|
|
||||||
|
|
|
@ -43,37 +43,29 @@ class PairListManager():
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def whitelist(self) -> List[str]:
|
def whitelist(self) -> List[str]:
|
||||||
"""
|
"""The current whitelist"""
|
||||||
Has the current whitelist
|
|
||||||
"""
|
|
||||||
return self._whitelist
|
return self._whitelist
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def blacklist(self) -> List[str]:
|
def blacklist(self) -> List[str]:
|
||||||
"""
|
"""
|
||||||
Has the current blacklist
|
The current blacklist
|
||||||
-> no need to overwrite in subclasses
|
-> no need to overwrite in subclasses
|
||||||
"""
|
"""
|
||||||
return self._blacklist
|
return self._blacklist
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def expanded_blacklist(self) -> List[str]:
|
def expanded_blacklist(self) -> List[str]:
|
||||||
"""
|
"""The expanded blacklist (including wildcard expansion)"""
|
||||||
Has the expanded blacklist (including wildcard expansion)
|
|
||||||
"""
|
|
||||||
return expand_pairlist(self._blacklist, self._exchange.get_markets().keys())
|
return expand_pairlist(self._blacklist, self._exchange.get_markets().keys())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name_list(self) -> List[str]:
|
def name_list(self) -> List[str]:
|
||||||
"""
|
"""Get list of loaded Pairlist Handler names"""
|
||||||
Get list of loaded Pairlist Handler names
|
|
||||||
"""
|
|
||||||
return [p.name for p in self._pairlist_handlers]
|
return [p.name for p in self._pairlist_handlers]
|
||||||
|
|
||||||
def short_desc(self) -> List[Dict]:
|
def short_desc(self) -> List[Dict]:
|
||||||
"""
|
"""List of short_desc for each Pairlist Handler"""
|
||||||
List of short_desc for each Pairlist Handler
|
|
||||||
"""
|
|
||||||
return [{p.name: p.short_desc()} for p in self._pairlist_handlers]
|
return [{p.name: p.short_desc()} for p in self._pairlist_handlers]
|
||||||
|
|
||||||
@cached(TTLCache(maxsize=1, ttl=1800))
|
@cached(TTLCache(maxsize=1, ttl=1800))
|
||||||
|
@ -81,9 +73,7 @@ class PairListManager():
|
||||||
return self._exchange.get_tickers()
|
return self._exchange.get_tickers()
|
||||||
|
|
||||||
def refresh_pairlist(self) -> None:
|
def refresh_pairlist(self) -> None:
|
||||||
"""
|
"""Run pairlist through all configured Pairlist Handlers."""
|
||||||
Run pairlist through all configured Pairlist Handlers.
|
|
||||||
"""
|
|
||||||
# Tickers should be cached to avoid calling the exchange on each call.
|
# Tickers should be cached to avoid calling the exchange on each call.
|
||||||
tickers: Dict = {}
|
tickers: Dict = {}
|
||||||
if self._tickers_needed:
|
if self._tickers_needed:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user