Class: Tradier::Order
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#exec_inst ⇒ Object
readonly
Returns the value of attribute exec_inst.
-
#exec_status ⇒ Object
readonly
Returns the value of attribute exec_status.
-
#extended_hours ⇒ Object
readonly
Returns the value of attribute extended_hours.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#num_legs ⇒ Object
readonly
Returns the value of attribute num_legs.
-
#option_type ⇒ Object
readonly
Returns the value of attribute option_type.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#request_date ⇒ Object
readonly
Returns the value of attribute request_date.
-
#response_date ⇒ Object
readonly
Returns the value of attribute response_date.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#side ⇒ Object
readonly
Returns the value of attribute side.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
-
#time_in_force ⇒ Object
readonly
Returns the value of attribute time_in_force.
-
#trailing_limit_type ⇒ Object
readonly
Returns the value of attribute trailing_limit_type.
-
#trailing_stop_type ⇒ Object
readonly
Returns the value of attribute trailing_stop_type.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Methods inherited from Base
#[], #attr_equal, attr_reader, #attrs, #attrs_equal, #initialize, #update
Constructor Details
This class inherits a constructor from Tradier::Base
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def errors @errors end |
#exec_inst ⇒ Object (readonly)
Returns the value of attribute exec_inst.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def exec_inst @exec_inst end |
#exec_status ⇒ Object (readonly)
Returns the value of attribute exec_status.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def exec_status @exec_status end |
#extended_hours ⇒ Object (readonly)
Returns the value of attribute extended_hours.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def extended_hours @extended_hours end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def id @id end |
#num_legs ⇒ Object (readonly)
Returns the value of attribute num_legs.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def num_legs @num_legs end |
#option_type ⇒ Object (readonly)
Returns the value of attribute option_type.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def option_type @option_type end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def order_id @order_id end |
#price ⇒ Object (readonly)
Returns the value of attribute price.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def price @price end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def quantity @quantity end |
#request_date ⇒ Object (readonly)
Returns the value of attribute request_date.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def request_date @request_date end |
#response_date ⇒ Object (readonly)
Returns the value of attribute response_date.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def response_date @response_date end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def result @result end |
#side ⇒ Object (readonly)
Returns the value of attribute side.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def side @side end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def status @status end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def symbol @symbol end |
#time_in_force ⇒ Object (readonly)
Returns the value of attribute time_in_force.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def time_in_force @time_in_force end |
#trailing_limit_type ⇒ Object (readonly)
Returns the value of attribute trailing_limit_type.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def trailing_limit_type @trailing_limit_type end |
#trailing_stop_type ⇒ Object (readonly)
Returns the value of attribute trailing_stop_type.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def trailing_stop_type @trailing_stop_type end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/tradier/order.rb', line 5 def type @type end |
Class Method Details
.from_response(body = {}) ⇒ Object
10 11 12 |
# File 'lib/tradier/order.rb', line 10 def self.from_response(body={}) new(body[:order] || body) end |