sensei_eod_utils 0.0.25 → 0.0.26
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 +4 -0
- 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: afe9c0784f5498d289eb8530648a0459e1c442de2d0d87c3fdb29aaa6de5f02b
|
4
|
+
data.tar.gz: cd2be15f3ec4006470b11fb58b918ab4eacdf2ae60a99493d5ae82383c4c1861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5f0a7e421ba83734e92611e78d718361cc592c3eca8997a59414e2c523c58f6a6e9a2a6ff2af379bb69672bb43e2bd01ad49bf871f1e765fdaabb373ee99054
|
7
|
+
data.tar.gz: 03aec4304e0d29eaeecfed5a592d2cd4b7c96ec18a12b45a22907e3a5530ad6604a7e168bcfcca19b1bfd5910b3586dcc735e32212f483d3c91aef30c4004455
|
data/lib/eod_facade/options.rb
CHANGED
@@ -6,6 +6,10 @@ module EodFacade
|
|
6
6
|
class Options < ::EodFacade::Base
|
7
7
|
class << self
|
8
8
|
def call(symbol)
|
9
|
+
unless EodServices::InstrumentType.option?(symbol)
|
10
|
+
raise ArgumentError, "Option contract #{symbol} not found or is invalid"
|
11
|
+
end
|
12
|
+
|
9
13
|
underlying = EodServices::Contract.underlying_symbol(symbol)
|
10
14
|
expiry = EodServices::Contract.contract_expiry(symbol)
|
11
15
|
option_type = contract_type(symbol)
|
data/sensei_eod_utils.gemspec
CHANGED