Sha256: 59aa5c504b5757bef86d15a31236d6bda20b38b780bdce69a2074fa3699d6646
Contents?: true
Size: 317 Bytes
Versions: 10
Compression:
Stored size: 317 Bytes
Contents
module IEX module Endpoints module Price def price(symbol, options = {}) get("stock/#{symbol}/price", { 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