Sha256: 4c2c20d828287fa3ee744bd975c7b7803294b7a7424ef91ae7aac9451ff04bde
Contents?: true
Size: 281 Bytes
Versions: 3
Compression:
Stored size: 281 Bytes
Contents
module IEX module Endpoints module Price def price(symbol, options = {}) get("stock/#{symbol}/price", options) rescue Faraday::ResourceNotFound => e raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
iex-ruby-client-1.1.0 | lib/iex/endpoints/price.rb |
iex-ruby-client-1.0.1 | lib/iex/endpoints/price.rb |
iex-ruby-client-1.0.0 | lib/iex/endpoints/price.rb |