Class: OandaAPI::Resource::Trade
- Inherits:
-
OandaAPI::ResourceBase
- Object
- OandaAPI::ResourceBase
- OandaAPI::Resource::Trade
- Defined in:
- lib/oanda_api/resource/trade.rb
Overview
Trade value object. See the Oanda Developer Guide for information about Trades.
Constant Summary
Constants inherited from OandaAPI::ResourceBase
OandaAPI::ResourceBase::NOT_PLURALIZED
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#instrument ⇒ Object
Returns the value of attribute instrument.
-
#price ⇒ Object
Returns the value of attribute price.
-
#profit ⇒ Object
Returns the value of attribute profit.
-
#side ⇒ Object
Returns the value of attribute side.
-
#stop_loss ⇒ Object
Returns the value of attribute stop_loss.
-
#take_profit ⇒ Object
Returns the value of attribute take_profit.
-
#time ⇒ Object
Returns the value of attribute time.
-
#trailing_amount ⇒ Object
Returns the value of attribute trailing_amount.
-
#trailing_stop ⇒ Object
Returns the value of attribute trailing_stop.
-
#units ⇒ Object
Returns the value of attribute units.
Attributes inherited from OandaAPI::ResourceBase
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
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def id @id end |
#instrument ⇒ Object
Returns the value of attribute instrument.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def instrument @instrument end |
#price ⇒ Object
Returns the value of attribute price.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def price @price end |
#profit ⇒ Object
Returns the value of attribute profit.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def profit @profit end |
#side ⇒ Object
Returns the value of attribute side.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def side @side end |
#stop_loss ⇒ Object
Returns the value of attribute stop_loss.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def stop_loss @stop_loss end |
#take_profit ⇒ Object
Returns the value of attribute take_profit.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def take_profit @take_profit end |
#time ⇒ Object
Returns the value of attribute time.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def time @time end |
#trailing_amount ⇒ Object
Returns the value of attribute trailing_amount.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def trailing_amount @trailing_amount end |
#trailing_stop ⇒ Object
Returns the value of attribute trailing_stop.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def trailing_stop @trailing_stop end |
#units ⇒ Object
Returns the value of attribute units.
6 7 8 |
# File 'lib/oanda_api/resource/trade.rb', line 6 def units @units end |