Module: IB::Sweep2Fill

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

Overview

module OrderPrototype

Class Method Summary collapse

Methods included from OrderPrototype

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

Class Method Details

.aliasesObject



71
72
73
# File 'lib/ib/order_prototypes/limit.rb', line 71

def aliases
	Limit.aliases 
end

.defaultsObject



67
68
69
# File 'lib/ib/order_prototypes/limit.rb', line 67

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

.requirementsObject



75
76
77
# File 'lib/ib/order_prototypes/limit.rb', line 75

def requirements
	Limit.requirements
end

.summaryObject



80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/ib/order_prototypes/limit.rb', line 80

def summary
	<<-HERE
	Sweep-to-fill orders are useful when a trader values speed of execution over price. A sweep-to-fill
	order identifies the best price and the exact quantity offered/available at that price, and 
	transmits the corresponding portion of your order for immediate execution. Simultaneously it 
	identifies the next best price and quantity offered/available, and submits the matching quantity 
	of your order for immediate execution.

	------------------------
  Products: CFD, STK, WAR (SMART only)

	HERE
end