Class: IGMarkets::Activity

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

Overview

Contains details on a single activity that occurred on an IG Markets account. Returned by DealingPlatform::AccountMethods#activities.

Defined Under Namespace

Classes: Details

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

#channelSymbol

The channel attribute.

Returns:

  • (Symbol)


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

attribute :channel, Symbol, allowed_values: %i[dealer mobile public_fix_api public_web_api system web]

#dateTime

The date attribute.

Returns:

  • (Time)


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

attribute :date, Time, format: '%FT%T'

#deal_idObject

The deal_id attribute.

Returns:



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

attribute :deal_id

#descriptionObject

The description attribute.

Returns:



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

attribute :description

#detailsDetails

The details attribute.

Returns:



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

attribute :details, Details

#epicString

The epic attribute.

Returns:

  • (String)


41
# File 'lib/ig_markets/activity.rb', line 41

attribute :epic, String, regex: Regex::EPIC

#periodTime

The period attribute.

Returns:

  • (Time)


42
# File 'lib/ig_markets/activity.rb', line 42

attribute :period, Time, nil_if: %w[- DFB], format: ['%FT%T', '%d-%b-%y', '%b-%y']

#statusSymbol

The status attribute.

Returns:

  • (Symbol)


43
# File 'lib/ig_markets/activity.rb', line 43

attribute :status, Symbol, allowed_values: %i[accepted rejected unknown]

#typeSymbol

The type attribute.

Returns:

  • (Symbol)


44
# File 'lib/ig_markets/activity.rb', line 44

attribute :type, Symbol, allowed_values: %i[edit_stop_and_limit position system working_order]