Class: OandaAPI::Resource::Instrument

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

Overview

Instrument value object. See the Oanda Developer Guide for information about Instruments.

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

#display_nameObject

Returns the value of attribute display_name.



6
7
8
# File 'lib/oanda_api/resource/instrument.rb', line 6

def display_name
  @display_name
end

#haltedObject Also known as: halted?

Returns the value of attribute halted.



6
7
8
# File 'lib/oanda_api/resource/instrument.rb', line 6

def halted
  @halted
end

#instrumentObject Also known as: name

Returns the value of attribute instrument.



6
7
8
# File 'lib/oanda_api/resource/instrument.rb', line 6

def instrument
  @instrument
end

#margin_rateObject

Returns the value of attribute margin_rate.



6
7
8
# File 'lib/oanda_api/resource/instrument.rb', line 6

def margin_rate
  @margin_rate
end

#max_trade_unitsObject

Returns the value of attribute max_trade_units.



6
7
8
# File 'lib/oanda_api/resource/instrument.rb', line 6

def max_trade_units
  @max_trade_units
end

#max_trailing_stopObject

Returns the value of attribute max_trailing_stop.



6
7
8
# File 'lib/oanda_api/resource/instrument.rb', line 6

def max_trailing_stop
  @max_trailing_stop
end

#min_trailing_stopObject

Returns the value of attribute min_trailing_stop.



6
7
8
# File 'lib/oanda_api/resource/instrument.rb', line 6

def min_trailing_stop
  @min_trailing_stop
end

#pipObject

Returns the value of attribute pip.



6
7
8
# File 'lib/oanda_api/resource/instrument.rb', line 6

def pip
  @pip
end

#precisionObject

Returns the value of attribute precision.



6
7
8
# File 'lib/oanda_api/resource/instrument.rb', line 6

def precision
  @precision
end