Sha256: fee0ad8519456e46e7c9fd8b6109ea6556f923a29ac7287fc7c591db0f08a78e

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

module IEX
  module Endpoints
    module RefData
      def ref_data_isin(isins, options = {})
        response = post('ref-data/isin', { token: publishable_token, isin: isins }.merge(options))

        if response.is_a?(Hash) # mapped option was set
          response.transform_values do |rows|
            rows&.map { |row| IEX::Resources::Symbol.new(row) }
          end
        else
          response.map { |row| IEX::Resources::Symbol.new(row) }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iex-ruby-client-1.1.2 lib/iex/endpoints/ref_data.rb