module IEX::Endpoints::Quote
Public Instance Methods
quote(symbol, options = {})
click to toggle source
# File lib/iex/endpoints/quote.rb, line 4 def quote(symbol, options = {}) IEX::Resources::Quote.new(get("stock/#{symbol}/quote", { token: publishable_token }.merge(options))) rescue Faraday::ResourceNotFound => e raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body]) end