Module: IB::LimitIfTouched
- Extended by:
- OrderPrototype
- Defined in:
- lib/ib/order_prototypes/limit.rb
Class Method Summary
collapse
aliases, alternative_parameters, defaults, optional, order, parameters, requirements
Class Method Details
.aliases ⇒ Object
103
104
105
|
# File 'lib/ib/order_prototypes/limit.rb', line 103
def aliases
Limit.aliases.merge aux_price: :trigger_price
end
|
.defaults ⇒ Object
99
100
101
|
# File 'lib/ib/order_prototypes/limit.rb', line 99
def defaults
Limit.defaults.merge order_type: :limit_if_touched
end
|
.requirements ⇒ Object
107
108
109
|
# File 'lib/ib/order_prototypes/limit.rb', line 107
def requirements
Limit.requirements.merge aux_price: 'also aliased as :trigger_price '
end
|
.summary ⇒ Object
112
113
114
115
116
117
118
119
|
# File 'lib/ib/order_prototypes/limit.rb', line 112
def summary
<<-HERE
A Limit if Touched is an order to buy (or sell) a contract at a specified price or better,
below (or above) the market. This order is held in the system until the trigger price is touched.
An LIT order is similar to a stop limit order, except that an LIT sell order is placed above
the current market price, and a stop limit sell order is placed below.
HERE
end
|