Sha256: 5ed4143f2a77bffb7d099e37eee4f38dd1756a13e148b2366e4596e5b641d8e4
Contents?: true
Size: 409 Bytes
Versions: 10
Compression:
Stored size: 409 Bytes
Contents
module IEX module Endpoints module Earnings def earnings(symbol, options = {}) get("stock/#{symbol}/earnings", { token: publishable_token }.merge(options))['earnings'].map do |data| IEX::Resources::Earnings.new(data) end 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