Class: IGMarkets::ClientAccountSummary

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

Overview

Contains details on an IG Markets client account summary. Returned by DealingPlatform#client_account_summary.

Defined Under Namespace

Classes: AccountDetails, FormDetails

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

#account_infoAccount::Balance

The account_info attribute.

Returns:


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

attribute :account_info, Account::Balance

#account_typeSymbol

The account_type attribute.

Returns:

  • (Symbol)

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

attribute :account_type, Symbol, allowed_values: %i[cfd physical spreadbet]

#accountsAccountDetails

The accounts attribute.

Returns:


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

attribute :accounts, AccountDetails

#authentication_statusSymbol

The authentication_status attribute.

Returns:

  • (Symbol)

23
24
25
26
# File 'lib/ig_markets/client_account_summary.rb', line 23

attribute :authentication_status, Symbol, allowed_values: %i[authenticated authenticated_missing_credentials
change_environment disabled_preferred_account
missing_preferred_account
rejected_invalid_client_version]

#client_idObject

The client_id attribute.

Returns:

  • []


27
# File 'lib/ig_markets/client_account_summary.rb', line 27

attribute :client_id

#currency_iso_codeString

The currency_iso_code attribute.

Returns:

  • (String)

28
# File 'lib/ig_markets/client_account_summary.rb', line 28

attribute :currency_iso_code, String, regex: Regex::CURRENCY

#currency_symbolObject

The currency_symbol attribute.

Returns:

  • []


29
# File 'lib/ig_markets/client_account_summary.rb', line 29

attribute :currency_symbol

#current_account_idObject

The current_account_id attribute.

Returns:

  • []


30
# File 'lib/ig_markets/client_account_summary.rb', line 30

attribute :current_account_id

#dealing_enabledBoolean

The dealing_enabled attribute.

Returns:


31
# File 'lib/ig_markets/client_account_summary.rb', line 31

attribute :dealing_enabled, Boolean

#encryptedObject

The encrypted attribute.

Returns:

  • []


32
# File 'lib/ig_markets/client_account_summary.rb', line 32

attribute :encrypted

#form_detailsFormDetails

The form_details attribute.

Returns:


33
# File 'lib/ig_markets/client_account_summary.rb', line 33

attribute :form_details, FormDetails

#has_active_demo_accountsBoolean

The has_active_demo_accounts attribute.

Returns:


34
# File 'lib/ig_markets/client_account_summary.rb', line 34

attribute :has_active_demo_accounts, Boolean

#has_active_live_accountsBoolean

The has_active_live_accounts attribute.

Returns:


35
# File 'lib/ig_markets/client_account_summary.rb', line 35

attribute :has_active_live_accounts, Boolean

#ig_companyObject

The ig_company attribute.

Returns:

  • []


36
# File 'lib/ig_markets/client_account_summary.rb', line 36

attribute :ig_company

#lightstreamer_endpointObject

The lightstreamer_endpoint attribute.

Returns:

  • []


37
# File 'lib/ig_markets/client_account_summary.rb', line 37

attribute :lightstreamer_endpoint

#rerouting_environmentSymbol

The rerouting_environment attribute.

Returns:

  • (Symbol)

38
# File 'lib/ig_markets/client_account_summary.rb', line 38

attribute :rerouting_environment, Symbol, allowed_values: %i[demo live test uat]

#timezone_offsetFloat

The timezone_offset attribute.

Returns:

  • (Float)

39
# File 'lib/ig_markets/client_account_summary.rb', line 39

attribute :timezone_offset, Float

#trailing_stops_enabledBoolean

The trailing_stops_enabled attribute.

Returns:


40
# File 'lib/ig_markets/client_account_summary.rb', line 40

attribute :trailing_stops_enabled, Boolean