Class: IGMarkets::Instrument::MarginDepositBand

Inherits:
Model
  • Object
show all
Defined in:
lib/ig_markets/instrument.rb

Overview

Contains details on the margin deposit requirements for an instrument at a certain price band. Returned by #margin_deposit_bands.

Instance Attribute Summary

Attributes inherited from Model

#attributes

Instance Method Summary collapse

Methods inherited from Model

#==, allowed_values, attribute, attribute_type, attribute_value_allowed?, defined_attribute_names, deprecated_attribute, #initialize, #initialize_copy, #inspect, #to_h, valid_attribute?

Constructor Details

This class inherits a constructor from IGMarkets::Model

Instance Method Details

#currencyString

The currency attribute.

Returns:

  • (String)


22
# File 'lib/ig_markets/instrument.rb', line 22

attribute :currency, String, regex: Regex::CURRENCY

#marginFloat

The margin attribute.

Returns:

  • (Float)


23
# File 'lib/ig_markets/instrument.rb', line 23

attribute :margin, Float

#maxFloat

The max attribute.

Returns:

  • (Float)


24
# File 'lib/ig_markets/instrument.rb', line 24

attribute :max, Float

#minFloat

The min attribute.

Returns:

  • (Float)


25
# File 'lib/ig_markets/instrument.rb', line 25

attribute :min, Float