Module: IB::StopLimit

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

Class Method Summary collapse

Methods included from OrderPrototype

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

Class Method Details

.aliasesObject



43
44
45
# File 'lib/ib/order_prototypes/stop.rb', line 43

def aliases
	Limit.aliases.merge  aux_price: :stop_price
end

.defaultsObject



39
40
41
# File 'lib/ib/order_prototypes/stop.rb', line 39

def defaults
	  super.merge order_type: :stop_limit 
end

.requirementsObject



47
48
49
# File 'lib/ib/order_prototypes/stop.rb', line 47

def requirements
	Limit.requirements.merge aux_price: 'Price where the action is triggert. Aliased as :stop_price'
end

.summaryObject



52
53
54
55
56
57
58
59
60
# File 'lib/ib/order_prototypes/stop.rb', line 52

def summary
	<<-HERE
	A Stop-Limit order is an instruction to submit a buy or sell limit order when 
	the user-specified stop trigger price is attained or penetrated. The order has 
	two basic components: the stop price and the limit price. When a trade has occurred 
	at or through the stop price, the order becomes executable and enters the market 
	as a limit order, which is an order to buy or sell at a specified price or better. 
	HERE
end