module IEX::Endpoints::FX
Public Instance Methods
fx_latest(symbols, options = {})
click to toggle source
# File lib/iex/endpoints/fx.rb, line 4 def fx_latest(symbols, options = {}) symbols = Array(symbols) response = get('fx/latest', { token: publishable_token, symbols: symbols.join(',') }.merge(options)) response.map { |row| IEX::Resources::CurrencyRate.new(row) } rescue Faraday::ResourceNotFound => e raise IEX::Errors::InvalidSymbolsList.new(symbols, e.response[:body]) end