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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cb6c28f42078f02638317b202aa1dd68a577ed036755a506a0dd5b72afc50c1
4
- data.tar.gz: 607269da1000a107852f91df1eaa845ef0fae6d2ceccc7dbc237ef354c5ed706
3
+ metadata.gz: ea68aad49e0c216b7e25b0996e5fe39d40f5ac3824e096f9c249a89ac365a643
4
+ data.tar.gz: 9befcf4e1050eac2105b60baa2db648f0f830792fa50cb4d63ac157ad15b2d15
5
5
  SHA512:
6
- metadata.gz: 60acc1944b881fce9e85aa268f36c0ce2d4610b447f6a63a6e71b47f88c37778ad6601502f29fa8e4e9ef7be5b4af01171a149c5c9c75d41e96aa8880d97d325
7
- data.tar.gz: d7b8cb3840589fb1a4f9d12794584d1f2defb4308b333a90d9f5feab5d79b95706dee0b9a212feced62f11d9ebd443bd9181ee09f9db6a829fdd008ed6f6e711
6
+ metadata.gz: ab592931197ff29e90d20c5f0b65e8f6aac992fc106e610bb679ca492a6767d577f20ff4424b70b0d255d25c9c0cfeacb681a1a4373589aa25b7ed3c95b852a1
7
+ data.tar.gz: b150a5a7453f51ecd5ca57e168b39a2064702f5274eb1794c4660acb2c03adb55a58bc41e21abe7f83f4949d3d16d575b7f4b3ac1230f38be379163c06d70932
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sensei_eod_utils'
5
- s.version = '0.0.11'
5
+ s.version = '0.0.12'
6
6
  s.date = '2019-12-20'
7
7
  s.summary = 'Sensei trader utility functions and Eod api facade'
8
8
  s.authors = ['Nishant Shah']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensei_eod_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nishant Shah