Class: IGMarkets::Market::Snapshot

Inherits:
IGMarkets::Model show all
Defined in:
lib/ig_markets/market.rb

Overview

Contains details on a snapshot of a market. Returned by #snapshot.

Instance Attribute Summary

Attributes inherited from IGMarkets::Model

#attributes

Instance Method Summary collapse

Methods inherited from IGMarkets::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)


26
# File 'lib/ig_markets/market.rb', line 26

attribute :bid, Float

#binary_oddsFloat

The binary_odds attribute.

Returns:

  • (Float)


27
# File 'lib/ig_markets/market.rb', line 27

attribute :binary_odds, Float

#controlled_risk_extra_spreadFloat

The controlled_risk_extra_spread attribute.

Returns:

  • (Float)


28
# File 'lib/ig_markets/market.rb', line 28

attribute :controlled_risk_extra_spread, Float

#decimal_places_factorFloat

The decimal_places_factor attribute.

Returns:

  • (Float)


29
# File 'lib/ig_markets/market.rb', line 29

attribute :decimal_places_factor, Float

#delay_timeFloat

The delay_time attribute.

Returns:

  • (Float)


30
# File 'lib/ig_markets/market.rb', line 30

attribute :delay_time, Float

#highFloat

The high attribute.

Returns:

  • (Float)


31
# File 'lib/ig_markets/market.rb', line 31

attribute :high, Float

#lowFloat

The low attribute.

Returns:

  • (Float)


32
# File 'lib/ig_markets/market.rb', line 32

attribute :low, Float

#market_statusSymbol

The market_status attribute.

Returns:

  • (Symbol)


33
34
# File 'lib/ig_markets/market.rb', line 33

attribute :market_status, Symbol, allowed_values: %i[closed edits_only offline on_auction
on_auction_no_edits suspended tradeable tradeable_no_edit]

#net_changeFloat

The net_change attribute.

Returns:

  • (Float)


35
# File 'lib/ig_markets/market.rb', line 35

attribute :net_change, Float

#offerFloat

The offer attribute.

Returns:

  • (Float)


36
# File 'lib/ig_markets/market.rb', line 36

attribute :offer, Float

#percentage_changeFloat

The percentage_change attribute.

Returns:

  • (Float)


37
# File 'lib/ig_markets/market.rb', line 37

attribute :percentage_change, Float

#scaling_factorFloat

The scaling_factor attribute.

Returns:

  • (Float)


38
# File 'lib/ig_markets/market.rb', line 38

attribute :scaling_factor, Float

#update_timeObject

The update_time attribute.

Returns:



39
# File 'lib/ig_markets/market.rb', line 39

attribute :update_time