Module: IB::LimitOnClose

Extended by:
OrderPrototype
Defined in:
lib/ib/order_prototypes/limit.rb

Class Method Summary collapse

Methods included from OrderPrototype

aliases, alternative_parameters, defaults, optional, order, parameters, requirements

Class Method Details

.aliasesObject



132
133
134
# File 'lib/ib/order_prototypes/limit.rb', line 132

def aliases
  Limit.aliases 
end

.defaultsObject



128
129
130
# File 'lib/ib/order_prototypes/limit.rb', line 128

def defaults
    Limit.defaults.merge order_type: :limit_on_close 
end

.requirementsObject



136
137
138
# File 'lib/ib/order_prototypes/limit.rb', line 136

def requirements
  Limit.requirements 
end

.summaryObject



141
142
143
144
145
146
# File 'lib/ib/order_prototypes/limit.rb', line 141

def summary
  "  A Limit-on-close (LOC) order will be submitted at the close and will execute if the \n  closing price is at or better than the submitted limit price. \n  HERE\nend\n"