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.

Returns:

  • (Float)


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

attribute :bid, Float

#delay_timeFloat

The delay_time attribute.

Returns:

  • (Float)


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

attribute :delay_time, Float

#epicString

The epic attribute.

Returns:

  • (String)


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

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

#exchange_idObject

The exchange_id attribute.

Returns:



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

attribute :exchange_id

#expiryString

The expiry attribute.

Returns:

  • (String)


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

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

#highFloat

The high attribute.

Returns:

  • (Float)


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

attribute :high, Float

#instrument_nameObject

The instrument_name attribute.

Returns:



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

attribute :instrument_name

#instrument_typeSymbol

The instrument_type attribute.

Returns:

  • (Symbol)


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.

Returns:

  • (Float)


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

attribute :lot_size, Float

#lowFloat

The low attribute.

Returns:

  • (Float)


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

attribute :low, Float

#market_statusSymbol

The market_status attribute.

Returns:

  • (Symbol)


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.

Returns:

  • (Float)


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

attribute :net_change, Float

#offerFloat

The offer attribute.

Returns:

  • (Float)


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

attribute :offer, Float

#otc_tradeableBoolean

The otc_tradeable attribute.

Returns:



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

attribute :otc_tradeable, Boolean

#percentage_changeFloat

The percentage_change attribute.

Returns:

  • (Float)


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

attribute :percentage_change, Float

#scaling_factorFloat

The scaling_factor attribute.

Returns:

  • (Float)


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

attribute :scaling_factor, Float

#streaming_prices_availableBoolean

The streaming_prices_available attribute.

Returns:



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

attribute :streaming_prices_available, Boolean

#update_time_utcObject

The update_time_utc attribute.

Returns:



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

attribute :update_time_utc