Module: IB::ForexLimit
- Extended by:
- OrderPrototype
- Defined in:
- lib/ib/order_prototypes/forex.rb
Overview
Class Method Summary
collapse
aliases, alternative_parameters, defaults, optional, order, parameters, requirements
Class Method Details
.defaults ⇒ Object
8
9
10
|
# File 'lib/ib/order_prototypes/forex.rb', line 8
def defaults
super.merge order_type: :limit , tif: :day
end
|
.requirements ⇒ Object
13
14
15
|
# File 'lib/ib/order_prototypes/forex.rb', line 13
def requirements
super.merge cash_qty: '(true/false) to indicate to let IB calculate the cash-quantity of the alternate currency'
end
|
.summary ⇒ Object
18
19
20
21
22
23
|
# File 'lib/ib/order_prototypes/forex.rb', line 18
def summary
<<-HERE
Forex orders can be placed in denomination of second currency in pair using cashQty field.
Don't specify a limit-price to force immidiate execution.
HERE
end
|