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
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.iextrading.com/1.0/stock/INVALID/dividends/
|
5
|
+
uri: https://api.iextrading.com/1.0/stock/INVALID/dividends/INVALID
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.15.
|
11
|
+
- Faraday v0.15.3
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 08 Nov 2018 15:42:18 GMT
|
25
25
|
Content-Type:
|
26
26
|
- text/html; charset=utf-8
|
27
27
|
Transfer-Encoding:
|
@@ -29,8 +29,8 @@ http_interactions:
|
|
29
29
|
Connection:
|
30
30
|
- keep-alive
|
31
31
|
Set-Cookie:
|
32
|
-
- ctoken=
|
33
|
-
|
32
|
+
- ctoken=8253e41ad52741a9b52de8e3b3741da1; Domain=.iextrading.com; Path=/; Expires=Fri,
|
33
|
+
09 Nov 2018 03:42:18 GMT; Secure
|
34
34
|
Content-Security-Policy:
|
35
35
|
- default-src 'self'; child-src 'none'; object-src 'none'; style-src 'self'
|
36
36
|
'unsafe-inline'; font-src data:; frame-src 'self'; connect-src 'self' https://auth.iextrading.com
|
@@ -61,5 +61,5 @@ http_interactions:
|
|
61
61
|
encoding: ASCII-8BIT
|
62
62
|
string: Unknown symbol
|
63
63
|
http_version:
|
64
|
-
recorded_at:
|
64
|
+
recorded_at: Thu, 08 Nov 2018 15:42:18 GMT
|
65
65
|
recorded_with: VCR 4.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.iextrading.com/1.0/stock/MSFT/dividends/6m
|
5
|
+
uri: https://api.iextrading.com/1.0/stock/MSFT/dividends/6m
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.15.
|
11
|
+
- Faraday v0.15.3
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -21,16 +21,16 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 08 Nov 2018 15:42:15 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
|
-
|
28
|
-
-
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
29
|
Connection:
|
30
30
|
- keep-alive
|
31
31
|
Set-Cookie:
|
32
|
-
- ctoken=
|
33
|
-
|
32
|
+
- ctoken=a960d585020d48c8a0a44ab8a7d3d5c4; Domain=.iextrading.com; Path=/; Expires=Fri,
|
33
|
+
09 Nov 2018 03:42:15 GMT; Secure
|
34
34
|
Content-Security-Policy:
|
35
35
|
- default-src 'self'; child-src 'none'; object-src 'none'; style-src 'self'
|
36
36
|
'unsafe-inline'; font-src data:; frame-src 'self'; connect-src 'self' https://auth.iextrading.com
|
@@ -60,10 +60,10 @@ http_interactions:
|
|
60
60
|
Access-Control-Allow-Headers:
|
61
61
|
- Origin, X-Requested-With, Content-Type, Accept
|
62
62
|
body:
|
63
|
-
encoding:
|
63
|
+
encoding: ASCII-8BIT
|
64
64
|
string: '[{"exDate":"2018-02-14","paymentDate":"2018-03-08","recordDate":"2018-02-15","declaredDate":"2017-11-29","amount":0.42,"flag":"","type":"Dividend
|
65
65
|
income","qualified":"Q","indicated":""},{"exDate":"2017-11-15","paymentDate":"2017-12-14","recordDate":"2017-11-16","declaredDate":"2017-09-19","amount":0.42,"flag":"","type":"Dividend
|
66
66
|
income","qualified":"Q","indicated":""}]'
|
67
67
|
http_version:
|
68
|
-
recorded_at:
|
68
|
+
recorded_at: Thu, 08 Nov 2018 15:42:15 GMT
|
69
69
|
recorded_with: VCR 4.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.iextrading.com/1.0/stock/MSFT/dividends/
|
5
|
+
uri: https://api.iextrading.com/1.0/stock/MSFT/dividends/1y
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.15.
|
11
|
+
- Faraday v0.15.3
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -21,16 +21,16 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 08 Nov 2018 15:42:17 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
|
-
|
28
|
-
-
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
29
|
Connection:
|
30
30
|
- keep-alive
|
31
31
|
Set-Cookie:
|
32
|
-
- ctoken=
|
33
|
-
|
32
|
+
- ctoken=5f937f0a76f04d66b493857b554a86c9; Domain=.iextrading.com; Path=/; Expires=Fri,
|
33
|
+
09 Nov 2018 03:42:17 GMT; Secure
|
34
34
|
Content-Security-Policy:
|
35
35
|
- default-src 'self'; child-src 'none'; object-src 'none'; style-src 'self'
|
36
36
|
'unsafe-inline'; font-src data:; frame-src 'self'; connect-src 'self' https://auth.iextrading.com
|
@@ -60,10 +60,12 @@ http_interactions:
|
|
60
60
|
Access-Control-Allow-Headers:
|
61
61
|
- Origin, X-Requested-With, Content-Type, Accept
|
62
62
|
body:
|
63
|
-
encoding:
|
63
|
+
encoding: ASCII-8BIT
|
64
64
|
string: '[{"exDate":"2018-02-14","paymentDate":"2018-03-08","recordDate":"2018-02-15","declaredDate":"2017-11-29","amount":0.42,"flag":"","type":"Dividend
|
65
65
|
income","qualified":"Q","indicated":""},{"exDate":"2017-11-15","paymentDate":"2017-12-14","recordDate":"2017-11-16","declaredDate":"2017-09-19","amount":0.42,"flag":"","type":"Dividend
|
66
|
+
income","qualified":"Q","indicated":""},{"exDate":"2017-08-15","paymentDate":"2017-09-14","recordDate":"2017-08-17","declaredDate":"2017-06-13","amount":0.39,"flag":"","type":"Dividend
|
67
|
+
income","qualified":"Q","indicated":""},{"exDate":"2017-05-16","paymentDate":"2017-06-08","recordDate":"2017-05-18","declaredDate":"2017-03-14","amount":0.39,"flag":"","type":"Dividend
|
66
68
|
income","qualified":"Q","indicated":""}]'
|
67
69
|
http_version:
|
68
|
-
recorded_at:
|
70
|
+
recorded_at: Thu, 08 Nov 2018 15:42:17 GMT
|
69
71
|
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.15.
|
11
|
+
- Faraday v0.15.3
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -21,16 +21,16 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 15 Nov 2018 07:32:08 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
|
-
|
28
|
-
-
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
29
|
Connection:
|
30
30
|
- keep-alive
|
31
31
|
Set-Cookie:
|
32
|
-
- ctoken=
|
33
|
-
|
32
|
+
- ctoken=3593cacf28944137a79f569b94101526; Domain=.iextrading.com; Path=/; Expires=Thu,
|
33
|
+
15 Nov 2018 19:32:08 GMT; Secure
|
34
34
|
Content-Security-Policy:
|
35
35
|
- default-src 'self'; child-src 'none'; object-src 'none'; style-src 'self'
|
36
36
|
'unsafe-inline'; font-src data:; frame-src 'self'; connect-src 'self' https://auth.iextrading.com
|
@@ -60,9 +60,9 @@ http_interactions:
|
|
60
60
|
Access-Control-Allow-Headers:
|
61
61
|
- Origin, X-Requested-With, Content-Type, Accept
|
62
62
|
body:
|
63
|
-
encoding:
|
63
|
+
encoding: ASCII-8BIT
|
64
64
|
string: '[{"exDate":"2018-02-14","paymentDate":"2018-03-08","recordDate":"2018-02-15","declaredDate":"2017-11-29","amount":0.42,"flag":"","type":"Dividend
|
65
65
|
income","qualified":"Q","indicated":""}]'
|
66
66
|
http_version:
|
67
|
-
recorded_at:
|
67
|
+
recorded_at: Thu, 15 Nov 2018 07:32:08 GMT
|
68
68
|
recorded_with: VCR 4.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.iextrading.com/1.0/stock/MSFT/dividends/
|
5
|
+
uri: https://api.iextrading.com/1.0/stock/MSFT/dividends/INVALID
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.15.
|
11
|
+
- Faraday v0.15.3
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -21,16 +21,16 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 08 Nov 2018 15:42:17 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
27
|
Content-Length:
|
28
|
-
- '
|
28
|
+
- '2'
|
29
29
|
Connection:
|
30
30
|
- keep-alive
|
31
31
|
Set-Cookie:
|
32
|
-
- ctoken=
|
33
|
-
|
32
|
+
- ctoken=4c5cef42b56445a0b723b05c4fee4cd3; Domain=.iextrading.com; Path=/; Expires=Fri,
|
33
|
+
09 Nov 2018 03:42:17 GMT; Secure
|
34
34
|
Content-Security-Policy:
|
35
35
|
- default-src 'self'; child-src 'none'; object-src 'none'; style-src 'self'
|
36
36
|
'unsafe-inline'; font-src data:; frame-src 'self'; connect-src 'self' https://auth.iextrading.com
|
@@ -61,9 +61,7 @@ http_interactions:
|
|
61
61
|
- Origin, X-Requested-With, Content-Type, Accept
|
62
62
|
body:
|
63
63
|
encoding: UTF-8
|
64
|
-
string:
|
65
|
-
income","qualified":"Q","indicated":""},{"exDate":"2017-11-15","paymentDate":"2017-12-14","recordDate":"2017-11-16","declaredDate":"2017-09-19","amount":0.42,"flag":"","type":"Dividend
|
66
|
-
income","qualified":"Q","indicated":""}]'
|
64
|
+
string: "[]"
|
67
65
|
http_version:
|
68
|
-
recorded_at:
|
66
|
+
recorded_at: Thu, 08 Nov 2018 15:42:17 GMT
|
69
67
|
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,76 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.iextrading.com/1.0/stock/aapl/largest-trades
|
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, 16 Oct 2018 15:01:59 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=51f305337e614587a6da212572ca14f5; Domain=.iextrading.com; Path=/; Expires=Wed,
|
33
|
+
17 Oct 2018 03:01:59 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: '[{"price":217.76,"size":9000,"time":1539699300665,"timeLabel":"10:15:00","venue":"None","venueName":"Off
|
65
|
+
Exchange"},{"price":217.36,"size":8171,"time":1539699439595,"timeLabel":"10:17:19","venue":"XNGS","venueName":"Nasdaq"},{"price":218.671,"size":7444,"time":1539697175918,"timeLabel":"09:39:35","venue":"None","venueName":"Off
|
66
|
+
Exchange"},{"price":218.09,"size":7220,"time":1539698909729,"timeLabel":"10:08:29","venue":"None","venueName":"Off
|
67
|
+
Exchange"},{"price":217.81,"size":6300,"time":1539699334482,"timeLabel":"10:15:34","venue":"None","venueName":"Off
|
68
|
+
Exchange"},{"price":218.7,"size":6000,"time":1539696843070,"timeLabel":"09:34:03","venue":"None","venueName":"Off
|
69
|
+
Exchange"},{"price":218.258,"size":6000,"time":1539696980111,"timeLabel":"09:36:20","venue":"None","venueName":"Off
|
70
|
+
Exchange"},{"price":218.62,"size":6000,"time":1539697154187,"timeLabel":"09:39:14","venue":"None","venueName":"Off
|
71
|
+
Exchange"},{"price":216.963,"size":6000,"time":1539700749730,"timeLabel":"10:39:09","venue":"None","venueName":"Off
|
72
|
+
Exchange"},{"price":216.87,"size":5986,"time":1539700719236,"timeLabel":"10:38:39","venue":"None","venueName":"Off
|
73
|
+
Exchange"}]'
|
74
|
+
http_version:
|
75
|
+
recorded_at: Tue, 16 Oct 2018 15:01:59 GMT
|
76
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,65 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.iextrading.com/1.0/stock/INVALID/largest-trades
|
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: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Tue, 16 Oct 2018 15:01:59 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- ctoken=9681561580e34e8aa82578eb2b12405b; Domain=.iextrading.com; Path=/; Expires=Wed,
|
33
|
+
17 Oct 2018 03:01:59 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
|
+
Strict-Transport-Security:
|
51
|
+
- max-age=15768000
|
52
|
+
Access-Control-Allow-Origin:
|
53
|
+
- "*"
|
54
|
+
Access-Control-Allow-Credentials:
|
55
|
+
- 'true'
|
56
|
+
Access-Control-Allow-Methods:
|
57
|
+
- GET, OPTIONS
|
58
|
+
Access-Control-Allow-Headers:
|
59
|
+
- Origin, X-Requested-With, Content-Type, Accept
|
60
|
+
body:
|
61
|
+
encoding: ASCII-8BIT
|
62
|
+
string: Unknown symbol
|
63
|
+
http_version:
|
64
|
+
recorded_at: Tue, 16 Oct 2018 15:01:59 GMT
|
65
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,65 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.iextrading.com/1.0/stock/INVALID/sector-performance
|
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: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Tue, 02 Oct 2018 02:22:28 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- ctoken=648d4486382e4b0aa1fceb6e57a34e19; Domain=.iextrading.com; Path=/; Expires=Tue,
|
33
|
+
02 Oct 2018 14:22:28 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
|
+
Strict-Transport-Security:
|
51
|
+
- max-age=15768000
|
52
|
+
Access-Control-Allow-Origin:
|
53
|
+
- "*"
|
54
|
+
Access-Control-Allow-Credentials:
|
55
|
+
- 'true'
|
56
|
+
Access-Control-Allow-Methods:
|
57
|
+
- GET, OPTIONS
|
58
|
+
Access-Control-Allow-Headers:
|
59
|
+
- Origin, X-Requested-With, Content-Type, Accept
|
60
|
+
body:
|
61
|
+
encoding: ASCII-8BIT
|
62
|
+
string: Unknown symbol
|
63
|
+
http_version:
|
64
|
+
recorded_at: Tue, 02 Oct 2018 02:22:28 GMT
|
65
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,72 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.iextrading.com/1.0/stock/market/sector-performance
|
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:27 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=54432857e67f4d64b96fcfc7fe42f5e1; Domain=.iextrading.com; Path=/; Expires=Tue,
|
33
|
+
02 Oct 2018 14:22:27 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: '[{"type":"sector","name":"Energy","performance":0.01386,"lastUpdated":1538424000406},{"type":"sector","name":"Materials","performance":0.01001,"lastUpdated":1538424000350},{"type":"sector","name":"Industrials","performance":0.0088,"lastUpdated":1538424000403},{"type":"sector","name":"Health
|
65
|
+
Care","performance":0.00494,"lastUpdated":1538424000381},{"type":"sector","name":"Technology","performance":0.00478,"lastUpdated":1538424000467},{"type":"sector","name":"Financials","performance":0.00399,"lastUpdated":1538424000489},{"type":"sector","name":"Consumer
|
66
|
+
Staples","performance":-0.00074,"lastUpdated":1538424000412},{"type":"sector","name":"Consumer
|
67
|
+
Discretionary","performance":-0.00307,"lastUpdated":1538424000351},{"type":"sector","name":"Utilities","performance":-0.00342,"lastUpdated":1538424000385},{"type":"sector","name":"Communication
|
68
|
+
Services","performance":-0.00408,"lastUpdated":1538424000372},{"type":"sector","name":"Real
|
69
|
+
Estate","performance":-0.00767,"lastUpdated":1538424000353}]'
|
70
|
+
http_version:
|
71
|
+
recorded_at: Tue, 02 Oct 2018 02:22:27 GMT
|
72
|
+
recorded_with: VCR 4.0.0
|