Module: IEX::Endpoints::RefData
- Included in:
- Api::Client
- Defined in:
- lib/iex/endpoints/ref_data.rb
Instance Method Summary collapse
Instance Method Details
#ref_data_isin(isins, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/iex/endpoints/ref_data.rb', line 4 def ref_data_isin(isins, = {}) response = get('ref-data/isin', { token: publishable_token, isin: Array(isins).join(',') }.merge()) if response.is_a?(Hash) # mapped option was set response.transform_values do |rows| rows&.map { |row| IEX::Resources::Symbol.new(row) } end else response.map { |row| IEX::Resources::Symbol.new(row) } end end |