Class: IGMarkets::HistoricalPriceResult::Snapshot

Inherits:
Model
  • Object
show all
Defined in:
lib/ig_markets/historical_price_result.rb

Overview

Contains details on a single historical price snapshot. Used by #prices.

Defined Under Namespace

Classes: Price

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

#close_pricePrice

The close_price attribute.

Returns:



34
# File 'lib/ig_markets/historical_price_result.rb', line 34

attribute :close_price, Price

#high_pricePrice

The high_price attribute.

Returns:



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

attribute :high_price, Price

#last_traded_volumeFloat

The last_traded_volume attribute.

Returns:

  • (Float)


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

attribute :last_traded_volume, Float

#low_pricePrice

The low_price attribute.

Returns:



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

attribute :low_price, Price

#open_pricePrice

The open_price attribute.

Returns:



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

attribute :open_price, Price

#snapshot_time_utcTime

The snapshot_time_utc attribute.

Returns:

  • (Time)


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

attribute :snapshot_time_utc, Time, format: '%FT%T'