Class: IGMarkets::HistoricalPriceResult

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

Overview

Contains details on a historical price query result. Returned by Market#historical_prices.

Defined Under Namespace

Classes: Metadata, Snapshot

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

#instrument_typeSymbol

The instrument_type attribute.

Returns:

  • (Symbol)

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

attribute :instrument_type, Symbol, allowed_values: Instrument.allowed_values(:type)

#metadataMetadata

The metadata attribute.

Returns:


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

attribute :metadata, Metadata

#pricesSnapshot

The prices attribute.

Returns:


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

attribute :prices, Snapshot