voly 0.0.165__py3-none-any.whl → 0.0.166__py3-none-any.whl

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.
voly/formulas.py CHANGED
@@ -225,7 +225,6 @@ def iv(option_price: float, s: float, K: float, r: float, t: float,
225
225
  - Implied volatility
226
226
  """
227
227
 
228
- '''
229
228
  # Check if option price is within theoretical bounds
230
229
  if option_type.lower() in ["call", "c"]:
231
230
  intrinsic = max(0, s - K * np.exp(-r * t))
@@ -239,7 +238,7 @@ def iv(option_price: float, s: float, K: float, r: float, t: float,
239
238
  return np.nan # Price below intrinsic value
240
239
  if option_price >= K:
241
240
  return np.inf # Price exceeds strike
242
- '''
241
+
243
242
  flag = 'c' if option_type.lower() in ["call", "c"] else 'p'
244
243
 
245
244
  iv_value = implied_volatility(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: voly
3
- Version: 0.0.165
3
+ Version: 0.0.166
4
4
  Summary: Options & volatility research package
5
5
  Author-email: Manu de Cara <manu.de.cara@gmail.com>
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
1
  voly/__init__.py,sha256=8xyDk7rFCn_MOD5hxuv5cxxKZvBVRiSIM7TgaMPpwpw,211
2
2
  voly/client.py,sha256=-yE1_cBvjkK-BO_kKCYtn4WPbNOhAzT0hsfykU5LvQQ,14761
3
3
  voly/exceptions.py,sha256=PBsbn1vNMvKcCJwwJ4lBO6glD85jo1h2qiEmD7ArAjs,92
4
- voly/formulas.py,sha256=rpIyMwz8WvK22dtnzOSw2J9omjrVj1yJjG44_3JZZE8,11224
4
+ voly/formulas.py,sha256=eDPw32xa3dwCIrE-zeZzznfGaplGFoVcA167uQngZ70,11209
5
5
  voly/models.py,sha256=o-pHujGfr5Gn8ItckMzLI4Q8yaX9FQaV8UjCxv2zgTY,3364
6
6
  voly/core/__init__.py,sha256=bu6fS2I1Pj9fPPnl-zY3L7NqrZSY5Zy6NY2uMUvdhKs,183
7
7
  voly/core/charts.py,sha256=E21OZB5lTY4YL2flgaFJ6s5g3_ExtAQT2zryZZxLPyM,12735
@@ -13,8 +13,8 @@ voly/core/rnd.py,sha256=GoC3m1Q46Wnk5tV_mstr-3_aktHeue6BBLh4DQTciW0,13307
13
13
  voly/utils/__init__.py,sha256=E05mWatyC-PDOsCxQV1p5Xi1IgpOomxrNURyCx_gB-w,200
14
14
  voly/utils/density.py,sha256=q0fX4im9TGwMCZ32Hzdv8CNh56KnJo8bmG5w0gVWZH8,5879
15
15
  voly/utils/logger.py,sha256=4-_2bVJmq17Q0d7Rd2mPg1AeR8gxv6EPvcmBDMFWcSM,1744
16
- voly-0.0.165.dist-info/licenses/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
17
- voly-0.0.165.dist-info/METADATA,sha256=wIA3r_Rk8BbWUUSTiFsuc12wY1WfOWYLXiP-qJCkri8,4115
18
- voly-0.0.165.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
19
- voly-0.0.165.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
20
- voly-0.0.165.dist-info/RECORD,,
16
+ voly-0.0.166.dist-info/licenses/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
17
+ voly-0.0.166.dist-info/METADATA,sha256=ScXeB49Z10bjBwlid0Yt6Cu3_FjMgwGBIpioqjn-1EU,4115
18
+ voly-0.0.166.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
19
+ voly-0.0.166.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
20
+ voly-0.0.166.dist-info/RECORD,,
File without changes