Sha256: 51557894ad2ad181fe6ffab232be41f9689bb6dc8a5e1ff05b6fc680cb1a0c1c

Contents?: true

Size: 354 Bytes

Versions: 10

Compression:

Stored size: 354 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
iex-ruby-client-2.1.0 lib/iex/endpoints/key_stats.rb
iex-ruby-client-2.0.0 lib/iex/endpoints/key_stats.rb
iex-ruby-client-1.6.0 lib/iex/endpoints/key_stats.rb
iex-ruby-client-1.5.0 lib/iex/endpoints/key_stats.rb
iex-ruby-client-1.4.1 lib/iex/endpoints/key_stats.rb
iex-ruby-client-1.4.0 lib/iex/endpoints/key_stats.rb
iex-ruby-client-1.3.0 lib/iex/endpoints/key_stats.rb
iex-ruby-client-1.2.0 lib/iex/endpoints/key_stats.rb
iex-ruby-client-1.1.2 lib/iex/endpoints/key_stats.rb
iex-ruby-client-1.1.1 lib/iex/endpoints/key_stats.rb