Class: IGMarkets::AccountActivity
- Defined in:
- lib/ig_markets/account_activity.rb
Overview
Contains details on a single activity that occurred on an IG Markets account. Returned by DealingPlatform::AccountMethods#activities_in_date_range and DealingPlatform::AccountMethods#recent_activities.
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#action_status ⇒ Symbol
The action_status attribute.
-
#activity ⇒ Object
The activity attribute.
-
#activity_history_id ⇒ Object
The activity_history_id attribute.
-
#channel ⇒ Object
The channel attribute.
-
#currency ⇒ Object
The currency attribute.
-
#date ⇒ Date
The date attribute.
-
#deal_id ⇒ Object
The deal_id attribute.
-
#epic ⇒ String
The epic attribute.
-
#level ⇒ Float
The level attribute.
-
#limit ⇒ Float
The limit attribute.
-
#market_name ⇒ Object
The market_name attribute.
-
#period ⇒ String
The period attribute.
-
#result ⇒ Object
The result attribute.
-
#size ⇒ Object
The size attribute.
-
#stop ⇒ String
The stop attribute.
-
#stop_type ⇒ String
The stop_type attribute.
-
#time ⇒ Object
The time attribute.
Methods inherited from Model
#==, allowed_values, attribute, defined_attribute_names, from, #initialize, #inspect
Constructor Details
This class inherits a constructor from IGMarkets::Model
Instance Method Details
#action_status ⇒ Symbol
The action_status attribute.
6 |
# File 'lib/ig_markets/account_activity.rb', line 6 attribute :action_status, Symbol, allowed_values: [:accept, :reject, :manual, :not_set] |
#activity ⇒ Object
The activity attribute.
7 |
# File 'lib/ig_markets/account_activity.rb', line 7 attribute :activity |
#activity_history_id ⇒ Object
The activity_history_id attribute.
8 |
# File 'lib/ig_markets/account_activity.rb', line 8 attribute :activity_history_id |
#channel ⇒ Object
The channel attribute.
9 |
# File 'lib/ig_markets/account_activity.rb', line 9 attribute :channel |
#currency ⇒ Object
The currency attribute.
10 |
# File 'lib/ig_markets/account_activity.rb', line 10 attribute :currency |
#date ⇒ Date
The date attribute.
11 |
# File 'lib/ig_markets/account_activity.rb', line 11 attribute :date, Date, format: '%d/%m/%y' |
#deal_id ⇒ Object
The deal_id attribute.
12 |
# File 'lib/ig_markets/account_activity.rb', line 12 attribute :deal_id |
#epic ⇒ String
The epic attribute.
13 |
# File 'lib/ig_markets/account_activity.rb', line 13 attribute :epic, String, regex: Regex::EPIC |
#level ⇒ Float
The level attribute.
14 |
# File 'lib/ig_markets/account_activity.rb', line 14 attribute :level, Float |
#limit ⇒ Float
The limit attribute.
15 |
# File 'lib/ig_markets/account_activity.rb', line 15 attribute :limit, Float, nil_if: '-' |
#market_name ⇒ Object
The market_name attribute.
16 |
# File 'lib/ig_markets/account_activity.rb', line 16 attribute :market_name |
#period ⇒ String
The period attribute.
17 |
# File 'lib/ig_markets/account_activity.rb', line 17 attribute :period, String, nil_if: '-' |
#result ⇒ Object
The result attribute.
18 |
# File 'lib/ig_markets/account_activity.rb', line 18 attribute :result |
#size ⇒ Object
The size attribute.
19 |
# File 'lib/ig_markets/account_activity.rb', line 19 attribute :size |
#stop ⇒ String
The stop attribute.
20 |
# File 'lib/ig_markets/account_activity.rb', line 20 attribute :stop, String, nil_if: '-' |
#stop_type ⇒ String
The stop_type attribute.
21 |
# File 'lib/ig_markets/account_activity.rb', line 21 attribute :stop_type, String, nil_if: '-', allowed_values: %w(G N T(50)) |
#time ⇒ Object
The time attribute.
22 |
# File 'lib/ig_markets/account_activity.rb', line 22 attribute :time |