Sha256: 006c3a5f38a6946d573cc9e8b3913d77a4f0a3a6a834b8b19b88a3f37169b866

Contents?: true

Size: 318 Bytes

Versions: 3

Compression:

Stored size: 318 Bytes

Contents

module IEX
  module Endpoints
    module KeyStats
      def key_stats(symbol, options = {})
        IEX::Resources::KeyStats.new(get("stock/#{symbol}/stats", options))
      rescue Faraday::ResourceNotFound => e
        raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body])
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iex-ruby-client-1.1.0 lib/iex/endpoints/key_stats.rb
iex-ruby-client-1.0.1 lib/iex/endpoints/key_stats.rb
iex-ruby-client-1.0.0 lib/iex/endpoints/key_stats.rb