Sha256: d2e5018208c08ce8ceba05f8162643c5fd36ae76b14b8ee1084d0320ab5e0978

Contents?: true

Size: 699 Bytes

Versions: 2

Compression:

Stored size: 699 Bytes

Contents

module IEX
  module Resources
    class Symbols < Resource
      property 'symbol'
      property 'exchange'
      property 'exchange_suffix', from: 'exchangeSuffix'
      property 'exchange_name', from: 'exchangeName'
      property 'exchange_segment', from: 'exchangeSegment'
      property 'exchange_segment_name', from: 'exchangeSegmentName'
      property 'name'
      property 'date', transform_with: ->(v) { Date.parse(v) }
      property 'enabled', from: 'isEnabled'
      property 'type'
      property 'region'
      property 'currency'
      property 'iex_id', from: 'iexId'
      property 'figi'
      property 'cik'
      property 'lei'

      alias :enabled? enabled
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iex-ruby-client-2.1.0 lib/iex/resources/symbols.rb
iex-ruby-client-2.0.0 lib/iex/resources/symbols.rb