Sha256: b630ee1cb549bafa841bc024d8fc5170ca4d46cc8203cd664ef92656fa975f7b
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
module IEX module Endpoints module FX 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 end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
iex-ruby-client-2.1.0 | lib/iex/endpoints/fx.rb |
iex-ruby-client-2.0.0 | lib/iex/endpoints/fx.rb |
iex-ruby-client-1.6.0 | lib/iex/endpoints/fx.rb |
iex-ruby-client-1.5.0 | lib/iex/endpoints/fx.rb |