Sha256: 6255858682d85dd4c2920bd92b270c850f59ee3d86bc2fd3b09ae77564a4aed0
Contents?: true
Size: 419 Bytes
Versions: 6
Compression:
Stored size: 419 Bytes
Contents
module IEX module Endpoints module CashFlow def cash_flow(symbol, options = {}) (get("stock/#{symbol}/cash-flow", { token: publishable_token }.merge(options))['cashflow'] || []).map do |data| IEX::Resources::CashFlow.new(data) end rescue Faraday::ResourceNotFound => e raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body]) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems