From c06496e66fa104f6c2052eddc448f90b4aae26e9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 31 Dec 2021 16:49:47 +0100 Subject: [PATCH] Update some more TODO-lev's --- freqtrade/commands/hyperopt_commands.py | 1 - freqtrade/freqtradebot.py | 1 - freqtrade/plugins/pairlistmanager.py | 1 - freqtrade/plugins/protections/stoploss_guard.py | 1 - freqtrade/rpc/rpc.py | 1 - freqtrade/rpc/telegram.py | 1 - 6 files changed, 6 deletions(-) diff --git a/freqtrade/commands/hyperopt_commands.py b/freqtrade/commands/hyperopt_commands.py index 4ed7d7698..344828282 100755 --- a/freqtrade/commands/hyperopt_commands.py +++ b/freqtrade/commands/hyperopt_commands.py @@ -102,4 +102,3 @@ def start_hyperopt_show(args: Dict[str, Any]) -> None: HyperoptTools.show_epoch_details(val, total_epochs, print_json, no_header, header_str="Epoch details") -# TODO-lev: Hyperopt optimal leverage diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 8f3357373..e631ad070 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -80,7 +80,6 @@ class FreqtradeBot(LoggingMixin): # so anything in the Freqtradebot instance should be ready (initialized), including # the initial state of the bot. # Keep this at the end of this initialization method. - # TODO-lev: Do I need to consider the rpc, pairlists or dataprovider? self.rpc: RPCManager = RPCManager(self) self.pairlists = PairListManager(self.exchange, self.config) diff --git a/freqtrade/plugins/pairlistmanager.py b/freqtrade/plugins/pairlistmanager.py index 6a67e7dd5..eecd1087b 100644 --- a/freqtrade/plugins/pairlistmanager.py +++ b/freqtrade/plugins/pairlistmanager.py @@ -128,7 +128,6 @@ class PairListManager(): :return: pairlist - whitelisted pairs """ try: - # TODO-lev: filter for pairlists that are able to trade at the desired leverage whitelist = expand_pairlist(pairlist, self._exchange.get_markets().keys(), keep_invalid) except ValueError as err: logger.error(f"Pair whitelist contains an invalid Wildcard: {err}") diff --git a/freqtrade/plugins/protections/stoploss_guard.py b/freqtrade/plugins/protections/stoploss_guard.py index 79b311f2b..025ba5f1f 100644 --- a/freqtrade/plugins/protections/stoploss_guard.py +++ b/freqtrade/plugins/protections/stoploss_guard.py @@ -32,7 +32,6 @@ class StoplossGuard(IProtection): def _reason(self) -> str: """ LockReason to use - # TODO-lev: check if min is the right word for shorts """ return (f'{self._trade_limit} stoplosses in {self._lookback_period} min, ' f'locking for {self._stop_duration} min.') diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 129248416..f7a4f717f 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -39,7 +39,6 @@ class RPCException(Exception): raise RPCException('*Status:* `no active trade`') """ - # TODO-lev: Add new configuration options introduced with leveraged/short trading def __init__(self, message: str) -> None: super().__init__(self) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index a47206d36..94177a813 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -1294,7 +1294,6 @@ class Telegram(RPCHandler): " *table :* `will display trades in a table`\n" " `pending buy orders are marked with an asterisk (*)`\n" " `pending sell orders are marked with a double asterisk (**)`\n" - # TODO-lev: Update commands and help (?) "*/buys :* `Shows the enter_tag performance`\n" "*/sells :* `Shows the sell reason performance`\n" "*/mix_tags :* `Shows combined buy tag + sell reason performance`\n"