Sha256: d9dc670ccc63aec689a94ea24f7ca842783b5b902aa37acd36862f95f1c4726e

Contents?: true

Size: 378 Bytes

Versions: 7

Compression:

Stored size: 378 Bytes

Contents

module IEX
  module Endpoints
    module AdvancedStats
      def advanced_stats(symbol, options = {})
        IEX::Resources::AdvancedStats.new(get("stock/#{symbol}/advanced-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

7 entries across 7 versions & 1 rubygems

Version Path
iex-ruby-client-2.1.0 lib/iex/endpoints/advanced_stats.rb
iex-ruby-client-2.0.0 lib/iex/endpoints/advanced_stats.rb
iex-ruby-client-1.6.0 lib/iex/endpoints/advanced_stats.rb
iex-ruby-client-1.5.0 lib/iex/endpoints/advanced_stats.rb
iex-ruby-client-1.4.1 lib/iex/endpoints/advanced_stats.rb
iex-ruby-client-1.4.0 lib/iex/endpoints/advanced_stats.rb
iex-ruby-client-1.3.0 lib/iex/endpoints/advanced_stats.rb