ish_models 0.0.33.150 → 0.0.33.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/warbler/option_watch.rb +5 -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: 6c1a8feb3d93c76b4cc923c63ec58f7c07b6ef717b5fb1e6ab3887e0b1afa79a
|
|
4
|
+
data.tar.gz: a37d65e4328947be9d323288ca68d526c17099eefd22b8a9660963b153ea6f68
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad692619a0b561c876c23c2dd541bf93f894885a8c3f3a8aee9718dfb8c6e1c5f5de68acebc61955f5e2765320fe7ca12042b80b69700fb9db3f65a4e97239ca
|
|
7
|
+
data.tar.gz: c5cee4bb7423bbe1dfde9faea1eb1ec48f7ab9cf570c1c5377c29237ff4667416d42db1e15f3a186cdcb12f875e6b24ea55f0d8bb3a6a9a2647c4df03b9d832a
|
data/lib/warbler/option_watch.rb
CHANGED
|
@@ -10,10 +10,14 @@ class Warbler::OptionWatch
|
|
|
10
10
|
validates :ticker, presence: true
|
|
11
11
|
# field :symbol # like NVDA_021822C230
|
|
12
12
|
|
|
13
|
-
## Strike isn't
|
|
13
|
+
## Strike isn't the same as price!
|
|
14
14
|
field :strike, :type => Float
|
|
15
15
|
validates :strike, presence: true
|
|
16
16
|
|
|
17
|
+
## What is the price of the option at some strike?
|
|
18
|
+
field :price, type: Float
|
|
19
|
+
validates :price, presence: true
|
|
20
|
+
|
|
17
21
|
field :contractType
|
|
18
22
|
validates :contractType, presence: true
|
|
19
23
|
|