Class: OpenfigiRuby::FigiResult
- Inherits:
-
Struct
- Object
- Struct
- OpenfigiRuby::FigiResult
- Defined in:
- lib/openfigi_ruby/figi_result.rb
Overview
Represents a single financial instrument returned by the OpenFIGI API.
Instance Attribute Summary collapse
-
#composite_figi ⇒ String?
readonly
Composite FIGI (aggregates listings across exchanges).
-
#exch_code ⇒ String?
readonly
Exchange code (e.g. "US", "LN").
-
#figi ⇒ String
readonly
The Financial Instrument Global Identifier (FIGI).
-
#market_sector ⇒ String?
readonly
Market sector (e.g. "Equity", "Corp", "Govt").
-
#metadata ⇒ String?
readonly
Optional metadata string returned by the API.
-
#name ⇒ String?
readonly
Instrument name.
-
#security_description ⇒ String?
readonly
Short description of the security.
-
#security_type ⇒ String?
readonly
Primary security classification (e.g. "Common Stock", "ETP").
-
#security_type2 ⇒ String?
readonly
Secondary security classification.
-
#share_class_figi ⇒ String?
readonly
Share class-level FIGI.
-
#ticker ⇒ String?
readonly
Exchange ticker symbol.
Instance Attribute Details
#composite_figi ⇒ String? (readonly)
Returns composite FIGI (aggregates listings across exchanges).
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |
#exch_code ⇒ String? (readonly)
Returns exchange code (e.g. "US", "LN").
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |
#figi ⇒ String (readonly)
Returns the Financial Instrument Global Identifier (FIGI).
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |
#market_sector ⇒ String? (readonly)
Returns market sector (e.g. "Equity", "Corp", "Govt").
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |
#metadata ⇒ String? (readonly)
Returns optional metadata string returned by the API.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |
#name ⇒ String? (readonly)
Returns instrument name.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |
#security_description ⇒ String? (readonly)
Returns short description of the security.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |
#security_type ⇒ String? (readonly)
Returns primary security classification (e.g. "Common Stock", "ETP").
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |
#security_type2 ⇒ String? (readonly)
Returns secondary security classification.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |
#share_class_figi ⇒ String? (readonly)
Returns share class-level FIGI.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |
#ticker ⇒ String? (readonly)
Returns exchange ticker symbol.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openfigi_ruby/figi_result.rb', line 28 FigiResult = Struct.new( :figi, :security_type, :market_sector, :ticker, :name, :exch_code, :share_class_figi, :composite_figi, :security_type2, :security_description, :metadata, keyword_init: true ) |