freqtrade/freqtrade

View on GitHub

Showing 517 of 517 total issues

Function load_pairlist has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def load_pairlist(
Severity: Minor
Found in freqtrade/resolvers/pairlist_resolver.py - About 35 mins to fix

    Function price_to_precision has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def price_to_precision(self, pair: str, price: float, *, rounding_mode: int = ROUND) -> float:
    Severity: Minor
    Found in freqtrade/exchange/exchange.py - About 35 mins to fix

      Function extract_cost_curr_rate has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def extract_cost_curr_rate(
      Severity: Minor
      Found in freqtrade/exchange/exchange.py - About 35 mins to fix

        Function ohlcv has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def ohlcv(
        Severity: Minor
        Found in freqtrade/data/dataprovider.py - About 35 mins to fix

          Function validate_backtest_data has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def validate_backtest_data(
          Severity: Minor
          Found in freqtrade/data/history/history_utils.py - About 35 mins to fix

            Function load_trades has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            def load_trades(
            Severity: Minor
            Found in freqtrade/data/btanalysis.py - About 35 mins to fix

              Function rename_futures_data has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def rename_futures_data(
              Severity: Minor
              Found in freqtrade/data/history/datahandlers/idatahandler.py - About 35 mins to fix

                Function get_min_pair_stake_amount has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def get_min_pair_stake_amount(
                Severity: Minor
                Found in freqtrade/exchange/exchange.py - About 35 mins to fix

                  Function trim_dataframe has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def trim_dataframe(
                  Severity: Minor
                  Found in freqtrade/data/converter/converter.py - About 35 mins to fix

                    Function process_removed_setting has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def process_removed_setting(
                    Severity: Minor
                    Found in freqtrade/configuration/deprecated_settings.py - About 35 mins to fix

                      Function get_funding_fees has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def get_funding_fees(
                      Severity: Minor
                      Found in freqtrade/exchange/exchange.py - About 35 mins to fix

                        Function _get_params has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def _get_params(
                        Severity: Minor
                        Found in freqtrade/exchange/okx.py - About 35 mins to fix

                          Function _args_to_config has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def _args_to_config(
                          Severity: Minor
                          Found in freqtrade/configuration/configuration.py - About 35 mins to fix

                            Function _get_params has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def _get_params(
                            Severity: Minor
                            Found in freqtrade/exchange/kraken.py - About 35 mins to fix

                              Function price_to_precision has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              def price_to_precision(
                              Severity: Minor
                              Found in freqtrade/exchange/exchange_utils.py - About 35 mins to fix

                                Function _get_params has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def _get_params(
                                Severity: Minor
                                Found in freqtrade/exchange/bybit.py - About 35 mins to fix

                                  Function process_deprecated_setting has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def process_deprecated_setting(
                                  Severity: Minor
                                  Found in freqtrade/configuration/deprecated_settings.py - About 35 mins to fix

                                    Function _get_params has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def _get_params(
                                    Severity: Minor
                                    Found in freqtrade/exchange/gate.py - About 35 mins to fix

                                      Function check_conflicting_settings has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      def check_conflicting_settings(
                                      Severity: Minor
                                      Found in freqtrade/configuration/deprecated_settings.py - About 35 mins to fix

                                        Function api_get_backtest has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        def api_get_backtest():
                                            """
                                            Get backtesting result.
                                            Returns Result after backtesting has been ran.
                                            """
                                        Severity: Minor
                                        Found in freqtrade/rpc/api_server/api_backtest.py - About 35 mins to fix

                                        Cognitive Complexity

                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                        A method's cognitive complexity is based on a few simple rules:

                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                        • Code is considered more complex for each "break in the linear flow of the code"
                                        • Code is considered more complex when "flow breaking structures are nested"

                                        Further reading

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language