Class: IB::Datatypes::Order
- Inherits:
-
AbstractDatum
- Object
- AbstractDatum
- IB::Datatypes::Order
- Defined in:
- lib/ib-ruby/datatypes.rb
Constant Summary collapse
- Origin_Customer =
Constants used in Order objects. Drawn from Order.java
0
- Origin_Firm =
1
- Opt_Unknown =
'?'
- Opt_Broker_Dealer =
'b'
- Opt_Customer =
'c'
- Opt_Firm =
'f'
- Opt_Isemm =
'm'
- Opt_Farmm =
'n'
- Opt_Specialist =
'y'
- OCA_Cancel_with_block =
1
- OCA_Reduce_with_block =
2
- OCA_Reduce_non_block =
3
- Box_Auction_Match =
Box orders only:
1
- Box_Auction_Improvement =
2
- Box_Auction_Transparent =
3
- Volatility_Type_Daily =
Volatility orders only:
1
- Volatility_Type_Annual =
2
- Volatility_Ref_Price_Average =
1
- Volatility_Ref_Price_BidOrAsk =
2
- Max_value =
I don’t know why IB uses a very large number as the default for certain fields
99999999
Instance Attribute Summary collapse
-
#account ⇒ Object
Extended order fields.
-
#action ⇒ Object
Main order fields.
-
#all_or_none ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#auction_strategy ⇒ Object
Box_* constants above.
-
#aux_price ⇒ Object
Main order fields.
-
#block_order ⇒ Object
Extended order fields.
-
#client_id ⇒ Object
Main order fields.
-
#continuous_update ⇒ Object
Returns the value of attribute continuous_update.
-
#delta ⇒ Object
Box_* constants above.
-
#delta_neutral_aux_price ⇒ Object
Returns the value of attribute delta_neutral_aux_price.
-
#delta_neutral_order_type ⇒ Object
Returns the value of attribute delta_neutral_order_type.
-
#designated_location ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#discretionary_amount ⇒ Object
Extended order fields.
-
#display_size ⇒ Object
Extended order fields.
-
#etrade_only ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#fa_group ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#fa_method ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#fa_percentage ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#fa_profile ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#firm_quote_only ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#good_after_time ⇒ Object
Extended order fields.
-
#good_till_date ⇒ Object
Extended order fields.
-
#hidden ⇒ Object
Extended order fields.
-
#id ⇒ Object
Main order fields.
-
#ignore_rth ⇒ Object
Extended order fields.
-
#limit_price ⇒ Object
Main order fields.
-
#min_quantity ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#nbbo_price_cap ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#oca_group ⇒ Object
Extended order fields.
-
#oca_type ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#open_close ⇒ Object
Extended order fields.
-
#order_ref ⇒ Object
Extended order fields.
-
#order_type ⇒ Object
Main order fields.
-
#origin ⇒ Object
Extended order fields.
-
#override_percentage_constraints ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#parent_id ⇒ Object
Extended order fields.
-
#percent_offset ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#perm_id ⇒ Object
Main order fields.
-
#primary_exchange ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#reference_price_type ⇒ Object
Returns the value of attribute reference_price_type.
-
#rth_only ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#rule_80a ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#settling_firm ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#shares_allocation ⇒ Object
Main order fields.
-
#short_sale_slot ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
-
#starting_price ⇒ Object
Box_* constants above.
-
#stock_range_lower ⇒ Object
Box_* constants above.
-
#stock_range_upper ⇒ Object
Box_* constants above.
-
#stock_ref_price ⇒ Object
Box_* constants above.
-
#sweep_to_fill ⇒ Object
Extended order fields.
-
#tif ⇒ Object
Extended order fields.
-
#total_quantity ⇒ Object
Main order fields.
-
#transmit ⇒ Object
Extended order fields.
-
#trigger_method ⇒ Object
Extended order fields.
-
#volatility ⇒ Object
Returns the value of attribute volatility.
-
#volatility_type ⇒ Object
Returns the value of attribute volatility_type.
Instance Method Summary collapse
Methods inherited from AbstractDatum
Constructor Details
This class inherits a constructor from IB::Datatypes::AbstractDatum
Instance Attribute Details
#account ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def account @account end |
#action ⇒ Object
Main order fields
79 80 81 |
# File 'lib/ib-ruby/datatypes.rb', line 79 def action @action end |
#all_or_none ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def all_or_none @all_or_none end |
#auction_strategy ⇒ Object
Box_* constants above
112 113 114 |
# File 'lib/ib-ruby/datatypes.rb', line 112 def auction_strategy @auction_strategy end |
#aux_price ⇒ Object
Main order fields
79 80 81 |
# File 'lib/ib-ruby/datatypes.rb', line 79 def aux_price @aux_price end |
#block_order ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def block_order @block_order end |
#client_id ⇒ Object
Main order fields
79 80 81 |
# File 'lib/ib-ruby/datatypes.rb', line 79 def client_id @client_id end |
#continuous_update ⇒ Object
Returns the value of attribute continuous_update.
122 123 124 |
# File 'lib/ib-ruby/datatypes.rb', line 122 def continuous_update @continuous_update end |
#delta ⇒ Object
Box_* constants above
112 113 114 |
# File 'lib/ib-ruby/datatypes.rb', line 112 def delta @delta end |
#delta_neutral_aux_price ⇒ Object
Returns the value of attribute delta_neutral_aux_price.
122 123 124 |
# File 'lib/ib-ruby/datatypes.rb', line 122 def delta_neutral_aux_price @delta_neutral_aux_price end |
#delta_neutral_order_type ⇒ Object
Returns the value of attribute delta_neutral_order_type.
122 123 124 |
# File 'lib/ib-ruby/datatypes.rb', line 122 def delta_neutral_order_type @delta_neutral_order_type end |
#designated_location ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def designated_location @designated_location end |
#discretionary_amount ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def discretionary_amount @discretionary_amount end |
#display_size ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def display_size @display_size end |
#etrade_only ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def etrade_only @etrade_only end |
#fa_group ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def fa_group @fa_group end |
#fa_method ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def fa_method @fa_method end |
#fa_percentage ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def fa_percentage @fa_percentage end |
#fa_profile ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def fa_profile @fa_profile end |
#firm_quote_only ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def firm_quote_only @firm_quote_only end |
#good_after_time ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def good_after_time @good_after_time end |
#good_till_date ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def good_till_date @good_till_date end |
#hidden ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def hidden @hidden end |
#id ⇒ Object
Main order fields
79 80 81 |
# File 'lib/ib-ruby/datatypes.rb', line 79 def id @id end |
#ignore_rth ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def ignore_rth @ignore_rth end |
#limit_price ⇒ Object
Main order fields
79 80 81 |
# File 'lib/ib-ruby/datatypes.rb', line 79 def limit_price @limit_price end |
#min_quantity ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def min_quantity @min_quantity end |
#nbbo_price_cap ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def nbbo_price_cap @nbbo_price_cap end |
#oca_group ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def oca_group @oca_group end |
#oca_type ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def oca_type @oca_type end |
#open_close ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def open_close @open_close end |
#order_ref ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def order_ref @order_ref end |
#order_type ⇒ Object
Main order fields
79 80 81 |
# File 'lib/ib-ruby/datatypes.rb', line 79 def order_type @order_type end |
#origin ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def origin @origin end |
#override_percentage_constraints ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def override_percentage_constraints @override_percentage_constraints end |
#parent_id ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def parent_id @parent_id end |
#percent_offset ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def percent_offset @percent_offset end |
#perm_id ⇒ Object
Main order fields
79 80 81 |
# File 'lib/ib-ruby/datatypes.rb', line 79 def perm_id @perm_id end |
#primary_exchange ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def primary_exchange @primary_exchange end |
#reference_price_type ⇒ Object
Returns the value of attribute reference_price_type.
122 123 124 |
# File 'lib/ib-ruby/datatypes.rb', line 122 def reference_price_type @reference_price_type end |
#rth_only ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def rth_only @rth_only end |
#rule_80a ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def rule_80a @rule_80a end |
#settling_firm ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def settling_firm @settling_firm end |
#shares_allocation ⇒ Object
Main order fields
79 80 81 |
# File 'lib/ib-ruby/datatypes.rb', line 79 def shares_allocation @shares_allocation end |
#short_sale_slot ⇒ Object
No idea what the fa_* attributes are for, nor many of the others.
101 102 103 |
# File 'lib/ib-ruby/datatypes.rb', line 101 def short_sale_slot @short_sale_slot end |
#starting_price ⇒ Object
Box_* constants above
112 113 114 |
# File 'lib/ib-ruby/datatypes.rb', line 112 def starting_price @starting_price end |
#stock_range_lower ⇒ Object
Box_* constants above
112 113 114 |
# File 'lib/ib-ruby/datatypes.rb', line 112 def stock_range_lower @stock_range_lower end |
#stock_range_upper ⇒ Object
Box_* constants above
112 113 114 |
# File 'lib/ib-ruby/datatypes.rb', line 112 def stock_range_upper @stock_range_upper end |
#stock_ref_price ⇒ Object
Box_* constants above
112 113 114 |
# File 'lib/ib-ruby/datatypes.rb', line 112 def stock_ref_price @stock_ref_price end |
#sweep_to_fill ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def sweep_to_fill @sweep_to_fill end |
#tif ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def tif @tif end |
#total_quantity ⇒ Object
Main order fields
79 80 81 |
# File 'lib/ib-ruby/datatypes.rb', line 79 def total_quantity @total_quantity end |
#transmit ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def transmit @transmit end |
#trigger_method ⇒ Object
Extended order fields
83 84 85 |
# File 'lib/ib-ruby/datatypes.rb', line 83 def trigger_method @trigger_method end |
#volatility ⇒ Object
Returns the value of attribute volatility.
122 123 124 |
# File 'lib/ib-ruby/datatypes.rb', line 122 def volatility @volatility end |
#volatility_type ⇒ Object
Returns the value of attribute volatility_type.
122 123 124 |
# File 'lib/ib-ruby/datatypes.rb', line 122 def volatility_type @volatility_type end |
Instance Method Details
#init ⇒ Object
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/ib-ruby/datatypes.rb', line 130 def init super @open_close = "0" @origin = Origin_Customer @transmit = true @primary_exchange = '' @designated_location = '' @min_quantity = Max_value @percent_offset = Max_value @nbba_price_cap = Max_value @starting_price = Max_value @stock_ref_price = Max_value @delta = Max_value @delta_neutral_order_type = '' @delta_neutral_aux_price = Max_value @reference_price_type = Max_value end |