Class: IGMarkets::Streaming::ChartTickUpdate

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

Overview

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

#bidFloat

The bid attribute.

Returns:

  • (Float)

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

attribute :bid, Float

#day_highFloat

The day_high attribute.

Returns:

  • (Float)

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

attribute :day_high, Float

#day_lowFloat

The day_low attribute.

Returns:

  • (Float)

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

attribute :day_low, Float

#day_net_chg_midFloat

The day_net_chg_mid attribute.

Returns:

  • (Float)

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

attribute :day_net_chg_mid, Float

#day_open_midFloat

The day_open_mid attribute.

Returns:

  • (Float)

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

attribute :day_open_mid, Float

#day_perc_chg_midFloat

The day_perc_chg_mid attribute.

Returns:

  • (Float)

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

attribute :day_perc_chg_mid, Float

#epicString

The epic attribute.

Returns:

  • (String)

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

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

#ltpFloat

The ltp attribute.

Returns:

  • (Float)

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

attribute :ltp, Float

#ltvFloat

The ltv attribute.

Returns:

  • (Float)

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

attribute :ltv, Float

#ofrFloat

The ofr attribute.

Returns:

  • (Float)

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

attribute :ofr, Float

#ttvFloat

The ttv attribute.

Returns:

  • (Float)

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

attribute :ttv, Float

#utmTime

The utm attribute.

Returns:

  • (Time)

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

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