Class: IGMarkets::MarketOverview

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

#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.


4
# File 'lib/ig_markets/market_overview.rb', line 4

attribute :bid, Float

#delay_timeFloat

The delay_time attribute.


5
# File 'lib/ig_markets/market_overview.rb', line 5

attribute :delay_time, Float

#epicString

The epic attribute.


6
# File 'lib/ig_markets/market_overview.rb', line 6

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

#exchange_idObject

The exchange_id attribute.


7
# File 'lib/ig_markets/market_overview.rb', line 7

attribute :exchange_id

#expiryString

The expiry attribute.


8
# File 'lib/ig_markets/market_overview.rb', line 8

attribute :expiry, String, nil_if: %w[- DFB]

#highFloat

The high attribute.


9
# File 'lib/ig_markets/market_overview.rb', line 9

attribute :high, Float

#instrument_nameObject

The instrument_name attribute.


10
# File 'lib/ig_markets/market_overview.rb', line 10

attribute :instrument_name

#instrument_typeSymbol

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_sizeFloat

The lot_size attribute.


12
# File 'lib/ig_markets/market_overview.rb', line 12

attribute :lot_size, Float

#lowFloat

The low attribute.


13
# File 'lib/ig_markets/market_overview.rb', line 13

attribute :low, Float

#market_statusSymbol

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_changeFloat

The net_change attribute.


15
# File 'lib/ig_markets/market_overview.rb', line 15

attribute :net_change, Float

#offerFloat

The offer attribute.


16
# File 'lib/ig_markets/market_overview.rb', line 16

attribute :offer, Float

#otc_tradeableBoolean

The otc_tradeable attribute.


17
# File 'lib/ig_markets/market_overview.rb', line 17

attribute :otc_tradeable, Boolean

#percentage_changeFloat

The percentage_change attribute.


18
# File 'lib/ig_markets/market_overview.rb', line 18

attribute :percentage_change, Float

#scaling_factorFloat

The scaling_factor attribute.


19
# File 'lib/ig_markets/market_overview.rb', line 19

attribute :scaling_factor, Float

#streaming_prices_availableBoolean

The streaming_prices_available attribute.


20
# File 'lib/ig_markets/market_overview.rb', line 20

attribute :streaming_prices_available, Boolean

#update_time_utcObject

The update_time_utc attribute.


21
# File 'lib/ig_markets/market_overview.rb', line 21

attribute :update_time_utc