sensei_eod_utils 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eod_services/contract.rb +2 -2
- 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: 9d5ef3c880493aa1412b09e9378922cdaa2762bb53ecf6e3b20e73e936197c4f
|
4
|
+
data.tar.gz: 2aef9b632c860f9b2d60a9f6c8460f58951a830c9fcf4afaff82606ad5bcaa4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb313e8c21940d5fe8f79bc5e4131a49ad89ee6f26c4362fb5c7b9a10a47401419276f6b4e0583f6eb3f8e757115e208b00ae4de1c4a7852fa7941b09f6ae07f
|
7
|
+
data.tar.gz: fe0506c15059096065b883e65d36774354d6666ab330cad9136e7301f816bff44db1f26e0abe99536833c0c05a92605f6de19b8868921925e39624973942be3c
|
@@ -8,7 +8,7 @@ module EodServices
|
|
8
8
|
# rubocop:enable Metrics/LineLength
|
9
9
|
|
10
10
|
def contract_symbol(underlying:, expiry:, type:, strike:)
|
11
|
-
return underlying if type == OptionType::STOCK
|
11
|
+
return underlying if type == EodModels::OptionType::STOCK
|
12
12
|
|
13
13
|
underlying + expiration(expiry) + type + padded_strike(strike)
|
14
14
|
end
|
@@ -29,7 +29,7 @@ module EodServices
|
|
29
29
|
match = contract_symbol.match(CONTRACT_REGEX)
|
30
30
|
return match[:option_type] if match
|
31
31
|
|
32
|
-
OptionType::STOCK
|
32
|
+
EodModels::OptionType::STOCK
|
33
33
|
end
|
34
34
|
|
35
35
|
private
|
data/sensei_eod_utils.gemspec
CHANGED