Module: IB::MarketOnOpen

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

Class Method Summary collapse

Methods included from OrderPrototype

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

Class Method Details

.aliasesObject



99
100
101
# File 'lib/ib/order_prototypes/market.rb', line 99

def aliases
	super 
end

.defaultsObject



95
96
97
# File 'lib/ib/order_prototypes/market.rb', line 95

def defaults
	  super.merge order_type: 'MOC' , tif: :opening_price
end

.requirementsObject



103
104
105
# File 'lib/ib/order_prototypes/market.rb', line 103

def requirements
	super 
end

.summaryObject



108
109
110
111
112
113
# File 'lib/ib/order_prototypes/market.rb', line 108

def summary
	<<-HERE
	A Market-on-Close (MOC) order is a market order that is submitted to execute as close
	to the closing price as possible.
	HERE
end