Class: IGMarkets::MarketOverview
- Defined in:
- lib/ig_markets/market_overview.rb
Overview
Contains an overview of a market’s state. Returned by Position#market and WorkingOrder#market.
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#bid ⇒ Float
The bid attribute.
-
#delay_time ⇒ Float
The delay_time attribute.
-
#epic ⇒ String
The epic attribute.
-
#exchange_id ⇒ Object
The exchange_id attribute.
-
#expiry ⇒ String
The expiry attribute.
-
#high ⇒ Float
The high attribute.
-
#instrument_name ⇒ Object
The instrument_name attribute.
-
#instrument_type ⇒ Symbol
The instrument_type attribute.
-
#lot_size ⇒ Float
The lot_size attribute.
-
#low ⇒ Float
The low attribute.
-
#market_status ⇒ Symbol
The market_status attribute.
-
#net_change ⇒ Float
The net_change attribute.
-
#offer ⇒ Float
The offer attribute.
-
#otc_tradeable ⇒ Boolean
The otc_tradeable attribute.
-
#percentage_change ⇒ Float
The percentage_change attribute.
-
#scaling_factor ⇒ Float
The scaling_factor attribute.
-
#streaming_prices_available ⇒ Boolean
The streaming_prices_available attribute.
-
#update_time_utc ⇒ Object
The update_time_utc 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.
4 |
# File 'lib/ig_markets/market_overview.rb', line 4 attribute :bid, Float |
#delay_time ⇒ Float
The delay_time attribute.
5 |
# File 'lib/ig_markets/market_overview.rb', line 5 attribute :delay_time, Float |
#epic ⇒ String
The epic attribute.
6 |
# File 'lib/ig_markets/market_overview.rb', line 6 attribute :epic, String, regex: Regex::EPIC |
#exchange_id ⇒ Object
The exchange_id attribute.
7 |
# File 'lib/ig_markets/market_overview.rb', line 7 attribute :exchange_id |
#expiry ⇒ String
The expiry attribute.
8 |
# File 'lib/ig_markets/market_overview.rb', line 8 attribute :expiry, String, nil_if: %w[- DFB] |
#high ⇒ Float
The high attribute.
9 |
# File 'lib/ig_markets/market_overview.rb', line 9 attribute :high, Float |
#instrument_name ⇒ Object
The instrument_name attribute.
10 |
# File 'lib/ig_markets/market_overview.rb', line 10 attribute :instrument_name |
#instrument_type ⇒ Symbol
The instrument_type attribute.
11 |
# File 'lib/ig_markets/market_overview.rb', line 11 attribute :instrument_type, Symbol, allowed_values: Instrument.allowed_values(:type) |
#lot_size ⇒ Float
The lot_size attribute.
12 |
# File 'lib/ig_markets/market_overview.rb', line 12 attribute :lot_size, Float |
#low ⇒ Float
The low attribute.
13 |
# File 'lib/ig_markets/market_overview.rb', line 13 attribute :low, Float |
#market_status ⇒ Symbol
The market_status attribute.
14 |
# File 'lib/ig_markets/market_overview.rb', line 14 attribute :market_status, Symbol, allowed_values: Market::Snapshot.allowed_values(:market_status) |
#net_change ⇒ Float
The net_change attribute.
15 |
# File 'lib/ig_markets/market_overview.rb', line 15 attribute :net_change, Float |
#offer ⇒ Float
The offer attribute.
16 |
# File 'lib/ig_markets/market_overview.rb', line 16 attribute :offer, Float |
#otc_tradeable ⇒ Boolean
The otc_tradeable attribute.
17 |
# File 'lib/ig_markets/market_overview.rb', line 17 attribute :otc_tradeable, Boolean |
#percentage_change ⇒ Float
The percentage_change attribute.
18 |
# File 'lib/ig_markets/market_overview.rb', line 18 attribute :percentage_change, Float |
#scaling_factor ⇒ Float
The scaling_factor attribute.
19 |
# File 'lib/ig_markets/market_overview.rb', line 19 attribute :scaling_factor, Float |
#streaming_prices_available ⇒ Boolean
The streaming_prices_available attribute.
20 |
# File 'lib/ig_markets/market_overview.rb', line 20 attribute :streaming_prices_available, Boolean |
#update_time_utc ⇒ Object
The update_time_utc attribute.
21 |
# File 'lib/ig_markets/market_overview.rb', line 21 attribute :update_time_utc |