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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 576bcb2c987028d0610ee643199340d8a02bc9f6a7e5ae7dde2676aa1480d01e
4
- data.tar.gz: 53176d76f2cf3e17fc77511d61ad7e0e83e0639cf7af62cfcbe08916c0f7b742
3
+ metadata.gz: afe9c0784f5498d289eb8530648a0459e1c442de2d0d87c3fdb29aaa6de5f02b
4
+ data.tar.gz: cd2be15f3ec4006470b11fb58b918ab4eacdf2ae60a99493d5ae82383c4c1861
5
5
  SHA512:
6
- metadata.gz: a788a76f748fe2501b39f0a3387b05e6e84a1f40b7f25ecba2b8af363f6fbd03bf56cf64f7d05fe4361c26058049607095c8bc107ce4ad8c5905999eb972995d
7
- data.tar.gz: ba58a12e7a355b098bf75ae4dd17ed4e8cf57ac2f71e90c225971d890b593e40a6983cd48116c66bbf46d0c44b42e5455b352e6ffaa30102431b69ddea1d68df
6
+ metadata.gz: a5f0a7e421ba83734e92611e78d718361cc592c3eca8997a59414e2c523c58f6a6e9a2a6ff2af379bb69672bb43e2bd01ad49bf871f1e765fdaabb373ee99054
7
+ data.tar.gz: 03aec4304e0d29eaeecfed5a592d2cd4b7c96ec18a12b45a22907e3a5530ad6604a7e168bcfcca19b1bfd5910b3586dcc735e32212f483d3c91aef30c4004455
@@ -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)
@@ -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.25'
5
+ s.version = '0.0.26'
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.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nishant Shah