Module: IB::ForexLimit

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

Overview

module UseOrder

Class Method Summary collapse

Methods included from OrderPrototype

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

Class Method Details

.defaultsObject



8
9
10
# File 'lib/ib/order_prototypes/forex.rb', line 8

def defaults
    super.merge order_type: :limit , tif: :day
end

.requirementsObject



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

.summaryObject



18
19
20
21
22
23
# File 'lib/ib/order_prototypes/forex.rb', line 18

def summary
  "  Forex orders can be placed in denomination of second currency in pair using cashQty field.\n  Don't specify a limit-price to force immidiate execution.\n  HERE\nend\n"