Class: OandaAPI::Resource::Position
- Inherits:
-
OandaAPI::ResourceBase
- Object
- OandaAPI::ResourceBase
- OandaAPI::Resource::Position
- Defined in:
- lib/oanda_api/resource/position.rb
Overview
Position value object. See the Oanda Developer Guide for information about Positions.
Constant Summary
Constants inherited from OandaAPI::ResourceBase
OandaAPI::ResourceBase::NOT_PLURALIZED
Instance Attribute Summary collapse
-
#avg_price ⇒ Object
(also: #price)
Returns the value of attribute avg_price.
-
#ids ⇒ Object
Returns the value of attribute ids.
-
#instrument ⇒ Object
Returns the value of attribute instrument.
-
#side ⇒ Object
Returns the value of attribute side.
-
#total_units ⇒ Object
(also: #units)
Returns the value of attribute total_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
#avg_price ⇒ Object Also known as: price
Returns the value of attribute avg_price.
6 7 8 |
# File 'lib/oanda_api/resource/position.rb', line 6 def avg_price @avg_price end |
#ids ⇒ Object
Returns the value of attribute ids.
6 7 8 |
# File 'lib/oanda_api/resource/position.rb', line 6 def ids @ids end |
#instrument ⇒ Object
Returns the value of attribute instrument.
6 7 8 |
# File 'lib/oanda_api/resource/position.rb', line 6 def instrument @instrument end |
#side ⇒ Object
Returns the value of attribute side.
6 7 8 |
# File 'lib/oanda_api/resource/position.rb', line 6 def side @side end |
#total_units ⇒ Object Also known as: units
Returns the value of attribute total_units.
6 7 8 |
# File 'lib/oanda_api/resource/position.rb', line 6 def total_units @total_units end |