Module: IB::Market

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

Overview

module OrderPrototype

Class Method Summary collapse

Methods included from OrderPrototype

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

Class Method Details

.aliasesObject



12
13
14
# File 'lib/ib/order_prototypes/market.rb', line 12

def aliases
	super 
end

.defaultsObject



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

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

.requirementsObject



16
17
18
# File 'lib/ib/order_prototypes/market.rb', line 16

def requirements
	super 
end

.summaryObject



21
22
23
24
25
26
27
28
# File 'lib/ib/order_prototypes/market.rb', line 21

def summary
	<<-HERE
	 A Market order is an order to buy or sell at the market bid or offer price.
	 A market order may increase the likelihood of a fill and the speed of execution,
	 but unlike the Limit order a Market order provides no price protection and
	 may fill at a price far lower/higher than the current displayed bid/ask.
	HERE
end