freqtrade/freqtrade

View on GitHub

Showing 502 of 504 total issues

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

    def stake_amount(self, pair: str, free_capital: float,
Severity: Minor
Found in freqtrade/edge/edge_positioning.py - About 35 mins to fix

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

        def build_strategy_return_arrays(
    Severity: Minor
    Found in freqtrade/freqai/freqai_interface.py - About 35 mins to fix

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

          def hyperopt_loss_function(results: DataFrame, trade_count: int,
      Severity: Minor
      Found in freqtrade/optimize/hyperopt_loss/hyperopt_loss_max_drawdown.py - About 35 mins to fix

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

        def generate_pair_metrics(pairlist: List[str], stake_currency: str, starting_balance: int,
        Severity: Minor
        Found in freqtrade/optimize/optimize_reports/optimize_reports.py - About 35 mins to fix

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

              def set_train_and_eval_environments(self, data_dictionary: Dict[str, DataFrame],
          Severity: Minor
          Found in freqtrade/freqai/RL/BaseReinforcementLearningModel.py - About 35 mins to fix

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

                def set_initial_historic_predictions(
            Severity: Minor
            Found in freqtrade/freqai/freqai_interface.py - About 35 mins to fix

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

                  def adjust_stop_loss(self, current_price: float, stoploss: Optional[float],
              Severity: Minor
              Found in freqtrade/persistence/trade_model.py - About 35 mins to fix

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

                def calculate_underwater(trades: pd.DataFrame, *, date_col: str = 'close_date',
                Severity: Minor
                Found in freqtrade/data/metrics.py - About 35 mins to fix

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

                  def load_trades(source: str, db_url: str, exportfilename: Path,
                  Severity: Minor
                  Found in freqtrade/data/btanalysis.py - About 35 mins to fix

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

                        def get_trades_for_order(self, order_id: str, pair: str, since: datetime,
                    Severity: Minor
                    Found in freqtrade/exchange/exchange.py - About 35 mins to fix

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

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

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

                            def get_trades_proxy(*, pair: Optional[str] = None, is_open: Optional[bool] = None,
                        Severity: Minor
                        Found in freqtrade/persistence/trade_model.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_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 _calc_drawdown_series has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              def _calc_drawdown_series(profit_results: pd.DataFrame, *, date_col: str, value_col: str,
                              Severity: Minor
                              Found in freqtrade/data/metrics.py - About 35 mins to fix

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

                                def validate_backtest_data(data: DataFrame, pair: str, min_date: datetime,
                                Severity: Minor
                                Found in freqtrade/data/history/history_utils.py - About 35 mins to fix

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

                                  def migrate_pairlocks_table(
                                  Severity: Minor
                                  Found in freqtrade/persistence/migrations.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 _load_object has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def _load_object(cls, paths: List[Path], *, object_name: str, add_source: bool = False,
                                      Severity: Minor
                                      Found in freqtrade/resolvers/iresolver.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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language