unageanu/jiji2

View on GitHub

Showing 122 of 840 total issues

Method sell has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def sell(pair_name, units,
      type = :market, options = {}, agent = nil) #:nodoc:
Severity: Minor
Found in src/jiji/model/trading/brokers/abstract_broker.rb - About 35 mins to fix

    Method create has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def self.create(name, type, created_at, memo = '', body = '')
    Severity: Minor
    Found in src/jiji/model/agents/agent_source.rb - About 35 mins to fix

      Method initialize_price_and_time_from_tick has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            position, tick, pair_name, sell_or_buy, account_currency)
      Severity: Minor
      Found in src/jiji/model/trading/internal/position_builder.rb - About 35 mins to fix

        Method create_mode has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          def create_mode(target_pair, sell_or_buy,
            trade_units, profit_pips, logger)
        Severity: Minor
        Found in sample_agents/src/trap_repeat_if_done.rb - About 35 mins to fix

          Method create has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def create(label, type = :line, aggregation_type = :first,
                colors = [], axises = [])
          Severity: Minor
          Found in src/jiji/model/graphing/graph_factory.rb - About 35 mins to fix

            Method retrieve_positions has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def retrieve_positions(backtest_id = nil,
                  sort_order = { entered_at: :asc, id: :asc },
                  offset = 0, limit = 20, filter_conditions = {})
            Severity: Minor
            Found in src/jiji/model/trading/position_repository.rb - About 35 mins to fix

              Method create_message has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                def create_message(description, max_profit,
                  max_profit_time, current_profit, last_update_time)
              Severity: Minor
              Found in sample_agents/spec/trailing_stop_manager_spec.rb - About 35 mins to fix

                Method calculate_ma_signals has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  def calculate_ma_signals(signals, price, ma10, ma25, ma50)
                Severity: Minor
                Found in sample_agents/src/tensorflow_sample_agent.rb - About 35 mins to fix

                  Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def initialize(pair_name, internal_id,
                        sell_or_buy, type, last_modified) #:nodoc:
                  Severity: Minor
                  Found in src/jiji/model/trading/order.rb - About 35 mins to fix

                    Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def initialize(internal_id, units,
                          price, timestamp, profit_or_loss) #:nodoc:
                    Severity: Minor
                    Found in src/jiji/model/trading/order.rb - About 35 mins to fix

                      Method start_backtest has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def start_backtest(agent_setting,
                            start_time = Time.new(2015, 12, 8, 0, 0, 0),
                            end_time = Time.new(2015, 12, 9, 0, 0, 0),
                            tick_interval_id = :fifteen_seconds,
                            pair_names = %i[USDJPY EURUSD])
                      Severity: Minor
                      Found in sample_agents/spec/utils/agent_runner.rb - About 35 mins to fix

                        Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def initialize(agents, broker, graph_factory, time_source, logger)
                        Severity: Minor
                        Found in src/jiji/model/trading/trading_context.rb - About 35 mins to fix

                          Method buy has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def buy(pair_name, units,
                                type = :market, options = {}, agent = nil) #:nodoc:
                          Severity: Minor
                          Found in src/jiji/model/trading/brokers/abstract_broker.rb - About 35 mins to fix

                            Method create_order has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def create_order(pair_name, sell_or_buy, units, type, options)
                            Severity: Minor
                            Found in src/jiji/model/securities/internal/virtual/ordering.rb - About 35 mins to fix

                              Method create_splited_position has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def create_splited_position(position,
                                    units, price, time, agent)
                              Severity: Minor
                              Found in src/jiji/model/trading/internal/position_builder.rb - About 35 mins to fix

                                Method validate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def validate(pair_name, sell_or_buy, units, type, options)
                                Severity: Minor
                                Found in src/jiji/model/securities/internal/utils/order_validator.rb - About 35 mins to fix

                                  Method order has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def order(pair_name, sell_or_buy, units, type = :market, options = {})
                                  Severity: Minor
                                  Found in src/jiji/model/securities/internal/oanda/ordering.rb - About 35 mins to fix

                                    Method compose has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def compose(to, title, from = FROM, server_setting = nil, &block)
                                    Severity: Minor
                                    Found in src/jiji/messaging/mail_composer.rb - About 35 mins to fix

                                      Method split_and_close has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def split_and_close(position, units,
                                            price, time, agent = nil)
                                      Severity: Minor
                                      Found in src/jiji/model/trading/internal/position_builder.rb - About 35 mins to fix

                                        Method resolve_price has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def resolve_price(type, pair_name, sell_or_buy, options, tick)
                                        Severity: Minor
                                        Found in src/jiji/model/securities/internal/virtual/ordering.rb - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language