Class: IGMarkets::DealConfirmation
- Defined in:
- lib/ig_markets/deal_confirmation.rb
Overview
Contains details on a single dealing event. Returned by IGMarkets::DealingPlatform#deal_confirmation.
Defined Under Namespace
Classes: AffectedDeal
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#account_id ⇒ Object
The account_id attribute.
-
#affected_deals ⇒ AffectedDeal
The affected_deals attribute.
-
#channel ⇒ Object
The channel attribute.
-
#date ⇒ Time
The date attribute.
-
#deal_id ⇒ Object
The deal_id attribute.
-
#deal_reference ⇒ Object
The deal_reference attribute.
-
#deal_status ⇒ Symbol
The deal_status attribute.
-
#direction ⇒ Symbol
The direction attribute.
-
#epic ⇒ String
The epic attribute.
-
#expiry ⇒ Date
The expiry attribute.
-
#guaranteed_stop ⇒ Boolean
The guaranteed_stop attribute.
-
#level ⇒ Float
The level attribute.
-
#limit_distance ⇒ Integer
The limit_distance attribute.
-
#limit_level ⇒ Float
The limit_level attribute.
-
#profit ⇒ Float
The profit attribute.
-
#profit_currency ⇒ String
The profit_currency attribute.
-
#reason ⇒ Symbol
The reason attribute.
-
#size ⇒ Float
The size attribute.
-
#status ⇒ Symbol
The status attribute.
-
#stop_distance ⇒ Integer
The stop_distance attribute.
-
#stop_level ⇒ Float
The stop_level attribute.
-
#trailing_stop ⇒ Boolean
The trailing_stop attribute.
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_id ⇒ Object
The account_id attribute.
10 |
# File 'lib/ig_markets/deal_confirmation.rb', line 10 attribute :account_id |
#affected_deals ⇒ AffectedDeal
The affected_deals attribute.
11 |
# File 'lib/ig_markets/deal_confirmation.rb', line 11 attribute :affected_deals, AffectedDeal |
#channel ⇒ Object
The channel attribute.
12 |
# File 'lib/ig_markets/deal_confirmation.rb', line 12 attribute :channel |
#date ⇒ Time
The date attribute.
13 |
# File 'lib/ig_markets/deal_confirmation.rb', line 13 attribute :date, Time, format: ['%FT%T.%L', '%FT%T'] |
#deal_id ⇒ Object
The deal_id attribute.
14 |
# File 'lib/ig_markets/deal_confirmation.rb', line 14 attribute :deal_id |
#deal_reference ⇒ Object
The deal_reference attribute.
15 |
# File 'lib/ig_markets/deal_confirmation.rb', line 15 attribute :deal_reference |
#deal_status ⇒ Symbol
The deal_status attribute.
16 |
# File 'lib/ig_markets/deal_confirmation.rb', line 16 attribute :deal_status, Symbol, allowed_values: %i[accepted fund_account rejected] |
#direction ⇒ Symbol
The direction attribute.
17 |
# File 'lib/ig_markets/deal_confirmation.rb', line 17 attribute :direction, Symbol, allowed_values: %i[buy sell] |
#epic ⇒ String
The epic attribute.
18 |
# File 'lib/ig_markets/deal_confirmation.rb', line 18 attribute :epic, String, regex: Regex::EPIC |
#expiry ⇒ Date
The expiry attribute.
19 |
# File 'lib/ig_markets/deal_confirmation.rb', line 19 attribute :expiry, Date, nil_if: %w[- DFB], format: ['%d-%b-%y', '%b-%y'] |
#guaranteed_stop ⇒ Boolean
The guaranteed_stop attribute.
20 |
# File 'lib/ig_markets/deal_confirmation.rb', line 20 attribute :guaranteed_stop, Boolean |
#level ⇒ Float
The level attribute.
21 |
# File 'lib/ig_markets/deal_confirmation.rb', line 21 attribute :level, Float |
#limit_distance ⇒ Integer
The limit_distance attribute.
22 |
# File 'lib/ig_markets/deal_confirmation.rb', line 22 attribute :limit_distance, Integer |
#limit_level ⇒ Float
The limit_level attribute.
23 |
# File 'lib/ig_markets/deal_confirmation.rb', line 23 attribute :limit_level, Float |
#profit ⇒ Float
The profit attribute.
24 |
# File 'lib/ig_markets/deal_confirmation.rb', line 24 attribute :profit, Float |
#profit_currency ⇒ String
The profit_currency attribute.
25 |
# File 'lib/ig_markets/deal_confirmation.rb', line 25 attribute :profit_currency, String, regex: Regex::CURRENCY |
#reason ⇒ Symbol
The reason attribute.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/ig_markets/deal_confirmation.rb', line 26 attribute :reason, Symbol, allowed_values: %i[account_not_enabled_to_trading attached_order_level_error attached_order_trailing_stop_error cannot_change_stop_type cannot_remove_stop closing_only_trades_accepted_on_this_market conflicting_order contact_support_instrument_error cr_spacing duplicate_order_error exchange_manual_override finance_repeat_dealing force_open_on_same_market_different_currency general_error good_till_date_in_the_past instrument_not_found insufficient_funds level_tolerance_error manual_order_timeout market_closed market_closed_with_edits market_closing market_not_borrowable market_offline market_phone_only market_rolled market_unavailable_to_client max_auto_size_exceeded minimum_order_size_error move_away_only_limit move_away_only_stop move_away_only_trigger_level opposing_direction_orders_not_allowed opposing_positions_not_allowed order_locked order_not_found over_normal_market_size partially_closed_position_not_deleted position_not_available_to_close position_not_found reject_spreadbet_order_on_cfd_account size_increment sprint_market_expiry_after_market_close stop_or_limit_not_allowed stop_required_error strike_level_tolerance success trailing_stop_not_allowed unknown wrong_side_of_market] |
#size ⇒ Float
The size attribute.
46 |
# File 'lib/ig_markets/deal_confirmation.rb', line 46 attribute :size, Float |
#status ⇒ Symbol
The status attribute.
47 |
# File 'lib/ig_markets/deal_confirmation.rb', line 47 attribute :status, Symbol, allowed_values: %i[amended closed deleted open partially_closed] |
#stop_distance ⇒ Integer
The stop_distance attribute.
48 |
# File 'lib/ig_markets/deal_confirmation.rb', line 48 attribute :stop_distance, Integer |
#stop_level ⇒ Float
The stop_level attribute.
49 |
# File 'lib/ig_markets/deal_confirmation.rb', line 49 attribute :stop_level, Float |