Class: OandaAPI::Resource::Order::TradeOpened

Inherits:
OandaAPI::ResourceBase show all
Defined in:
lib/oanda_api/resource/order.rb

Overview

See the Oanda Developer Guide for Order details.

Constant Summary

Constants inherited from OandaAPI::ResourceBase

OandaAPI::ResourceBase::NOT_PLURALIZED

Instance Attribute Summary collapse

Attributes inherited from OandaAPI::ResourceBase

#location

Method Summary

Methods inherited from OandaAPI::ResourceBase

class_from_symbol, #initialize, labs_resource?, pluralize, #to_json

Constructor Details

This class inherits a constructor from OandaAPI::ResourceBase

Instance Attribute Details

#idObject

Returns the value of attribute id.



64
65
66
# File 'lib/oanda_api/resource/order.rb', line 64

def id
  @id
end

#sideObject

Returns the value of attribute side.



64
65
66
# File 'lib/oanda_api/resource/order.rb', line 64

def side
  @side
end

#stop_lossObject

Returns the value of attribute stop_loss.



64
65
66
# File 'lib/oanda_api/resource/order.rb', line 64

def stop_loss
  @stop_loss
end

#take_profitObject

Returns the value of attribute take_profit.



64
65
66
# File 'lib/oanda_api/resource/order.rb', line 64

def take_profit
  @take_profit
end

#trailing_stopObject

Returns the value of attribute trailing_stop.



64
65
66
# File 'lib/oanda_api/resource/order.rb', line 64

def trailing_stop
  @trailing_stop
end

#unitsObject

Returns the value of attribute units.



64
65
66
# File 'lib/oanda_api/resource/order.rb', line 64

def units
  @units
end