iex-ruby-client 1.0.0 → 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 +5 -5
- data/.github/FUNDING.yml +1 -0
- data/.rubocop.yml +4 -1
- data/CHANGELOG.md +37 -7
- data/Dangerfile +2 -2
- data/Gemfile +2 -2
- data/README.md +159 -37
- data/iex-ruby-client.gemspec +3 -2
- data/lib/iex-ruby-client.rb +1 -0
- data/lib/iex/api.rb +3 -0
- data/lib/iex/api/client.rb +3 -0
- data/lib/iex/api/config.rb +2 -0
- data/lib/iex/cloud/connection.rb +21 -19
- data/lib/iex/cloud/request.rb +1 -1
- data/lib/iex/cloud/response.rb +1 -1
- data/lib/iex/endpoints/chart.rb +5 -6
- data/lib/iex/endpoints/company.rb +1 -1
- data/lib/iex/endpoints/crypto.rb +1 -1
- data/lib/iex/endpoints/dividends.rb +1 -1
- data/lib/iex/endpoints/earnings.rb +1 -1
- data/lib/iex/endpoints/income.rb +13 -0
- data/lib/iex/endpoints/key_stats.rb +1 -1
- data/lib/iex/endpoints/largest_trades.rb +1 -1
- data/lib/iex/endpoints/logo.rb +1 -1
- data/lib/iex/endpoints/news.rb +1 -1
- data/lib/iex/endpoints/ohlc.rb +2 -2
- data/lib/iex/endpoints/price.rb +1 -1
- data/lib/iex/endpoints/quote.rb +1 -1
- data/lib/iex/endpoints/ref_data.rb +22 -0
- data/lib/iex/endpoints/sectors.rb +1 -1
- data/lib/iex/endpoints/stock_market.rb +11 -0
- data/lib/iex/resources.rb +3 -0
- data/lib/iex/resources/chart.rb +9 -14
- data/lib/iex/resources/company.rb +1 -0
- data/lib/iex/resources/income.rb +36 -0
- data/lib/iex/resources/key_stats.rb +14 -2
- data/lib/iex/resources/quote.rb +15 -5
- data/lib/iex/resources/resource.rb +1 -1
- data/lib/iex/resources/symbol.rb +10 -0
- data/lib/iex/resources/symbols.rb +19 -0
- data/lib/iex/version.rb +1 -1
- data/spec/fixtures/iex/chart/1d.yml +440 -473
- data/spec/fixtures/iex/chart/20190306.yml +440 -473
- data/spec/fixtures/iex/chart/bad_option.yml +47 -81
- data/spec/fixtures/iex/chart/chartInterval.yml +89 -122
- data/spec/fixtures/iex/chart/dynamic/1m.yml +73 -107
- data/spec/fixtures/iex/chart/invalid.yml +47 -81
- data/spec/fixtures/iex/chart/msft.yml +74 -107
- data/spec/fixtures/iex/income/invalid.yml +49 -0
- data/spec/fixtures/iex/income/msft.yml +53 -0
- data/spec/fixtures/iex/income/nsrgy.yml +55 -0
- data/spec/fixtures/iex/key_stats/invalid.yml +7 -41
- data/spec/fixtures/iex/key_stats/msft.yml +11 -43
- data/spec/fixtures/iex/ref-data/isin.yml +57 -0
- data/spec/fixtures/iex/ref-data/isin_mapped.yml +57 -0
- data/spec/fixtures/iex/ref-data/symbols.yml +9002 -0
- data/spec/fixtures/iex/ref-data/wrong_isin_mapped.yml +57 -0
- data/spec/fixtures/iex/stock_market/list_mostactive.yml +76 -0
- data/spec/iex/client_spec.rb +6 -1
- data/spec/iex/endpoints/chart_spec.rb +7 -7
- data/spec/iex/endpoints/company_spec.rb +1 -0
- data/spec/iex/endpoints/income_spec.rb +68 -0
- data/spec/iex/endpoints/key_stats_spec.rb +42 -29
- data/spec/iex/endpoints/quote_spec.rb +2 -0
- data/spec/iex/endpoints/ref_data_spec.rb +66 -0
- data/spec/iex/endpoints/stock_market_spec.rb +14 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/support/vcr.rb +3 -0
- metadata +41 -13
data/spec/spec_helper.rb
CHANGED
data/spec/support/vcr.rb
CHANGED
@@ -6,4 +6,7 @@ VCR.configure do |config|
|
|
6
6
|
config.hook_into :webmock
|
7
7
|
# config.default_cassette_options = { record: :new_episodes }
|
8
8
|
config.configure_rspec_metadata!
|
9
|
+
|
10
|
+
config.filter_sensitive_data('test-iex-api-publishable-token') { ENV['IEX_API_PUBLISHABLE_TOKEN'] }
|
11
|
+
config.filter_sensitive_data('test-iex-api-secret-token') { ENV['IEX_API_SECRET_TOKEN'] }
|
9
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iex-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Doubrovkine
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.17'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.17'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.72.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.72.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: vcr
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,12 +136,13 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email: dblock@dblock.org
|
141
141
|
executables: []
|
142
142
|
extensions: []
|
143
143
|
extra_rdoc_files: []
|
144
144
|
files:
|
145
|
+
- ".github/FUNDING.yml"
|
145
146
|
- ".gitignore"
|
146
147
|
- ".rspec"
|
147
148
|
- ".rubocop.yml"
|
@@ -170,6 +171,7 @@ files:
|
|
170
171
|
- lib/iex/endpoints/crypto.rb
|
171
172
|
- lib/iex/endpoints/dividends.rb
|
172
173
|
- lib/iex/endpoints/earnings.rb
|
174
|
+
- lib/iex/endpoints/income.rb
|
173
175
|
- lib/iex/endpoints/key_stats.rb
|
174
176
|
- lib/iex/endpoints/largest_trades.rb
|
175
177
|
- lib/iex/endpoints/logo.rb
|
@@ -177,7 +179,9 @@ files:
|
|
177
179
|
- lib/iex/endpoints/ohlc.rb
|
178
180
|
- lib/iex/endpoints/price.rb
|
179
181
|
- lib/iex/endpoints/quote.rb
|
182
|
+
- lib/iex/endpoints/ref_data.rb
|
180
183
|
- lib/iex/endpoints/sectors.rb
|
184
|
+
- lib/iex/endpoints/stock_market.rb
|
181
185
|
- lib/iex/errors.rb
|
182
186
|
- lib/iex/errors/client_error.rb
|
183
187
|
- lib/iex/errors/permission_denied_error.rb
|
@@ -189,6 +193,7 @@ files:
|
|
189
193
|
- lib/iex/resources/crypto.rb
|
190
194
|
- lib/iex/resources/dividends.rb
|
191
195
|
- lib/iex/resources/earnings.rb
|
196
|
+
- lib/iex/resources/income.rb
|
192
197
|
- lib/iex/resources/key_stats.rb
|
193
198
|
- lib/iex/resources/largest_trades.rb
|
194
199
|
- lib/iex/resources/logo.rb
|
@@ -197,6 +202,8 @@ files:
|
|
197
202
|
- lib/iex/resources/quote.rb
|
198
203
|
- lib/iex/resources/resource.rb
|
199
204
|
- lib/iex/resources/sectors.rb
|
205
|
+
- lib/iex/resources/symbol.rb
|
206
|
+
- lib/iex/resources/symbols.rb
|
200
207
|
- lib/iex/version.rb
|
201
208
|
- spec/fixtures/iex/chart/1d.yml
|
202
209
|
- spec/fixtures/iex/chart/20190306.yml
|
@@ -216,6 +223,9 @@ files:
|
|
216
223
|
- spec/fixtures/iex/dividends/msft_invalid_range.yml
|
217
224
|
- spec/fixtures/iex/earnings/invalid.yml
|
218
225
|
- spec/fixtures/iex/earnings/msft.yml
|
226
|
+
- spec/fixtures/iex/income/invalid.yml
|
227
|
+
- spec/fixtures/iex/income/msft.yml
|
228
|
+
- spec/fixtures/iex/income/nsrgy.yml
|
219
229
|
- spec/fixtures/iex/key_stats/invalid.yml
|
220
230
|
- spec/fixtures/iex/key_stats/msft.yml
|
221
231
|
- spec/fixtures/iex/largest-trades/aapl.yml
|
@@ -230,8 +240,13 @@ files:
|
|
230
240
|
- spec/fixtures/iex/price/msft.yml
|
231
241
|
- spec/fixtures/iex/quote/invalid.yml
|
232
242
|
- spec/fixtures/iex/quote/msft.yml
|
243
|
+
- spec/fixtures/iex/ref-data/isin.yml
|
244
|
+
- spec/fixtures/iex/ref-data/isin_mapped.yml
|
245
|
+
- spec/fixtures/iex/ref-data/symbols.yml
|
246
|
+
- spec/fixtures/iex/ref-data/wrong_isin_mapped.yml
|
233
247
|
- spec/fixtures/iex/sectors/invalid.yml
|
234
248
|
- spec/fixtures/iex/sectors/sectors-performance.yml
|
249
|
+
- spec/fixtures/iex/stock_market/list_mostactive.yml
|
235
250
|
- spec/iex/client_spec.rb
|
236
251
|
- spec/iex/config_spec.rb
|
237
252
|
- spec/iex/endpoints/chart_spec.rb
|
@@ -239,6 +254,7 @@ files:
|
|
239
254
|
- spec/iex/endpoints/crypto_spec.rb
|
240
255
|
- spec/iex/endpoints/dividends_spec.rb
|
241
256
|
- spec/iex/endpoints/earnings_spec.rb
|
257
|
+
- spec/iex/endpoints/income_spec.rb
|
242
258
|
- spec/iex/endpoints/key_stats_spec.rb
|
243
259
|
- spec/iex/endpoints/largest_trades_spec.rb
|
244
260
|
- spec/iex/endpoints/logo_spec.rb
|
@@ -246,7 +262,9 @@ files:
|
|
246
262
|
- spec/iex/endpoints/ohlc_spec.rb
|
247
263
|
- spec/iex/endpoints/price_spec.rb
|
248
264
|
- spec/iex/endpoints/quote_spec.rb
|
265
|
+
- spec/iex/endpoints/ref_data_spec.rb
|
249
266
|
- spec/iex/endpoints/sectors_spec.rb
|
267
|
+
- spec/iex/endpoints/stock_market_spec.rb
|
250
268
|
- spec/iex/resources/resource_spec.rb
|
251
269
|
- spec/iex/version_spec.rb
|
252
270
|
- spec/spec_helper.rb
|
@@ -256,7 +274,7 @@ homepage: http://github.com/dblock/iex-ruby-client
|
|
256
274
|
licenses:
|
257
275
|
- MIT
|
258
276
|
metadata: {}
|
259
|
-
post_install_message:
|
277
|
+
post_install_message:
|
260
278
|
rdoc_options: []
|
261
279
|
require_paths:
|
262
280
|
- lib
|
@@ -264,16 +282,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
264
282
|
requirements:
|
265
283
|
- - ">="
|
266
284
|
- !ruby/object:Gem::Version
|
267
|
-
version:
|
285
|
+
version: 2.3.0
|
268
286
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
269
287
|
requirements:
|
270
288
|
- - ">="
|
271
289
|
- !ruby/object:Gem::Version
|
272
290
|
version: 1.3.6
|
273
291
|
requirements: []
|
274
|
-
|
275
|
-
|
276
|
-
signing_key:
|
292
|
+
rubygems_version: 3.1.3
|
293
|
+
signing_key:
|
277
294
|
specification_version: 4
|
278
295
|
summary: IEX Finance API Ruby client with support for retrieving stock quotes.
|
279
296
|
test_files:
|
@@ -295,6 +312,9 @@ test_files:
|
|
295
312
|
- spec/fixtures/iex/dividends/msft_invalid_range.yml
|
296
313
|
- spec/fixtures/iex/earnings/invalid.yml
|
297
314
|
- spec/fixtures/iex/earnings/msft.yml
|
315
|
+
- spec/fixtures/iex/income/invalid.yml
|
316
|
+
- spec/fixtures/iex/income/msft.yml
|
317
|
+
- spec/fixtures/iex/income/nsrgy.yml
|
298
318
|
- spec/fixtures/iex/key_stats/invalid.yml
|
299
319
|
- spec/fixtures/iex/key_stats/msft.yml
|
300
320
|
- spec/fixtures/iex/largest-trades/aapl.yml
|
@@ -309,8 +329,13 @@ test_files:
|
|
309
329
|
- spec/fixtures/iex/price/msft.yml
|
310
330
|
- spec/fixtures/iex/quote/invalid.yml
|
311
331
|
- spec/fixtures/iex/quote/msft.yml
|
332
|
+
- spec/fixtures/iex/ref-data/isin.yml
|
333
|
+
- spec/fixtures/iex/ref-data/isin_mapped.yml
|
334
|
+
- spec/fixtures/iex/ref-data/symbols.yml
|
335
|
+
- spec/fixtures/iex/ref-data/wrong_isin_mapped.yml
|
312
336
|
- spec/fixtures/iex/sectors/invalid.yml
|
313
337
|
- spec/fixtures/iex/sectors/sectors-performance.yml
|
338
|
+
- spec/fixtures/iex/stock_market/list_mostactive.yml
|
314
339
|
- spec/iex/client_spec.rb
|
315
340
|
- spec/iex/config_spec.rb
|
316
341
|
- spec/iex/endpoints/chart_spec.rb
|
@@ -318,6 +343,7 @@ test_files:
|
|
318
343
|
- spec/iex/endpoints/crypto_spec.rb
|
319
344
|
- spec/iex/endpoints/dividends_spec.rb
|
320
345
|
- spec/iex/endpoints/earnings_spec.rb
|
346
|
+
- spec/iex/endpoints/income_spec.rb
|
321
347
|
- spec/iex/endpoints/key_stats_spec.rb
|
322
348
|
- spec/iex/endpoints/largest_trades_spec.rb
|
323
349
|
- spec/iex/endpoints/logo_spec.rb
|
@@ -325,7 +351,9 @@ test_files:
|
|
325
351
|
- spec/iex/endpoints/ohlc_spec.rb
|
326
352
|
- spec/iex/endpoints/price_spec.rb
|
327
353
|
- spec/iex/endpoints/quote_spec.rb
|
354
|
+
- spec/iex/endpoints/ref_data_spec.rb
|
328
355
|
- spec/iex/endpoints/sectors_spec.rb
|
356
|
+
- spec/iex/endpoints/stock_market_spec.rb
|
329
357
|
- spec/iex/resources/resource_spec.rb
|
330
358
|
- spec/iex/version_spec.rb
|
331
359
|
- spec/spec_helper.rb
|