Class: IGMarkets::Streaming::AccountUpdate

Inherits:
Model
  • Object
show all
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

#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

#account_idObject

The account_id attribute.

Returns:

  • []


5
# File 'lib/ig_markets/streaming/account_update.rb', line 5

attribute :account_id

#available_cashFloat

The available_cash attribute.

Returns:

  • (Float)

6
# File 'lib/ig_markets/streaming/account_update.rb', line 6

attribute :available_cash, Float

#available_to_dealFloat

The available_to_deal attribute.

Returns:

  • (Float)

7
# File 'lib/ig_markets/streaming/account_update.rb', line 7

attribute :available_to_deal, Float

#depositFloat

The deposit attribute.

Returns:

  • (Float)

8
# File 'lib/ig_markets/streaming/account_update.rb', line 8

attribute :deposit, Float

#equityFloat

The equity attribute.

Returns:

  • (Float)

9
# File 'lib/ig_markets/streaming/account_update.rb', line 9

attribute :equity, Float

#equity_usedFloat

The equity_used attribute.

Returns:

  • (Float)

10
# File 'lib/ig_markets/streaming/account_update.rb', line 10

attribute :equity_used, Float

#fundsFloat

The funds attribute.

Returns:

  • (Float)

11
# File 'lib/ig_markets/streaming/account_update.rb', line 11

attribute :funds, Float

#marginFloat

The margin attribute.

Returns:

  • (Float)

12
# File 'lib/ig_markets/streaming/account_update.rb', line 12

attribute :margin, Float

#margin_lrFloat

The margin_lr attribute.

Returns:

  • (Float)

13
# File 'lib/ig_markets/streaming/account_update.rb', line 13

attribute :margin_lr, Float

#margin_nlrFloat

The margin_nlr attribute.

Returns:

  • (Float)

14
# File 'lib/ig_markets/streaming/account_update.rb', line 14

attribute :margin_nlr, Float

#pnlFloat

The pnl attribute.

Returns:

  • (Float)

15
# File 'lib/ig_markets/streaming/account_update.rb', line 15

attribute :pnl, Float

#pnl_lrFloat

The pnl_lr attribute.

Returns:

  • (Float)

16
# File 'lib/ig_markets/streaming/account_update.rb', line 16

attribute :pnl_lr, Float

#pnl_nlrFloat

The pnl_nlr attribute.

Returns:

  • (Float)

17
# File 'lib/ig_markets/streaming/account_update.rb', line 17

attribute :pnl_nlr, Float