Class: IGMarkets::Market::DealingRules

Inherits:
IGMarkets::Model show all
Defined in:
lib/ig_markets/market.rb

Overview

Contains details on the dealing rules for a market. Returned by #dealing_rules.

Defined Under Namespace

Classes: RuleDetails

Instance Attribute Summary

Attributes inherited from IGMarkets::Model

#attributes

Instance Method Summary collapse

Methods inherited from IGMarkets::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

#market_order_preferenceSymbol

The market_order_preference attribute.

Returns:

  • (Symbol)

14
15
# File 'lib/ig_markets/market.rb', line 14

attribute :market_order_preference, Symbol, allowed_values: %i[available_default_off available_default_on
not_available]

#max_stop_or_limit_distanceRuleDetails

The max_stop_or_limit_distance attribute.

Returns:


16
# File 'lib/ig_markets/market.rb', line 16

attribute :max_stop_or_limit_distance, RuleDetails

#min_controlled_risk_stop_distanceRuleDetails

The min_controlled_risk_stop_distance attribute.

Returns:


17
# File 'lib/ig_markets/market.rb', line 17

attribute :min_controlled_risk_stop_distance, RuleDetails

#min_deal_sizeRuleDetails

The min_deal_size attribute.

Returns:


18
# File 'lib/ig_markets/market.rb', line 18

attribute :min_deal_size, RuleDetails

#min_normal_stop_or_limit_distanceRuleDetails

The min_normal_stop_or_limit_distance attribute.

Returns:


19
# File 'lib/ig_markets/market.rb', line 19

attribute :min_normal_stop_or_limit_distance, RuleDetails

#min_step_distanceRuleDetails

The min_step_distance attribute.

Returns:


20
# File 'lib/ig_markets/market.rb', line 20

attribute :min_step_distance, RuleDetails

#trailing_stops_preferenceSymbol

The trailing_stops_preference attribute.

Returns:

  • (Symbol)

21
# File 'lib/ig_markets/market.rb', line 21

attribute :trailing_stops_preference, Symbol, allowed_values: %i[available not_available]