module IEX::Endpoints::KeyStats

Public Instance Methods

key_stats(symbol, options = {}) click to toggle source
# File lib/iex/endpoints/key_stats.rb, line 4
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