Class: IGMarkets::Streaming::MarketUpdate
- Defined in:
- lib/ig_markets/streaming/market_update.rb
Overview
Contains details on a market update received via the streaming API. Used by Subscription#on_data.
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#bid ⇒ Float
The bid attribute.
-
#change ⇒ Float
The change attribute.
-
#change_pct ⇒ Float
The change_pct attribute.
-
#epic ⇒ String
The epic attribute.
-
#high ⇒ Float
The high attribute.
-
#low ⇒ Float
The low attribute.
-
#market_delay ⇒ Boolean
The market_delay attribute.
-
#market_state ⇒ Symbol
The market_state attribute.
-
#mid_open ⇒ Float
The mid_open attribute.
-
#odds ⇒ Float
The odds attribute.
-
#offer ⇒ Float
The offer attribute.
-
#strike_price ⇒ Float
The strike_price attribute.
-
#update_time ⇒ Object
The update_time 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
#bid ⇒ Float
The bid attribute.
5 |
# File 'lib/ig_markets/streaming/market_update.rb', line 5 attribute :bid, Float |
#change ⇒ Float
The change attribute.
6 |
# File 'lib/ig_markets/streaming/market_update.rb', line 6 attribute :change, Float |
#change_pct ⇒ Float
The change_pct attribute.
7 |
# File 'lib/ig_markets/streaming/market_update.rb', line 7 attribute :change_pct, Float |
#epic ⇒ String
The epic attribute.
8 |
# File 'lib/ig_markets/streaming/market_update.rb', line 8 attribute :epic, String, regex: Regex::EPIC |
#high ⇒ Float
The high attribute.
9 |
# File 'lib/ig_markets/streaming/market_update.rb', line 9 attribute :high, Float |
#low ⇒ Float
The low attribute.
10 |
# File 'lib/ig_markets/streaming/market_update.rb', line 10 attribute :low, Float |
#market_delay ⇒ Boolean
The market_delay attribute.
11 |
# File 'lib/ig_markets/streaming/market_update.rb', line 11 attribute :market_delay, Boolean |
#market_state ⇒ Symbol
The market_state attribute.
12 13 |
# File 'lib/ig_markets/streaming/market_update.rb', line 12 attribute :market_state, Symbol, allowed_values: %i[auction auction_no_edit closed edit offline suspended tradeable tradeable_no_edit unavailable] |
#mid_open ⇒ Float
The mid_open attribute.
14 |
# File 'lib/ig_markets/streaming/market_update.rb', line 14 attribute :mid_open, Float |
#odds ⇒ Float
The odds attribute.
15 |
# File 'lib/ig_markets/streaming/market_update.rb', line 15 attribute :odds, Float |
#offer ⇒ Float
The offer attribute.
16 |
# File 'lib/ig_markets/streaming/market_update.rb', line 16 attribute :offer, Float |
#strike_price ⇒ Float
The strike_price attribute.
17 |
# File 'lib/ig_markets/streaming/market_update.rb', line 17 attribute :strike_price, Float |
#update_time ⇒ Object
The update_time attribute.
18 |
# File 'lib/ig_markets/streaming/market_update.rb', line 18 attribute :update_time |