Sha256: bac0e84e687a9bcbba76a12797636459e84a6445286dd7101be0f7a6a353665f

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

require 'spec_helper'

describe IEX::Api::Client do
  include_context 'client'

  describe 'ISIN Mapping', vcr: { cassette_name: 'ref-data/isin' } do
    subject do
      client.post('ref-data/isin', isin: ['US0378331005'], token: client.secret_token)
    end
    it 'retrieves a ticker by ISIN' do
      expect(subject.count).to eq(2)
      expect(subject.first).to eq('exchange' => 'NAS', 'iexId' => 'IEX_4D48333344362D52', 'region' => 'US', 'symbol' => 'AAPL')
      expect(subject.last).to eq('exchange' => 'ETR', 'iexId' => 'IEX_464D46474C312D52', 'region' => 'DE', 'symbol' => 'APC-GY')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iex-ruby-client-1.1.1 spec/iex/endpoints/ref_data_spec.rb