sensei_eod_utils 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eod_facade/options.rb +5 -1
- data/sensei_eod_utils.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea68aad49e0c216b7e25b0996e5fe39d40f5ac3824e096f9c249a89ac365a643
|
4
|
+
data.tar.gz: 9befcf4e1050eac2105b60baa2db648f0f830792fa50cb4d63ac157ad15b2d15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab592931197ff29e90d20c5f0b65e8f6aac992fc106e610bb679ca492a6767d577f20ff4424b70b0d255d25c9c0cfeacb681a1a4373589aa25b7ed3c95b852a1
|
7
|
+
data.tar.gz: b150a5a7453f51ecd5ca57e168b39a2064702f5274eb1794c4660acb2c03adb55a58bc41e21abe7f83f4949d3d16d575b7f4b3ac1230f38be379163c06d70932
|
data/lib/eod_facade/options.rb
CHANGED
@@ -19,7 +19,11 @@ module EodFacade
|
|
19
19
|
raise ArgumentError, "Error fetching options data for #{symbol}"
|
20
20
|
end
|
21
21
|
|
22
|
-
response.parsed_response
|
22
|
+
unless response.parsed_response[symbol]
|
23
|
+
raise ArgumentError, "Option contract #{symbol} not found"
|
24
|
+
end
|
25
|
+
|
26
|
+
response.parsed_response[symbol]
|
23
27
|
end
|
24
28
|
|
25
29
|
private
|
data/sensei_eod_utils.gemspec
CHANGED