Module: IB::Combo
- Extended by:
- OrderPrototype
- Defined in:
- lib/ib/order_prototypes/combo.rb
Overview
Combo-Orders are used for NonGuaranteed Orders only. »Normal« Option-Spreads are transmited by ordinary Limit-Orders
Class Method Summary
collapse
aliases, alternative_parameters, defaults, optional, order, parameters, requirements
Class Method Details
.aliases ⇒ Object
21
22
23
|
# File 'lib/ib/order_prototypes/combo.rb', line 21
def aliases
Limit.aliases
end
|
.defaults ⇒ Object
9
10
11
12
13
14
|
# File 'lib/ib/order_prototypes/combo.rb', line 9
def defaults
super.merge order_type: :limit , combo_params: [ ['NonGuaranteed', true] ]
end
|
.requirements ⇒ Object
17
18
19
|
# File 'lib/ib/order_prototypes/combo.rb', line 17
def requirements
Limit.requirements
end
|
.summary ⇒ Object
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/ib/order_prototypes/combo.rb', line 26
def summary
" Create combination orders. It is constructed through options, stock and futures legs \n (stock legs can be included if the order is routed through SmartRouting). \n \n Although a combination/spread order is constructed of separate legs, it is executed \n as a single transaction if it is routed directly to an exchange. For combination orders \n that are SmartRouted, each leg may be executed separately to ensure best execution. \n\n The \u00BBNonGuaranteed\u00AB-Flag is set to \"false\". A Pair of two securites should always be\n routed \u00BBGuaranteed\u00AB, otherwise separate orders are prefered.\n\n If a Bag-Order with \u00BBNonGuarateed :true\u00AB should be submitted, the Order-Type would be \n REL+MKT, LMT+MKT, or REL+LMT \n --------\n Products: Options, Stocks, Futures\n HERE\nend\n"
|