Module: IB::MarketOnClose

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



73
74
75
# File 'lib/ib/order_prototypes/market.rb', line 73

def aliases
	super 
end

.defaultsObject



69
70
71
# File 'lib/ib/order_prototypes/market.rb', line 69

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

.requirementsObject



77
78
79
# File 'lib/ib/order_prototypes/market.rb', line 77

def requirements
	super 
end

.summaryObject



82
83
84
85
86
87
# File 'lib/ib/order_prototypes/market.rb', line 82

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