Class: IGMarkets::Streaming::ConsolidatedChartDataUpdate

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

Overview

Contains details on a consolidated chart data 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

#bid_closeFloat

The bid_close attribute.

Returns:

  • (Float)


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

attribute :bid_close, Float

#bid_highFloat

The bid_high attribute.

Returns:

  • (Float)


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

attribute :bid_high, Float

#bid_lowFloat

The bid_low attribute.

Returns:

  • (Float)


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

attribute :bid_low, Float

#bid_openFloat

The bid_open attribute.

Returns:

  • (Float)


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

attribute :bid_open, Float

#cons_endBoolean

The cons_end attribute.

Returns:



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

attribute :cons_end, Boolean

#cons_tick_countInteger

The cons_tick_count attribute.

Returns:

  • (Integer)


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

attribute :cons_tick_count, Integer

#day_highFloat

The day_high attribute.

Returns:

  • (Float)


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

attribute :day_high, Float

#day_lowFloat

The day_low attribute.

Returns:

  • (Float)


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

attribute :day_low, Float

#day_net_chg_midFloat

The day_net_chg_mid attribute.

Returns:

  • (Float)


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

attribute :day_net_chg_mid, Float

#day_open_midFloat

The day_open_mid attribute.

Returns:

  • (Float)


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

attribute :day_open_mid, Float

#day_perc_chg_midFloat

The day_perc_chg_mid attribute.

Returns:

  • (Float)


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

attribute :day_perc_chg_mid, Float

#epicString

The epic attribute.

Returns:

  • (String)


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

attribute :epic, String, regex: Regex::EPIC

#ltp_closeFloat

The ltp_close attribute.

Returns:

  • (Float)


18
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 18

attribute :ltp_close, Float

#ltp_highFloat

The ltp_high attribute.

Returns:

  • (Float)


19
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 19

attribute :ltp_high, Float

#ltp_lowFloat

The ltp_low attribute.

Returns:

  • (Float)


20
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 20

attribute :ltp_low, Float

#ltp_openFloat

The ltp_open attribute.

Returns:

  • (Float)


21
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 21

attribute :ltp_open, Float

#ltvFloat

The ltv attribute.

Returns:

  • (Float)


22
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 22

attribute :ltv, Float

#ofr_closeFloat

The ofr_close attribute.

Returns:

  • (Float)


23
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 23

attribute :ofr_close, Float

#ofr_highFloat

The ofr_high attribute.

Returns:

  • (Float)


24
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 24

attribute :ofr_high, Float

#ofr_lowFloat

The ofr_low attribute.

Returns:

  • (Float)


25
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 25

attribute :ofr_low, Float

#ofr_openFloat

The ofr_open attribute.

Returns:

  • (Float)


26
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 26

attribute :ofr_open, Float

#scaleSymbol

The scale attribute.

Returns:

  • (Symbol)


27
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 27

attribute :scale, Symbol, allowed_values: %i[one_second one_minute five_minutes one_hour]

#ttvFloat

The ttv attribute.

Returns:

  • (Float)


28
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 28

attribute :ttv, Float

#utmTime

The utm attribute.

Returns:

  • (Time)


29
# File 'lib/ig_markets/streaming/consolidated_chart_data_update.rb', line 29

attribute :utm, Time, format: '%Q'