iex-ruby-client 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 530d80aa85cb4adbeae6839512b1e3f1bea92795c61a0b12f903518dd456d8f7
4
- data.tar.gz: f6bdca5ca322dd32e178b0b7f0d7bd8ccad94ee121c2d4d405adc84e6de75ce4
3
+ metadata.gz: 71bec851d78d50e5e8625f18e94212bd3d5825a1bf90a3809258e6ef88dcae34
4
+ data.tar.gz: b3f668404aada9eb2bcfa7f56767ce51083222c9f40a2fa95f15d005be9ee7ed
5
5
  SHA512:
6
- metadata.gz: 2b158981fd7e35729989fb6bb50f9f859e2b905f72eb94442db29866db42e825a27c4646b3c1cdc51182f2fc73b9e268385f128619ddf949cfd7171256980be7
7
- data.tar.gz: dc6897f3d8d51572a19aa003fd59fda2ed183bdd688307a466e7bcd2aec7a659974466d1d0ea2015895c4388f625a7466d62215e99d930ff06ab1a21b53631ec
6
+ metadata.gz: bf29091889a722d957ea6abceb5dc60d761fde868abc4212829c48723fc668870dbad46a75815823224bf324bd466fc917669792b320c85b0a907979b37008cc
7
+ data.tar.gz: 1222b56a8c47e79cd36b92b124128fa0162f8acbd9aa466f212cd0bc3bbe94036c2cc0c79243e348cf3b65ebb527ba47d46b91850dc8059cd081cab247568971
@@ -0,0 +1 @@
1
+ github: [dblock]
@@ -1,25 +1,32 @@
1
+ ### 1.2.0 (2020/09/01)
2
+
3
+ * [#78](https://github.com/dblock/iex-ruby-client/pull/78): Added `Quote#extended_change_percent` and `Quote#extended_change_percent_s` properties to Quote - [@reddavis](https://github.com/reddavis).
4
+ * [#71](https://github.com/dblock/iex-ruby-client/pull/71): Added `symbols` resource - [@ryosuke-endo](https://github.com/ryosuke-endo).
5
+ * [#69](https://github.com/dblock/iex-ruby-client/pull/69): Fixed `ref_data_isin` request - [@bguban](https://github.com/bguban).
6
+ * [#72](https://github.com/dblock/iex-ruby-client/pull/72): Cache `Faraday::Connection` for persistent adapters - [@dblock](https://github.com/dblock).
7
+
1
8
  ### 1.1.2 (2020/03/25)
2
9
 
3
- * [#68](https://github.com/dblock/iex-ruby-client/pull/68): Fix ref_data_isin request with wrong isin - [@bguban](https://github.com/bguban).
4
- * [#67](https://github.com/dblock/iex-ruby-client/pull/67): Add required ruby version to gemspec - [@wdperson](https://github.com/wdperson).
5
- * [#66](https://github.com/dblock/iex-ruby-client/pull/66): Fix: KeyStats#week_52_change always returns nil - [@brunjo](https://github.com/brunjo).
6
- * [#65](https://github.com/dblock/iex-ruby-client/pull/65): Add stock_market_list - [@bguban](https://github.com/bguban).
7
- * [#64](https://github.com/dblock/iex-ruby-client/pull/64): Add ref_data_isin - [@bguban](https://github.com/bguban).
10
+ * [#68](https://github.com/dblock/iex-ruby-client/pull/68): Fixed `ref_data_isin` request with wrong isin - [@bguban](https://github.com/bguban).
11
+ * [#67](https://github.com/dblock/iex-ruby-client/pull/67): Added required ruby version to gemspec - [@wdperson](https://github.com/wdperson).
12
+ * [#66](https://github.com/dblock/iex-ruby-client/pull/66): Fixed `KeyStats#week_52_change always` returns nil - [@brunjo](https://github.com/brunjo).
13
+ * [#65](https://github.com/dblock/iex-ruby-client/pull/65): Added `stock_market_list` - [@bguban](https://github.com/bguban).
14
+ * [#64](https://github.com/dblock/iex-ruby-client/pull/64): Added `ref_data_isin` - [@bguban](https://github.com/bguban).
8
15
 
9
16
  ### 1.1.1 (2020/03/02)
10
17
 
11
18
  * [#63](https://github.com/dblock/iex-ruby-client/pull/63): Allow direct API calls with support for secret_token - [@bguban](https://github.com/bguban).
12
- * [#61](https://github.com/dblock/iex-ruby-client/pull/61): Fix income endpoint if the api returns no result - [@brunjo](https://github.com/brunjo).
13
- * [#57](https://github.com/dblock/iex-ruby-client/pull/57): Update properties for chart api endpoint - [@brunjo](https://github.com/brunjo).
19
+ * [#61](https://github.com/dblock/iex-ruby-client/pull/61): Fixed income endpoint if the api returns no result - [@brunjo](https://github.com/brunjo).
20
+ * [#57](https://github.com/dblock/iex-ruby-client/pull/57): Updated properties for chart api endpoint - [@brunjo](https://github.com/brunjo).
14
21
 
15
22
  ### 1.1.0 (2019/07/08)
16
23
 
17
- * [#55](https://github.com/dblock/iex-ruby-client/pull/55): Add `income` statement API and add `tags` to the `company` - [@bingxie](https://github.com/bingxie).
24
+ * [#55](https://github.com/dblock/iex-ruby-client/pull/55): Added `income` statement API and add `tags` to the `company` - [@bingxie](https://github.com/bingxie).
18
25
 
19
26
  ### 1.0.1 (2019/07/08)
20
27
 
21
- * [#50](https://github.com/dblock/iex-ruby-client/pull/50): Add missing properties for key stats API - [@bingxie](https://github.com/bingxie).
22
- * Fix: `uninitialized constant IEX::Endpoints::Chart::Date (NameError)` - [@dblock](https://github.com/dblock).
28
+ * [#50](https://github.com/dblock/iex-ruby-client/pull/50): Added missing properties for key stats API - [@bingxie](https://github.com/bingxie).
29
+ * Fixed `uninitialized constant IEX::Endpoints::Chart::Date (NameError)` - [@dblock](https://github.com/dblock).
23
30
 
24
31
  ### 1.0.0 (2019/04/23)
25
32
 
@@ -29,9 +36,9 @@
29
36
  ### 0.4.4 (2018/12/27)
30
37
 
31
38
  * [#39](https://github.com/dblock/iex-ruby-client/pull/39): Remove default range and use iextrading default range 1m instead in `IEX::Api::Dividends` - [@ildarkayumov](https://github.com/ildarkayumov).
32
- * [#37](https://github.com/dblock/iex-ruby-client/pull/37): Add `IEX::Resource::Crypto` - [@rodolfobandeira](https://github.com/rodolfobandeira).
33
- * [#34](https://github.com/dblock/iex-ruby-client/pull/34): Add `IEX::Resource::LargestTrades` - [@gil27](https://github.com/gil27).
34
- * [#32](https://github.com/dblock/iex-ruby-client/pull/32): Add `IEX::Resource::Sectors` - [@gil27](https://github.com/gil27).
39
+ * [#37](https://github.com/dblock/iex-ruby-client/pull/37): Added `IEX::Resource::Crypto` - [@rodolfobandeira](https://github.com/rodolfobandeira).
40
+ * [#34](https://github.com/dblock/iex-ruby-client/pull/34): Added `IEX::Resource::LargestTrades` - [@gil27](https://github.com/gil27).
41
+ * [#32](https://github.com/dblock/iex-ruby-client/pull/32): Added `IEX::Resource::Sectors` - [@gil27](https://github.com/gil27).
35
42
 
36
43
  ### 0.4.3 (2018/08/18)
37
44
 
@@ -39,7 +46,7 @@
39
46
 
40
47
  ### 0.4.2 (2018/08/14)
41
48
 
42
- * [#24](https://github.com/dblock/iex-ruby-client/pull/24): Add danger-toc and danger-changelog - [@rodolfobandeira](https://github.com/rodolfobandeira).
49
+ * [#24](https://github.com/dblock/iex-ruby-client/pull/24): Added danger-toc and danger-changelog - [@rodolfobandeira](https://github.com/rodolfobandeira).
43
50
  * [#21](https://github.com/dblock/iex-ruby-client/pull/21): Added `IEX::Resources::Dividends` - [@rodolfobandeira](https://github.com/rodolfobandeira).
44
51
 
45
52
  ### 0.4.1 (2018/08/07)
@@ -58,18 +65,18 @@
58
65
 
59
66
  ### 0.3.2 (2018/05/26)
60
67
 
61
- * Fix: undefined method > for nil:NilClass error - [@dblock](https://github.com/dblock).
68
+ * Fixed undefined method > for nil:NilClass error - [@dblock](https://github.com/dblock).
62
69
 
63
70
  ### 0.3.1 (2018/05/23)
64
71
 
65
- * [#3](https://github.com/dblock/iex-ruby-client/issues/3): Fix: do not error on undefined properties - [@dblock](https://github.com/dblock).
72
+ * [#3](https://github.com/dblock/iex-ruby-client/issues/3): Fixed do not error on undefined properties - [@dblock](https://github.com/dblock).
66
73
 
67
74
  ### 0.3.0 (2018/05/22)
68
75
 
69
76
  * Added `IEX::Resources::Chart#get` - [@dblock](https://github.com/dblock).
70
77
  * Added `IEX::Resources::News#get` - [@dblock](https://github.com/dblock).
71
78
  * Added `IEX::Resources::Price#get` - [@dblock](https://github.com/dblock).
72
- * Fix: added `IEX::Resources::Quote#extendedPrice` and `IEX::Resources::Quote#extendedPriceTime` - [@dblock](https://github.com/dblock).
79
+ * Fixed added `IEX::Resources::Quote#extendedPrice` and `IEX::Resources::Quote#extendedPriceTime` - [@dblock](https://github.com/dblock).
73
80
 
74
81
  ### 0.2.0 (2018/03/26)
75
82
 
data/Dangerfile CHANGED
@@ -1,2 +1,2 @@
1
- toc.check
2
- changelog.check
1
+ toc.check!
2
+ changelog.check!
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'http://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :test do
6
- gem 'danger-changelog', '~> 0.3.0'
7
- gem 'danger-toc', '~> 0.1'
6
+ gem 'danger-changelog', '~> 0.6.0'
7
+ gem 'danger-toc', '~> 0.2.0'
8
8
  gem 'pry'
9
9
  end
data/README.md CHANGED
@@ -27,9 +27,11 @@ A Ruby client for the [The IEX Cloud API](https://iexcloud.io/docs/api/).
27
27
  - [Get Largest Trades](#get-largest-trades)
28
28
  - [Get a Quote for Crypto Currencies](#get-a-quote-for-crypto-currencies)
29
29
  - [ISIN Mapping](#isin-mapping)
30
+ - [Get Symbols](#get-symbols)
30
31
  - [Get List](#get-list)
31
32
  - [Other Requests](#other-requests)
32
33
  - [Configuration](#configuration)
34
+ - [Sandbox Environment](#sandbox-environment)
33
35
  - [Errors](#errors)
34
36
  - [SymbolNotFound](#symbolnotfound)
35
37
  - [PermissionDeniedError](#permissiondeniederror)
@@ -51,7 +53,7 @@ Run `bundle install`.
51
53
 
52
54
  ### Get an API Token
53
55
 
54
- Create an account on [IEX Cloud](https://iexcloud.io) and get a publishable token from the IEX cloud console. You should use a sandbox token and endpoint for testing.
56
+ Create an account on [IEX Cloud](https://iexcloud.io) and get a publishable token from the IEX cloud console.
55
57
 
56
58
  ### Configure
57
59
 
@@ -59,7 +61,7 @@ Create an account on [IEX Cloud](https://iexcloud.io) and get a publishable toke
59
61
  IEX::Api.configure do |config|
60
62
  config.publishable_token = 'publishable_token' # defaults to ENV['IEX_API_PUBLISHABLE_TOKEN']
61
63
  config.secret_token = 'secret_token' # defaults to ENV['IEX_API_SECRET_TOKEN']
62
- config.endpoint = 'https://sandbox.iexapis.com/v1' # defaults to 'https://cloud.iexapis.com/v1'
64
+ config.endpoint = 'https://cloud.iexapis.com/v1' # use 'https://sandbox.iexapis.com/v1' for Sandbox
63
65
  end
64
66
  ```
65
67
 
@@ -69,7 +71,7 @@ You can also configure an instance of a client directly.
69
71
  client = IEX::Api::Client.new(
70
72
  publishable_token: 'publishable_token',
71
73
  secret_token: 'secret_token',
72
- endpoint: 'https://sandbox.iexapis.com/v1'
74
+ endpoint: 'https://cloud.iexapis.com/v1'
73
75
  )
74
76
  ```
75
77
 
@@ -103,7 +105,7 @@ See [#quote](https://iexcloud.io/docs/api/#quote) for detailed documentation or
103
105
  Fetches a single stock OHLC price. Open and Close prices contain timestamp.
104
106
 
105
107
  ```ruby
106
- ohlc = client.ohlc.get('MSFT')
108
+ ohlc = client.ohlc('MSFT')
107
109
 
108
110
  ohlc.close.price # 90.165
109
111
  ohlc.close.time #
@@ -395,6 +397,22 @@ client.ref_data_isin(['US0378331005', 'US5949181045'], mapped: true) # {'US03783
395
397
 
396
398
  See [#ISIN Mapping](https://iexcloud.io/docs/api/#isin-mapping) for detailed documentation or [isin_mapping.rb](lib/iex/resources/isin_mapping.rb) for returned fields.
397
399
 
400
+ ### Get Symbols
401
+
402
+ Returns an array of symbols
403
+
404
+ ```ruby
405
+ symbols = client.ref_data_symbols()
406
+
407
+ symbol = symbols.first
408
+ symbol.exchange # NAS
409
+ symbol.iex_id # IEX_46574843354B2D52
410
+ symbol.region # US
411
+ symbol.symbol # A
412
+ ```
413
+
414
+ See [#symbols](https://iexcloud.io/docs/api/#symbols) for detailed documentation or [symbols.rb](lib/iex/resources/symbols.rb) for returned fields.
415
+
398
416
  ### Get List
399
417
 
400
418
  Returns an array of quotes for the top 10 symbols in a specified list.
@@ -407,7 +425,7 @@ See [#list](https://iexcloud.io/docs/api/#list) for detailed documentation or [q
407
425
 
408
426
  ### Other Requests
409
427
 
410
- Public endpoints that aren't yet supported by the client can be called using `client.get`, `client.post`, `client.put`
428
+ Public endpoints that aren't yet supported by the client can be called using `client.get`, `client.post`, `client.put`
411
429
  and `client.delete` methods. Pass the required token explicitly:
412
430
 
413
431
  ```ruby
@@ -428,7 +446,7 @@ end
428
446
  ```ruby
429
447
  client = IEX::Api::Client.new(
430
448
  publishable_token: ENV['IEX_API_PUBLISHABLE_TOKEN'],
431
- endpoint: 'https://sandbox.iexapis.com/v1'
449
+ endpoint: 'https://cloud.iexapis.com/v1'
432
450
  )
433
451
  ```
434
452
 
@@ -446,6 +464,14 @@ open_timeout | Optional connection open timeout in seconds.
446
464
  publishable_token | IEX Cloud API publishable token.
447
465
  endpoint | Defaults to `https://cloud.iexapis.com/v1`.
448
466
 
467
+ ## Sandbox Environment
468
+
469
+ IEX recommends you use a sandbox token and endpoint for testing.
470
+
471
+ However, please note that data in the IEX sandbox environment is scrambled. Therefore elements such as company and people names, descriptions, tags, and website URLs don't render any coherent data.
472
+
473
+ See [IEX sandbox environment](https://intercom.help/iexcloud/en/articles/2915433-testing-with-the-iex-cloud-sandbox) for more information.
474
+
449
475
  ## Errors
450
476
 
451
477
  ### SymbolNotFound
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.homepage = 'http://github.com/dblock/iex-ruby-client'
17
17
  s.licenses = ['MIT']
18
18
  s.summary = 'IEX Finance API Ruby client with support for retrieving stock quotes.'
19
- s.add_dependency 'faraday', '>= 0.9'
19
+ s.add_dependency 'faraday', '>= 0.17'
20
20
  s.add_dependency 'faraday_middleware'
21
21
  s.add_dependency 'hashie'
22
22
  s.add_dependency 'money_helper'
@@ -8,28 +8,30 @@ module IEX
8
8
  end
9
9
 
10
10
  def connection
11
- options = {}
11
+ @connection ||= begin
12
+ options = {}
12
13
 
13
- options[:headers] = {}
14
- options[:headers]['Accept'] = 'application/json; charset=utf-8'
15
- options[:headers]['Content-Type'] = 'application/json; charset=utf-8'
16
- options[:headers]['User-Agent'] = user_agent if user_agent
17
- options[:proxy] = proxy if proxy
18
- options[:ssl] = { ca_path: ca_path, ca_file: ca_file } if ca_path || ca_file
14
+ options[:headers] = {}
15
+ options[:headers]['Accept'] = 'application/json; charset=utf-8'
16
+ options[:headers]['Content-Type'] = 'application/json; charset=utf-8'
17
+ options[:headers]['User-Agent'] = user_agent if user_agent
18
+ options[:proxy] = proxy if proxy
19
+ options[:ssl] = { ca_path: ca_path, ca_file: ca_file } if ca_path || ca_file
19
20
 
20
- request_options = {}
21
- request_options[:timeout] = timeout if timeout
22
- request_options[:open_timeout] = open_timeout if open_timeout
23
- request_options[:params_encoder] = Faraday::FlatParamsEncoder
24
- options[:request] = request_options if request_options.any?
21
+ request_options = {}
22
+ request_options[:timeout] = timeout if timeout
23
+ request_options[:open_timeout] = open_timeout if open_timeout
24
+ request_options[:params_encoder] = Faraday::FlatParamsEncoder
25
+ options[:request] = request_options if request_options.any?
25
26
 
26
- ::Faraday::Connection.new(endpoint, options) do |connection|
27
- connection.use ::Faraday::Request::Multipart
28
- connection.use ::Faraday::Request::UrlEncoded
29
- connection.use ::IEX::Cloud::Response::RaiseError
30
- connection.use ::FaradayMiddleware::ParseJson, content_type: /\bjson$/
31
- connection.response :logger, logger if logger
32
- connection.adapter ::Faraday.default_adapter
27
+ ::Faraday::Connection.new(endpoint, options) do |connection|
28
+ connection.use ::Faraday::Request::Multipart
29
+ connection.use ::Faraday::Request::UrlEncoded
30
+ connection.use ::IEX::Cloud::Response::RaiseError
31
+ connection.use ::FaradayMiddleware::ParseJson, content_type: /\bjson$/
32
+ connection.response :logger, logger if logger
33
+ connection.adapter ::Faraday.default_adapter
34
+ end
33
35
  end
34
36
  end
35
37
  end
@@ -5,7 +5,7 @@ module IEX
5
5
  def on_complete(env)
6
6
  case env[:status]
7
7
  when 404
8
- raise Faraday::Error::ResourceNotFound, response_values(env)
8
+ raise Faraday::ResourceNotFound, response_values(env)
9
9
  when 403
10
10
  raise IEX::Errors::PermissionDeniedError, response_values(env)
11
11
  when ClientErrorStatuses
@@ -2,7 +2,7 @@ module IEX
2
2
  module Endpoints
3
3
  module RefData
4
4
  def ref_data_isin(isins, options = {})
5
- response = post('ref-data/isin', { token: publishable_token, isin: isins }.merge(options))
5
+ response = get('ref-data/isin', { token: publishable_token, isin: isins.join(',') }.merge(options))
6
6
 
7
7
  if response.is_a?(Hash) # mapped option was set
8
8
  response.transform_values do |rows|
@@ -12,6 +12,11 @@ module IEX
12
12
  response.map { |row| IEX::Resources::Symbol.new(row) }
13
13
  end
14
14
  end
15
+
16
+ def ref_data_symbols(options = {})
17
+ response = get('ref-data/symbols', { token: publishable_token }.merge(options))
18
+ response.map { |row| IEX::Resources::Symbols.new(row) }
19
+ end
15
20
  end
16
21
  end
17
22
  end
@@ -14,3 +14,4 @@ require_relative 'resources/quote'
14
14
  require_relative 'resources/sectors'
15
15
  require_relative 'resources/crypto'
16
16
  require_relative 'resources/symbol'
17
+ require_relative 'resources/symbols'
@@ -24,8 +24,18 @@ module IEX
24
24
  property 'iex_last_updated_t', from: 'iexLastUpdated', with: ->(v) { v&.positive? ? Time.at(v / 1000) : nil } # last update time of the data
25
25
  property 'delayed_price', from: 'delayedPrice' # 15 minute delayed market price
26
26
  property 'delayed_price_time', from: 'delayedPriceTime' # time of the delayed market price
27
- property 'extended_price', from: 'extendedPrice' # ?
28
- property 'extended_price_time', from: 'extendedPriceTime' # ?
27
+ property 'extended_price', from: 'extendedPrice' # the pre market and post market price
28
+ property 'extended_change_percent', from: 'extendedChangePercent' # price change percent between extended_price and latest_price
29
+ property 'extended_change_percent_s', from: 'extendedChangePercent', with: lambda { |v|
30
+ if v
31
+ [
32
+ v.positive? ? '+' : '',
33
+ format('%.2f', v * 100),
34
+ '%'
35
+ ].join
36
+ end
37
+ } # change in percent as a String with a leading + or - sign
38
+ property 'extended_price_time', from: 'extendedPriceTime' # the last update time of extended_price
29
39
  property 'previous_close', from: 'previousClose' # adjusted close price of the last trading day of the stock
30
40
  property 'change' # change in value, calculated using calculation_price from previous_close
31
41
  property 'change_percent', from: 'changePercent' # change in percent, calculated using calculation_price from previous_close
@@ -0,0 +1,19 @@
1
+ module IEX
2
+ module Resources
3
+ class Symbols < Resource
4
+ property 'symbol'
5
+ property 'exchange'
6
+ property 'name'
7
+ property 'date', transform_with: ->(v) { Date.parse(v) }
8
+ property 'enabled', from: 'isEnabled'
9
+ property 'type'
10
+ property 'region'
11
+ property 'currency'
12
+ property 'iex_id', from: 'iexId'
13
+ property 'figi'
14
+ property 'cik'
15
+
16
+ alias :enabled? enabled
17
+ end
18
+ end
19
+ end
@@ -1,3 +1,3 @@
1
1
  module IEX
2
- VERSION = '1.1.2'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
@@ -1,18 +1,18 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
5
- uri: https://cloud.iexapis.com/v1/ref-data/isin
4
+ method: get
5
+ uri: https://cloud.iexapis.com/v1/ref-data/isin?isin=US0378331005&token=test-iex-api-publishable-token
6
6
  body:
7
- encoding: UTF-8
8
- string: '{"isin":["US0378331005"],"token":"test-iex-api-publishable-token"}'
7
+ encoding: US-ASCII
8
+ string: ''
9
9
  headers:
10
10
  Accept:
11
11
  - application/json; charset=utf-8
12
12
  Content-Type:
13
13
  - application/json; charset=utf-8
14
14
  User-Agent:
15
- - IEX Ruby Client/1.1.1
15
+ - IEX Ruby Client/1.1.3
16
16
  Accept-Encoding:
17
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
18
  response:
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - nginx
25
25
  Date:
26
- - Wed, 26 Feb 2020 20:04:36 GMT
26
+ - Fri, 10 Apr 2020 15:17:33 GMT
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Transfer-Encoding:
@@ -31,8 +31,8 @@ http_interactions:
31
31
  Connection:
32
32
  - keep-alive
33
33
  Set-Cookie:
34
- - ctoken=6b0870d7654f4742a9458a86f537ae8b; Max-Age=43200; Path=/; Expires=Thu,
35
- 27 Feb 2020 08:04:36 GMT
34
+ - ctoken=b1f966fa60964069a7d948021e2c2149; Max-Age=43200; Path=/; Expires=Sat,
35
+ 11 Apr 2020 03:17:32 GMT
36
36
  Iexcloud-Messages-Used:
37
37
  - '100'
38
38
  Iexcloud-Premium-Messages-Used:
@@ -53,5 +53,5 @@ http_interactions:
53
53
  encoding: ASCII-8BIT
54
54
  string: '[{"symbol":"AAPL","region":"US","exchange":"NAS","iexId":"IEX_4D48333344362D52"},{"symbol":"APC-GY","region":"DE","exchange":"ETR","iexId":"IEX_464D46474C312D52"}]'
55
55
  http_version: null
56
- recorded_at: Wed, 26 Feb 2020 20:04:36 GMT
56
+ recorded_at: Fri, 10 Apr 2020 15:17:33 GMT
57
57
  recorded_with: VCR 5.1.0
@@ -1,18 +1,18 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
5
- uri: https://cloud.iexapis.com/v1/ref-data/isin
4
+ method: get
5
+ uri: https://cloud.iexapis.com/v1/ref-data/isin?isin=US0378331005,US5949181045&mapped=true&token=test-iex-api-publishable-token
6
6
  body:
7
- encoding: UTF-8
8
- string: '{"token":"test-iex-api-publishable-token","isin":["US0378331005","US5949181045"],"mapped":true}'
7
+ encoding: US-ASCII
8
+ string: ''
9
9
  headers:
10
10
  Accept:
11
11
  - application/json; charset=utf-8
12
12
  Content-Type:
13
13
  - application/json; charset=utf-8
14
14
  User-Agent:
15
- - IEX Ruby Client/1.1.2
15
+ - IEX Ruby Client/1.1.3
16
16
  Accept-Encoding:
17
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
18
  response:
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - nginx
25
25
  Date:
26
- - Wed, 04 Mar 2020 09:45:05 GMT
26
+ - Fri, 10 Apr 2020 15:17:33 GMT
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Transfer-Encoding:
@@ -31,8 +31,8 @@ http_interactions:
31
31
  Connection:
32
32
  - keep-alive
33
33
  Set-Cookie:
34
- - ctoken=b93327e2c9b4432f9c7ecb36396dcd4c; Max-Age=43200; Path=/; Expires=Wed,
35
- 04 Mar 2020 21:45:05 GMT
34
+ - ctoken=49bd808852194ac59e3551620bd7c4b2; Max-Age=43200; Path=/; Expires=Sat,
35
+ 11 Apr 2020 03:17:33 GMT
36
36
  Iexcloud-Messages-Used:
37
37
  - '100'
38
38
  Iexcloud-Premium-Messages-Used:
@@ -53,5 +53,5 @@ http_interactions:
53
53
  encoding: ASCII-8BIT
54
54
  string: '{"US0378331005":[{"symbol":"AAPL","region":"US","exchange":"NAS","iexId":"IEX_4D48333344362D52"},{"symbol":"APC-GY","region":"DE","exchange":"ETR","iexId":"IEX_464D46474C312D52"}],"US5949181045":[{"symbol":"MSFT","region":"US","exchange":"NAS","iexId":"IEX_5038523343322D52"},{"symbol":"MSF-GY","region":"DE","exchange":"ETR","iexId":"IEX_4C42583859482D52"},{"symbol":"MSF-BB","region":"BE","exchange":"BRU","iexId":"IEX_5833345950432D52"}]}'
55
55
  http_version: null
56
- recorded_at: Wed, 04 Mar 2020 09:45:05 GMT
56
+ recorded_at: Fri, 10 Apr 2020 15:17:33 GMT
57
57
  recorded_with: VCR 5.1.0