Class: IGMarkets::Streaming::AccountUpdate
- Defined in:
- lib/ig_markets/streaming/account_update.rb
Overview
Contains details on an account update received via the streaming API. Used by Subscription#on_data.
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#account_id ⇒ Object
The account_id attribute.
-
#available_cash ⇒ Float
The available_cash attribute.
-
#available_to_deal ⇒ Float
The available_to_deal attribute.
-
#deposit ⇒ Float
The deposit attribute.
-
#equity ⇒ Float
The equity attribute.
-
#equity_used ⇒ Float
The equity_used attribute.
-
#funds ⇒ Float
The funds attribute.
-
#margin ⇒ Float
The margin attribute.
-
#margin_lr ⇒ Float
The margin_lr attribute.
-
#margin_nlr ⇒ Float
The margin_nlr attribute.
-
#pnl ⇒ Float
The pnl attribute.
-
#pnl_lr ⇒ Float
The pnl_lr attribute.
-
#pnl_nlr ⇒ Float
The pnl_nlr 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.
5 |
# File 'lib/ig_markets/streaming/account_update.rb', line 5 attribute :account_id |
#available_cash ⇒ Float
The available_cash attribute.
6 |
# File 'lib/ig_markets/streaming/account_update.rb', line 6 attribute :available_cash, Float |
#available_to_deal ⇒ Float
The available_to_deal attribute.
7 |
# File 'lib/ig_markets/streaming/account_update.rb', line 7 attribute :available_to_deal, Float |
#deposit ⇒ Float
The deposit attribute.
8 |
# File 'lib/ig_markets/streaming/account_update.rb', line 8 attribute :deposit, Float |
#equity ⇒ Float
The equity attribute.
9 |
# File 'lib/ig_markets/streaming/account_update.rb', line 9 attribute :equity, Float |
#equity_used ⇒ Float
The equity_used attribute.
10 |
# File 'lib/ig_markets/streaming/account_update.rb', line 10 attribute :equity_used, Float |
#funds ⇒ Float
The funds attribute.
11 |
# File 'lib/ig_markets/streaming/account_update.rb', line 11 attribute :funds, Float |
#margin ⇒ Float
The margin attribute.
12 |
# File 'lib/ig_markets/streaming/account_update.rb', line 12 attribute :margin, Float |
#margin_lr ⇒ Float
The margin_lr attribute.
13 |
# File 'lib/ig_markets/streaming/account_update.rb', line 13 attribute :margin_lr, Float |
#margin_nlr ⇒ Float
The margin_nlr attribute.
14 |
# File 'lib/ig_markets/streaming/account_update.rb', line 14 attribute :margin_nlr, Float |
#pnl ⇒ Float
The pnl attribute.
15 |
# File 'lib/ig_markets/streaming/account_update.rb', line 15 attribute :pnl, Float |
#pnl_lr ⇒ Float
The pnl_lr attribute.
16 |
# File 'lib/ig_markets/streaming/account_update.rb', line 16 attribute :pnl_lr, Float |
#pnl_nlr ⇒ Float
The pnl_nlr attribute.
17 |
# File 'lib/ig_markets/streaming/account_update.rb', line 17 attribute :pnl_nlr, Float |