Class: IGMarkets::LimitedRiskPremium

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

Overview

Contains details on a limited risk premium. Returned by Instrument#limited_risk_premium, Position#limited_risk_premium and WorkingOrder#limited_risk_premium.

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

#unitSymbol

The unit attribute.

Returns:

  • (Symbol)

5
# File 'lib/ig_markets/limited_risk_premium.rb', line 5

attribute :unit, Symbol, allowed_values: %i[percentage points]

#valueFloat

The value attribute.

Returns:

  • (Float)

6
# File 'lib/ig_markets/limited_risk_premium.rb', line 6

attribute :value, Float