Module: IB::Discretionary
- 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
38
39
40
|
# File 'lib/ib/order_prototypes/limit.rb', line 38
def aliases
Limit.aliases.merge discretionary_amount: :dc
end
|
.defaults ⇒ Object
34
35
36
|
# File 'lib/ib/order_prototypes/limit.rb', line 34
def defaults
Limit.defaults
end
|
.optional ⇒ Object
46
47
48
|
# File 'lib/ib/order_prototypes/limit.rb', line 46
def optional
super.merge discretionary_amount: :decimal
end
|
.requirements ⇒ Object
42
43
44
|
# File 'lib/ib/order_prototypes/limit.rb', line 42
def requirements
Limit.requirements
end
|
.summary ⇒ Object
50
51
52
53
54
55
56
57
58
59
|
# File 'lib/ib/order_prototypes/limit.rb', line 50
def summary
<<-HERE
A Discretionary order is a Limitorder submitted with a hidden,
specified 'discretionary' amount off the limit price which may be used
to increase the price range over which the limit order is eligible to execute.
The market sees only the limit price.
The discretionary amount adds to the given limit price. The main effort is
to hide your real intentions from the public.
HERE
end
|