Module: IB::Market
- Extended by:
- OrderPrototype
- Defined in:
- lib/ib/order_prototypes/market.rb
Overview
Class Method Summary
collapse
aliases, alternative_parameters, defaults, optional, order, parameters, requirements
Class Method Details
.aliases ⇒ Object
12
13
14
|
# File 'lib/ib/order_prototypes/market.rb', line 12
def aliases
super
end
|
.defaults ⇒ Object
8
9
10
|
# File 'lib/ib/order_prototypes/market.rb', line 8
def defaults
super.merge order_type: 'MKT' , tif: :day
end
|
.requirements ⇒ Object
16
17
18
|
# File 'lib/ib/order_prototypes/market.rb', line 16
def requirements
super
end
|
.summary ⇒ Object
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
|