iex-ruby-client 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +15 -4
- data/CHANGELOG.md +7 -0
- data/README.md +98 -1
- data/iex-ruby-client.gemspec +1 -1
- data/lib/iex/api.rb +3 -0
- data/lib/iex/api/crypto.rb +13 -0
- data/lib/iex/api/dividends.rb +0 -1
- data/lib/iex/api/largest_trades.rb +13 -0
- data/lib/iex/api/sectors.rb +16 -0
- data/lib/iex/resources.rb +3 -0
- data/lib/iex/resources/crypto.rb +68 -0
- data/lib/iex/resources/largest_trades.rb +22 -0
- data/lib/iex/resources/sectors.rb +20 -0
- data/lib/iex/version.rb +1 -1
- data/spec/fixtures/iex/crypto.yml +101 -0
- data/spec/fixtures/iex/dividends/invalid.yml +6 -6
- data/spec/fixtures/iex/dividends/msft.yml +9 -9
- data/spec/fixtures/iex/dividends/msft_1y.yml +11 -9
- data/spec/fixtures/iex/dividends/msft_default_range.yml +8 -8
- data/spec/fixtures/iex/dividends/msft_invalid_range.yml +8 -10
- data/spec/fixtures/iex/largest-trades/aapl.yml +76 -0
- data/spec/fixtures/iex/largest-trades/invalid.yml +65 -0
- data/spec/fixtures/iex/sectors/invalid.yml +65 -0
- data/spec/fixtures/iex/sectors/sectors-performance.yml +72 -0
- data/spec/iex/resources/crypto_spec.rb +65 -0
- data/spec/iex/resources/dividends_spec.rb +2 -3
- data/spec/iex/resources/largest_trades_spec.rb +26 -0
- data/spec/iex/resources/sectors_spec.rb +28 -0
- metadata +28 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17fd934d31cffa99721a3046560f2e9d1fbec9ddc78161829c199c29fd3b807e
|
4
|
+
data.tar.gz: c12a34546c617ff6145f52632387a63d4dd4866dadafcf7cbf95c934863499a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7935962fa422e12cea770c3dff841a2b66c97f3dc1121a2e94e96160fc27449535c07bb9ed72247830324159f1dd3a3a22b210a6b2980c95b478df8401718386
|
7
|
+
data.tar.gz: 840148d3f1aa4bd174e737781f0a0e5063ec243541f82966eaddf95a653c0cf0964915447dcb115d598824fba5da3827486b513454a9c6ed47b58874e8fd6fda
|
data/.rubocop_todo.yml
CHANGED
@@ -1,17 +1,28 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2018-
|
3
|
+
# on 2018-10-19 21:17:47 -0400 using RuboCop version 0.51.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
9
|
+
# Offense count: 1
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
Layout/EmptyLines:
|
12
|
+
Exclude:
|
13
|
+
- 'lib/iex/resources/crypto.rb'
|
14
|
+
|
15
|
+
# Offense count: 2
|
16
|
+
Lint/AmbiguousOperator:
|
17
|
+
Exclude:
|
18
|
+
- 'spec/iex/resources/crypto_spec.rb'
|
19
|
+
|
20
|
+
# Offense count: 15
|
10
21
|
# Configuration parameters: CountComments, ExcludedMethods.
|
11
22
|
Metrics/BlockLength:
|
12
23
|
Max: 86
|
13
24
|
|
14
|
-
# Offense count:
|
25
|
+
# Offense count: 83
|
15
26
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
16
27
|
# URISchemes: http, https
|
17
28
|
Metrics/LineLength:
|
@@ -33,6 +44,6 @@ Style/DateTime:
|
|
33
44
|
- 'lib/iex/resources/news.rb'
|
34
45
|
- 'spec/iex/resources/news_spec.rb'
|
35
46
|
|
36
|
-
# Offense count:
|
47
|
+
# Offense count: 36
|
37
48
|
Style/Documentation:
|
38
49
|
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
### 0.4.4 (2018/12/27)
|
2
|
+
|
3
|
+
* [#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).
|
4
|
+
* [#37](https://github.com/dblock/iex-ruby-client/pull/37): Add `IEX::Resource::Crypto` - [@rodolfobandeira](https://github.com/rodolfobandeira).
|
5
|
+
* [#34](https://github.com/dblock/iex-ruby-client/pull/34): Add `IEX::Resource::LargestTrades` - [@gil27](https://github.com/gil27).
|
6
|
+
* [#32](https://github.com/dblock/iex-ruby-client/pull/32): Add `IEX::Resource::Sectors` - [@gil27](https://github.com/gil27).
|
7
|
+
|
1
8
|
### 0.4.3 (2018/08/18)
|
2
9
|
|
3
10
|
* [#27](https://github.com/dblock/iex-ruby-client/pull/27): Added `IEX::Resources::Earnings` - [@rodolfobandeira](https://github.com/rodolfobandeira).
|
data/README.md
CHANGED
@@ -23,6 +23,9 @@ A Ruby client for the [IEX Finance API](https://iextrading.com/developer).
|
|
23
23
|
- [Get Key Stats](#get-key-stats)
|
24
24
|
- [Get Dividends](#get-dividends)
|
25
25
|
- [Get Earnings](#get-earnings)
|
26
|
+
- [Get Sector Performance](#get-sector-performance)
|
27
|
+
- [Get Largest Trades](#get-largest-trades)
|
28
|
+
- [Get Cryptocurrencies](#get-cryptocurrencies)
|
26
29
|
- [Errors](#errors)
|
27
30
|
- [SymbolNotFound](#symbolnotfound)
|
28
31
|
- [ClientError](#clienterror)
|
@@ -54,7 +57,8 @@ Run `bundle install`.
|
|
54
57
|
- [Get Key Stats](#get-key-stats)
|
55
58
|
- [Get Dividends](#get-dividends)
|
56
59
|
- [Get Earnings](#get-earnings)
|
57
|
-
|
60
|
+
- [Get Sector Performance](#get-sector-performance)
|
61
|
+
- [Get Largest Trades](#get-Largest-trades)
|
58
62
|
|
59
63
|
## Usage
|
60
64
|
|
@@ -304,6 +308,99 @@ earnings.symbol_id # 4563
|
|
304
308
|
See [#earnings](https://iextrading.com/developer/docs/#earnings) for detailed documentation or [earnings.rb](lib/iex/resources/earnings.rb) for returned fields.
|
305
309
|
|
306
310
|
|
311
|
+
### Get Sector Performance
|
312
|
+
|
313
|
+
Fetches latest sector's performance.
|
314
|
+
|
315
|
+
```ruby
|
316
|
+
sectors = IEX::Resources::Sectors.get('MARKET')
|
317
|
+
|
318
|
+
sectors.type # sectors
|
319
|
+
sectors.name # Industrials
|
320
|
+
sectors.performance # 0.00711
|
321
|
+
sectors.last_updated # 1533672000437
|
322
|
+
```
|
323
|
+
See [#sector-performance](https://iextrading.com/developer/docs/#sector-performance) for detailed documentation or [sectors.rb](lib/iex/resources/sectors.rb) for returned fields.
|
324
|
+
|
325
|
+
### Get Largest Trades
|
326
|
+
|
327
|
+
Fetches largest trades in the day for a specific stock. Ordered by largest trade on the top.
|
328
|
+
|
329
|
+
```ruby
|
330
|
+
trades = IEX::Resources::LargestTrades.get('aapl')
|
331
|
+
|
332
|
+
trades.first.price # 186.39
|
333
|
+
trades.first.size # 10000 - refers to the number of shares negotiated in the day.
|
334
|
+
trades.first.time # 1527090690175
|
335
|
+
trades.first.time_label # 11:51:30
|
336
|
+
trades.first.venue # EDGX
|
337
|
+
trades.first.venue_name # Cboe EDGX
|
338
|
+
```
|
339
|
+
See [#largest-trades](https://iextrading.com/developer/docs/#largest-trades) for detailed documentation or [largest_trades.rb](lib/iex/resources/largest_trades.rb) for returned fields.
|
340
|
+
|
341
|
+
### Get Cryptocurrencies
|
342
|
+
|
343
|
+
Fetches a list of cryptocurrencies' latest quotes and information.
|
344
|
+
|
345
|
+
```
|
346
|
+
crypto = IEX::Resources::Crypto.get
|
347
|
+
|
348
|
+
crypto.first.ask_price # 6617.99
|
349
|
+
crypto.first.symbol # 'BTCUSDT'
|
350
|
+
crypto.first.company_name # 'Bitcoin USD'
|
351
|
+
crypto.first.primary_exchange # 'crypto'
|
352
|
+
crypto.first.sector # 'cryptocurrency'
|
353
|
+
crypto.first.calculation_price # 'realtime'
|
354
|
+
crypto.first.open # 6645.76
|
355
|
+
crypto.first.open_dollar # '$6,645'
|
356
|
+
crypto.first.open_time # 1_538_360_540_423
|
357
|
+
crypto.first.close # 6595.49934953
|
358
|
+
crypto.first.close_dollar # '$6,595'
|
359
|
+
crypto.first.close_time # 1_538_446_940_423
|
360
|
+
crypto.first.high # 6663.1
|
361
|
+
crypto.first.high_dollar # '$6,663'
|
362
|
+
crypto.first.low # 6510
|
363
|
+
crypto.first.low_dollar # '$6,510'
|
364
|
+
crypto.first.latest_price # 6618.7
|
365
|
+
crypto.first.latest_price_dollar # '$6,618'
|
366
|
+
crypto.first.latest_source # 'Real time price'
|
367
|
+
crypto.first.latest_time # '10:22:20 PM'
|
368
|
+
crypto.first.latest_update # 1_538_446_940_423
|
369
|
+
crypto.first.latest_volume # 20_027.36393
|
370
|
+
crypto.first.latest_volume_dollar # '$20,027'
|
371
|
+
crypto.first.iex_realtime_price # nil
|
372
|
+
crypto.first.iex_realtime_size # nil
|
373
|
+
crypto.first.iex_last_updated # nil
|
374
|
+
crypto.first.delayed_price # nil
|
375
|
+
crypto.first.delayed_price_time # nil
|
376
|
+
crypto.first.extended_change # nil
|
377
|
+
crypto.first.extended_change_percent # nil
|
378
|
+
crypto.first.extended_price_time # nil
|
379
|
+
crypto.first.previous_close # 6645.76
|
380
|
+
crypto.first.previous_close_dollar # '$6,645'
|
381
|
+
crypto.first.change # -27.06
|
382
|
+
crypto.first.change_percent # -0.00407
|
383
|
+
crypto.first.change_percent_s # '-0.41%'
|
384
|
+
crypto.first.iex_market_percent # nil
|
385
|
+
crypto.first.iex_volume # nil
|
386
|
+
crypto.first.avg_total_volume # nil
|
387
|
+
crypto.first.iex_bid_price # nil
|
388
|
+
crypto.first.iex_bid_size # nil
|
389
|
+
crypto.first.iex_ask_price # nil
|
390
|
+
crypto.first.iex_ask_size # nil
|
391
|
+
crypto.first.market_cap # nil
|
392
|
+
crypto.first.pe_ratio # nil
|
393
|
+
crypto.first.week52_high # nil
|
394
|
+
crypto.first.week52_high_dollar # nil
|
395
|
+
crypto.first.week52_low # nil
|
396
|
+
crypto.first.week52_low_dollar # nil
|
397
|
+
crypto.first.ytd_change # nil
|
398
|
+
crypto.first.bid_price # 6613.16
|
399
|
+
crypto.first.bid_size # 2.166213
|
400
|
+
crypto.first.ask_price # 6617.99
|
401
|
+
crypto.first.ask_size # 0.264944
|
402
|
+
```
|
403
|
+
|
307
404
|
## Errors
|
308
405
|
|
309
406
|
### SymbolNotFound
|
data/iex-ruby-client.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.add_dependency 'faraday', '>= 0.9'
|
19
19
|
s.add_dependency 'faraday_middleware'
|
20
20
|
s.add_dependency 'hashie'
|
21
|
-
s.add_dependency 'money_helper'
|
21
|
+
s.add_dependency 'money_helper'
|
22
22
|
s.add_development_dependency 'rake', '~> 10'
|
23
23
|
s.add_development_dependency 'rspec'
|
24
24
|
s.add_development_dependency 'rubocop', '0.51.0'
|
data/lib/iex/api.rb
CHANGED
@@ -21,9 +21,12 @@ require_relative 'api/chart'
|
|
21
21
|
require_relative 'api/company'
|
22
22
|
require_relative 'api/dividends'
|
23
23
|
require_relative 'api/earnings'
|
24
|
+
require_relative 'api/largest_trades'
|
24
25
|
require_relative 'api/logo'
|
25
26
|
require_relative 'api/key_stats'
|
26
27
|
require_relative 'api/news'
|
27
28
|
require_relative 'api/ohlc'
|
28
29
|
require_relative 'api/price'
|
29
30
|
require_relative 'api/quote'
|
31
|
+
require_relative 'api/sectors'
|
32
|
+
require_relative 'api/crypto'
|
data/lib/iex/api/dividends.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
module IEX
|
2
|
+
module Api
|
3
|
+
module Sectors
|
4
|
+
def self.get(symbol)
|
5
|
+
connection(symbol).get.body
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.connection(symbol)
|
9
|
+
IEX::Api.default_connection [
|
10
|
+
symbol,
|
11
|
+
'sector-performance'
|
12
|
+
].compact.join('/')
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/iex/resources.rb
CHANGED
@@ -5,8 +5,11 @@ require_relative 'resources/company'
|
|
5
5
|
require_relative 'resources/dividends'
|
6
6
|
require_relative 'resources/earnings'
|
7
7
|
require_relative 'resources/key_stats'
|
8
|
+
require_relative 'resources/largest_trades'
|
8
9
|
require_relative 'resources/logo'
|
9
10
|
require_relative 'resources/news'
|
10
11
|
require_relative 'resources/ohlc'
|
11
12
|
require_relative 'resources/price'
|
12
13
|
require_relative 'resources/quote'
|
14
|
+
require_relative 'resources/sectors'
|
15
|
+
require_relative 'resources/crypto'
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
|
3
|
+
module IEX
|
4
|
+
module Resources
|
5
|
+
class Crypto < Resource
|
6
|
+
property 'symbol'
|
7
|
+
property 'company_name', from: 'companyName'
|
8
|
+
property 'primary_exchange', from: 'primaryExchange'
|
9
|
+
property 'sector'
|
10
|
+
property 'calculation_price', from: 'calculationPrice'
|
11
|
+
property 'open'
|
12
|
+
property 'open_dollar', from: 'open', with: ->(v) { Base.to_dollar(amount: v) }
|
13
|
+
property 'open_time', from: 'openTime'
|
14
|
+
property 'close'
|
15
|
+
property 'close_dollar', from: 'close', with: ->(v) { Base.to_dollar(amount: v) }
|
16
|
+
property 'close_time', from: 'closeTime'
|
17
|
+
property 'high'
|
18
|
+
property 'high_dollar', from: 'high', with: ->(v) { Base.to_dollar(amount: v) }
|
19
|
+
property 'low'
|
20
|
+
property 'low_dollar', from: 'low', with: ->(v) { Base.to_dollar(amount: v) }
|
21
|
+
property 'latest_price', from: 'latestPrice'
|
22
|
+
property 'latest_price_dollar', from: 'latestPrice', with: ->(v) { Base.to_dollar(amount: v) }
|
23
|
+
property 'latest_source', from: 'latestSource'
|
24
|
+
property 'latest_time', from: 'latestTime'
|
25
|
+
property 'latest_update', from: 'latestUpdate'
|
26
|
+
property 'latest_volume', from: 'latestVolume'
|
27
|
+
property 'latest_volume_dollar', from: 'latestVolume', with: ->(v) { Base.to_dollar(amount: v) }
|
28
|
+
property 'iex_realtime_price', from: 'iexRealtimePrice'
|
29
|
+
property 'iex_realtime_size', from: 'iexRealtimeSize'
|
30
|
+
property 'iex_last_updated', from: 'iexLastUpdated'
|
31
|
+
property 'delayed_price', from: 'delayedPrice'
|
32
|
+
property 'delayed_price_time', from: 'delayedPriceTime'
|
33
|
+
property 'extended_price', from: 'extendedPrice'
|
34
|
+
property 'extended_change', from: 'extendedChange'
|
35
|
+
property 'extended_change_percent', from: 'extendedChangePercent'
|
36
|
+
property 'extended_price_time', from: 'extendedPriceTime'
|
37
|
+
property 'previous_close', from: 'previousClose'
|
38
|
+
property 'previous_close_dollar', from: 'previousClose', with: ->(v) { Base.to_dollar(amount: v) }
|
39
|
+
property 'change'
|
40
|
+
property 'change_percent', from: 'changePercent'
|
41
|
+
property 'change_percent_s', from: 'changePercent', with: ->(v) { Base.float_to_percentage(v) }
|
42
|
+
property 'iex_market_percent', from: 'iexMarketPercent'
|
43
|
+
property 'iex_volume', from: 'iexVolume'
|
44
|
+
property 'avg_total_volume', from: 'avgTotalVolume'
|
45
|
+
property 'iex_bid_price', from: 'iexBitPrice'
|
46
|
+
property 'iex_bid_size', from: 'iexBidPrice'
|
47
|
+
property 'iex_ask_price', from: 'iexAskPrice'
|
48
|
+
property 'iex_ask_size', from: 'iexAskSize'
|
49
|
+
property 'market_cap', from: 'marketCap'
|
50
|
+
property 'pe_ratio', from: 'peRatio'
|
51
|
+
property 'week52_high', from: 'week52High'
|
52
|
+
property 'week52_high_dollar', from: 'week52High', with: ->(v) { Base.to_dollar(amount: v) }
|
53
|
+
property 'week52_low', from: 'week52low'
|
54
|
+
property 'week52_low_dollar', from: 'week52low', with: ->(v) { Base.to_dollar(amount: v) }
|
55
|
+
property 'ytd_change', from: 'ytdChange'
|
56
|
+
property 'bid_price', from: 'bidPrice'
|
57
|
+
property 'bid_size', from: 'bidSize'
|
58
|
+
property 'ask_price', from: 'askPrice'
|
59
|
+
property 'ask_size', from: 'askSize'
|
60
|
+
|
61
|
+
def self.get
|
62
|
+
IEX::Api::Crypto.get.map do |data|
|
63
|
+
new data
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
|
3
|
+
module IEX
|
4
|
+
module Resources
|
5
|
+
class LargestTrades < Resource
|
6
|
+
property 'price'
|
7
|
+
property 'size'
|
8
|
+
property 'time'
|
9
|
+
property 'time_label', from: 'timeLabel'
|
10
|
+
property 'venue'
|
11
|
+
property 'venue_name', from: 'venueName'
|
12
|
+
|
13
|
+
def self.get(stock_symbol)
|
14
|
+
Base.symbol(stock_symbol) do
|
15
|
+
IEX::Api::LargestTrades.get(stock_symbol).map do |data|
|
16
|
+
new data
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
|
3
|
+
module IEX
|
4
|
+
module Resources
|
5
|
+
class Sectors < Resource
|
6
|
+
property 'type'
|
7
|
+
property 'name'
|
8
|
+
property 'performance'
|
9
|
+
property 'last_updated', from: 'lastUpdated'
|
10
|
+
|
11
|
+
def self.get(stock_symbol)
|
12
|
+
Base.symbol(stock_symbol) do
|
13
|
+
IEX::Api::Sectors.get(stock_symbol).map do |data|
|
14
|
+
new data
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/iex/version.rb
CHANGED
@@ -0,0 +1,101 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.iextrading.com/1.0/stock/market/crypto
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.15.3
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Tue, 02 Oct 2018 02:22:21 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- ctoken=fc7bf66e5ffb490da87f4e2d35d36fb4; Domain=.iextrading.com; Path=/; Expires=Tue,
|
33
|
+
02 Oct 2018 14:22:21 GMT; Secure
|
34
|
+
Content-Security-Policy:
|
35
|
+
- default-src 'self'; child-src 'none'; object-src 'none'; style-src 'self'
|
36
|
+
'unsafe-inline'; font-src data:; frame-src 'self'; connect-src 'self' https://auth.iextrading.com
|
37
|
+
https://api.iextrading.com https://api.iextrading.com wss://iextrading.com
|
38
|
+
wss://tops.iextrading.com wss://api.iextrading.com wss://iextrading.com; script-src
|
39
|
+
'self' 'unsafe-inline' 'unsafe-eval';
|
40
|
+
X-Content-Security-Policy:
|
41
|
+
- default-src 'self'; child-src 'none'; object-src 'none'; style-src 'self'
|
42
|
+
'unsafe-inline'; font-src data:; frame-src 'self'; connect-src 'self' https://auth.iextrading.com
|
43
|
+
https://api.iextrading.com https://api.iextrading.com wss://iextrading.com
|
44
|
+
wss://tops.iextrading.com wss://api.iextrading.com wss://iextrading.com; script-src
|
45
|
+
'self' 'unsafe-inline' 'unsafe-eval';
|
46
|
+
Frame-Options:
|
47
|
+
- SAMEORIGIN
|
48
|
+
X-Frame-Options:
|
49
|
+
- SAMEORIGIN
|
50
|
+
X-Content-Type-Options:
|
51
|
+
- nosniff
|
52
|
+
Strict-Transport-Security:
|
53
|
+
- max-age=15768000
|
54
|
+
Access-Control-Allow-Origin:
|
55
|
+
- "*"
|
56
|
+
Access-Control-Allow-Credentials:
|
57
|
+
- 'true'
|
58
|
+
Access-Control-Allow-Methods:
|
59
|
+
- GET, OPTIONS
|
60
|
+
Access-Control-Allow-Headers:
|
61
|
+
- Origin, X-Requested-With, Content-Type, Accept
|
62
|
+
body:
|
63
|
+
encoding: ASCII-8BIT
|
64
|
+
string: '[{"symbol":"BTCUSDT","companyName":"Bitcoin USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":6645.76,"openTime":1538360540423,"close":6595.49934953,"closeTime":1538446940423,"high":6663.1,"low":6510,"latestPrice":6618.7,"latestSource":"Real
|
65
|
+
time price","latestTime":"10:22:20 PM","latestUpdate":1538446940423,"latestVolume":20027.36393,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":6645.76,"change":-27.06,"changePercent":-0.00407,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":6613.16,"bidSize":2.166213,"askPrice":6617.99,"askSize":0.264944},{"symbol":"EOSUSDT","companyName":"EOS
|
66
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":5.7533,"openTime":1538360540309,"close":5.70433093,"closeTime":1538446940309,"high":5.85,"low":5.5155,"latestPrice":5.7458,"latestSource":"Real
|
67
|
+
time price","latestTime":"10:22:20 PM","latestUpdate":1538446940309,"latestVolume":9532237.8,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":5.7561,"change":-0.0075,"changePercent":-0.0013,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":5.7427,"bidSize":3.47,"askPrice":5.7497,"askSize":10.41},{"symbol":"ETHUSDT","companyName":"Ethereum
|
68
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":234.19,"openTime":1538360540436,"close":230.01696503,"closeTime":1538446940436,"high":234.49,"low":224.46,"latestPrice":230.73,"latestSource":"Real
|
69
|
+
time price","latestTime":"10:22:20 PM","latestUpdate":1538446940436,"latestVolume":346689.83604,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":234.36,"change":-3.46,"changePercent":-0.01477,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":230.73,"bidSize":0.6498,"askPrice":230.84,"askSize":20},{"symbol":"BNBUSDT","companyName":"Binance
|
70
|
+
Coin USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":9.9994,"openTime":1538360538358,"close":9.95253395,"closeTime":1538446938358,"high":10.0329,"low":9.85,"latestPrice":9.9866,"latestSource":"Real
|
71
|
+
time price","latestTime":"10:22:18 PM","latestUpdate":1538446938358,"latestVolume":923897.92,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":9.9998,"change":-0.0128,"changePercent":-0.00128,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":9.9607,"bidSize":21.02,"askPrice":9.9835,"askSize":2.5},{"symbol":"ONTUSDT","companyName":"Ontology
|
72
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":2.008,"openTime":1538360536750,"close":1.98192884,"closeTime":1538446936750,"high":2.027,"low":1.944,"latestPrice":1.997,"latestSource":"Real
|
73
|
+
time price","latestTime":"10:22:16 PM","latestUpdate":1538446936750,"latestVolume":1686521.618,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":2.009,"change":-0.011,"changePercent":-0.0054800000000000005,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":1.993,"bidSize":45.978,"askPrice":1.997,"askSize":501.748},{"symbol":"BCCUSDT","companyName":"Bitcoin
|
74
|
+
Cash USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":534.18,"openTime":1538360540109,"close":533.74758813,"closeTime":1538446940109,"high":543,"low":520,"latestPrice":539.22,"latestSource":"Real
|
75
|
+
time price","latestTime":"10:22:20 PM","latestUpdate":1538446940109,"latestVolume":39343.33172,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":534.29,"change":5.04,"changePercent":0.009439999999999999,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":538.92,"bidSize":2.19032,"askPrice":539.54,"askSize":0.37091},{"symbol":"ADAUSDT","companyName":"Cardano
|
76
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":0.08569,"openTime":1538360540360,"close":0.08429287,"closeTime":1538446940360,"high":0.08575,"low":0.08203,"latestPrice":0.08424,"latestSource":"Real
|
77
|
+
time price","latestTime":"10:22:20 PM","latestUpdate":1538446940360,"latestVolume":132217812.3,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":0.08569,"change":-0.00145,"changePercent":-0.01692,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":0.08418,"bidSize":2726.7,"askPrice":0.08426,"askSize":250.1},{"symbol":"XRPUSDT","companyName":"Ripple
|
78
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":0.59365,"openTime":1538360540262,"close":0.56958488,"closeTime":1538446940262,"high":0.6,"low":0.532,"latestPrice":0.57401,"latestSource":"Real
|
79
|
+
time price","latestTime":"10:22:20 PM","latestUpdate":1538446940262,"latestVolume":260432857.5,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":0.59365,"change":-0.01964,"changePercent":-0.03308,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":0.57401,"bidSize":99973.6,"askPrice":0.57442,"askSize":12219},{"symbol":"TUSDUSDT","companyName":"TrueUSD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":1.0048,"openTime":1538360538332,"close":1.00553888,"closeTime":1538446938332,"high":1.0122,"low":1.0026,"latestPrice":1.0055,"latestSource":"Real
|
80
|
+
time price","latestTime":"10:22:18 PM","latestUpdate":1538446938332,"latestVolume":8097983.67,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":1.0049,"change":0.0007,"changePercent":0.0007000000000000001,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":1.0047,"bidSize":2268.09,"askPrice":1.0056,"askSize":5444.01},{"symbol":"TRXUSDT","companyName":"TRON
|
81
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":0.02233,"openTime":1538360540281,"close":0.0220567,"closeTime":1538446940281,"high":0.02236,"low":0.02155,"latestPrice":0.02218,"latestSource":"Real
|
82
|
+
time price","latestTime":"10:22:20 PM","latestUpdate":1538446940281,"latestVolume":585607984.5,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":0.02231,"change":-0.00015,"changePercent":-0.00672,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":0.02217,"bidSize":19688,"askPrice":0.02219,"askSize":10000},{"symbol":"LTCUSDT","companyName":"Litecoin
|
83
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":61.71,"openTime":1538360537821,"close":60.54623046,"closeTime":1538446937821,"high":62,"low":59.51,"latestPrice":60.58,"latestSource":"Real
|
84
|
+
time price","latestTime":"10:22:17 PM","latestUpdate":1538446937821,"latestVolume":177534.30977,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":61.72,"change":-1.13,"changePercent":-0.01831,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":60.55,"bidSize":0.32992,"askPrice":60.59,"askSize":0.32023},{"symbol":"ETCUSDT","companyName":"Ethereum
|
85
|
+
Classic USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":11.3415,"openTime":1538360534873,"close":11.26541056,"closeTime":1538446934873,"high":11.3892,"low":11.0502,"latestPrice":11.2747,"latestSource":"Real
|
86
|
+
time price","latestTime":"10:22:14 PM","latestUpdate":1538446934873,"latestVolume":838869.15,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":11.3208,"change":-0.0668,"changePercent":-0.005889999999999999,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":11.2746,"bidSize":1.77,"askPrice":11.2848,"askSize":25.71},{"symbol":"IOTAUSDT","companyName":"MIOTA
|
87
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":0.5766,"openTime":1538360540320,"close":0.56461739,"closeTime":1538446940320,"high":0.58,"low":0.542,"latestPrice":0.5641,"latestSource":"Real
|
88
|
+
time price","latestTime":"10:22:20 PM","latestUpdate":1538446940320,"latestVolume":11153714.63,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":0.5777,"change":-0.0125,"changePercent":-0.02168,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":0.5641,"bidSize":549.85,"askPrice":0.5654,"askSize":0.43},{"symbol":"ICXUSDT","companyName":"ICON
|
89
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":0.6589,"openTime":1538360538452,"close":0.66885327,"closeTime":1538446938452,"high":0.6887,"low":0.6526,"latestPrice":0.6755,"latestSource":"Real
|
90
|
+
time price","latestTime":"10:22:18 PM","latestUpdate":1538446938452,"latestVolume":8199018.18,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":0.6589,"change":0.0166,"changePercent":0.02519,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":0.6743,"bidSize":156.9,"askPrice":0.6756,"askSize":34.25},{"symbol":"NEOUSDT","companyName":"NEO
|
91
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":19.045,"openTime":1538360540352,"close":18.72519397,"closeTime":1538446940352,"high":19.158,"low":18.23,"latestPrice":18.709,"latestSource":"Real
|
92
|
+
time price","latestTime":"10:22:20 PM","latestUpdate":1538446940352,"latestVolume":554115.864,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":19.018,"change":-0.336,"changePercent":-0.01764,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":18.699,"bidSize":1.066,"askPrice":18.712,"askSize":7.62},{"symbol":"VENUSDT","companyName":"VeChain
|
93
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":1.8132,"openTime":1532286918800,"close":1.8117292,"closeTime":1532373318800,"high":1.862,"low":1.7676,"latestPrice":1.8319,"latestSource":"Real
|
94
|
+
time price","latestTime":"3:15:18 PM","latestUpdate":1532373318800,"latestVolume":1236219.26,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":1.8108,"change":0.0187,"changePercent":0.01031,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":null,"bidSize":null,"askPrice":null,"askSize":null},{"symbol":"XLMUSDT","companyName":"Stellar
|
95
|
+
Lumens USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":0.26152,"openTime":1538360541234,"close":0.2595038,"closeTime":1538446941234,"high":0.26473,"low":0.2512,"latestPrice":0.25979,"latestSource":"Real
|
96
|
+
time price","latestTime":"10:22:21 PM","latestUpdate":1538446941234,"latestVolume":41122879.3,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":0.26152,"change":-0.00173,"changePercent":-0.00662,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":0.25958,"bidSize":42.3,"askPrice":0.25982,"askSize":3515},{"symbol":"QTUMUSDT","companyName":"Qtum
|
97
|
+
USD","primaryExchange":"crypto","sector":"cryptocurrency","calculationPrice":"realtime","open":3.899,"openTime":1538360541249,"close":3.83398024,"closeTime":1538446941249,"high":3.911,"low":3.73,"latestPrice":3.895,"latestSource":"Real
|
98
|
+
time price","latestTime":"10:22:21 PM","latestUpdate":1538446941249,"latestVolume":179108.941,"iexRealtimePrice":null,"iexRealtimeSize":null,"iexLastUpdated":null,"delayedPrice":null,"delayedPriceTime":null,"extendedPrice":null,"extendedChange":null,"extendedChangePercent":null,"extendedPriceTime":null,"previousClose":3.891,"change":-0.004,"changePercent":-0.0010299999999999999,"iexMarketPercent":null,"iexVolume":null,"avgTotalVolume":null,"iexBidPrice":null,"iexBidSize":null,"iexAskPrice":null,"iexAskSize":null,"marketCap":null,"peRatio":null,"week52High":null,"week52Low":null,"ytdChange":null,"bidPrice":3.884,"bidSize":107.05,"askPrice":3.897,"askSize":42.55}]'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Tue, 02 Oct 2018 02:22:21 GMT
|
101
|
+
recorded_with: VCR 4.0.0
|