Class: IGMarkets::Activity::Details::Action

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

Overview

Contains details on the actions that were performed by an activity. Returned by #actions.

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

#action_typeSymbol

The action_type attribute.

Returns:

  • (Symbol)

9
10
11
12
13
14
15
# File 'lib/ig_markets/activity.rb', line 9

attribute :action_type, Symbol, allowed_values: %i[limit_order_amended limit_order_deleted
limit_order_filled limit_order_opened limit_order_rolled
position_closed position_deleted position_opened
position_partially_closed position_rolled
stop_limit_amended stop_order_amended stop_order_deleted
stop_order_filled stop_order_opened stop_order_rolled
unknown working_order_deleted]

#affected_deal_idObject

The affected_deal_id attribute.

Returns:

  • []


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

attribute :affected_deal_id