Module: IEX::Endpoints::StockMarket

Included in:
Api::Client
Defined in:
lib/iex/endpoints/stock_market.rb

Instance Method Summary collapse

Instance Method Details

#stock_market_list(list_type, options = {}) ⇒ Object



4
5
6
7
8
# File 'lib/iex/endpoints/stock_market.rb', line 4

def stock_market_list(list_type, options = {})
  get("stock/market/list/#{list_type}", { token: publishable_token }.merge(options)).map do |data|
    IEX::Resources::Quote.new(data)
  end
end