src/jiji/model/trading/brokers/abstract_broker.rb
Class AbstractBroker
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class AbstractBroker
include Jiji::Model::Trading
attr_reader :positions #:nodoc:
Method order
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def order(pair_id, sell_or_buy, units, type, options, agent)
Method sell
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def sell(pair_name, units,
type = :market, options = {}, agent = nil) #:nodoc:
Method buy
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def buy(pair_name, units,
type = :market, options = {}, agent = nil) #:nodoc:
unexpected token error
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
securities&.destroy
- Exclude checks