Class: Tradier::Order

Inherits:
Base
  • Object
show all
Defined in:
lib/tradier/order.rb

Instance Attribute Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors.



5
6
7
# File 'lib/tradier/order.rb', line 5

def errors
  @errors
end

#exec_instObject (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_statusObject (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_hoursObject (readonly)

Returns the value of attribute extended_hours.



5
6
7
# File 'lib/tradier/order.rb', line 5

def extended_hours
  @extended_hours
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/tradier/order.rb', line 5

def id
  @id
end

#num_legsObject (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_typeObject (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_idObject (readonly)

Returns the value of attribute order_id.



5
6
7
# File 'lib/tradier/order.rb', line 5

def order_id
  @order_id
end

#priceObject (readonly)

Returns the value of attribute price.



5
6
7
# File 'lib/tradier/order.rb', line 5

def price
  @price
end

#quantityObject (readonly)

Returns the value of attribute quantity.



5
6
7
# File 'lib/tradier/order.rb', line 5

def quantity
  @quantity
end

#request_dateObject (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_dateObject (readonly)

Returns the value of attribute response_date.



5
6
7
# File 'lib/tradier/order.rb', line 5

def response_date
  @response_date
end

#resultObject (readonly)

Returns the value of attribute result.



5
6
7
# File 'lib/tradier/order.rb', line 5

def result
  @result
end

#sideObject (readonly)

Returns the value of attribute side.



5
6
7
# File 'lib/tradier/order.rb', line 5

def side
  @side
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/tradier/order.rb', line 5

def status
  @status
end

#symbolObject (readonly)

Returns the value of attribute symbol.



5
6
7
# File 'lib/tradier/order.rb', line 5

def symbol
  @symbol
end

#time_in_forceObject (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_typeObject (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_typeObject (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

#typeObject (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