unageanu/jiji2

View on GitHub
src/jiji/model/trading/brokers/abstract_broker.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Class AbstractBroker has 21 methods (exceeds 20 allowed). Consider refactoring.
Open

  class AbstractBroker

    include Jiji::Model::Trading

    attr_reader :positions #:nodoc:
Severity: Minor
Found in src/jiji/model/trading/brokers/abstract_broker.rb - About 2 hrs to fix

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

        def order(pair_id, sell_or_buy, units, type, options, agent)
    Severity: Minor
    Found in src/jiji/model/trading/brokers/abstract_broker.rb - About 45 mins to fix

      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 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

          unexpected token error (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
          Open

                securities&.destroy

          There are no issues that match your filters.

          Category
          Status