Sha256: 85368d71eb51cd46a1ea45dc34a3b8ac5c8a43de905d43c0ce0b40aaf9cb1843
Contents?: true
Size: 429 Bytes
Versions: 3
Compression:
Stored size: 429 Bytes
Contents
module IEX module Endpoints module Sectors def sectors(symbol, options = {}) get([ 'stock', symbol, 'sector-performance' ].compact.join('/'), options).map do |data| IEX::Resources::Sectors.new(data) end 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/sectors.rb |
iex-ruby-client-1.0.1 | lib/iex/endpoints/sectors.rb |
iex-ruby-client-1.0.0 | lib/iex/endpoints/sectors.rb |