Skip to content

Commit 8b7f6ca

Browse files
authored
Better sanitation of inputs (#44)
1 parent e3728d1 commit 8b7f6ca

13 files changed

Lines changed: 1507 additions & 935 deletions

File tree

app/volatility_surface.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,16 @@ def _(index, pd, surface):
101101

102102
@app.cell
103103
def _(surface):
104-
surface.term_structure()
105-
return
104+
ts = surface.term_structure()
105+
ts
106+
return (ts,)
106107

107108

108109
@app.cell
109-
def _():
110+
def _(ts):
111+
from quantflow.utils import plot
112+
113+
plot.plot_lines(ts, x="ttm", y="rate_percent")
110114
return
111115

112116

docs/api/options/svi.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SVI Volatility Smile
2+
3+
::: quantflow.options.svi.SVI

docs/api/options/vol_surface.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
::: quantflow.options.surface.FwdPrice
2121

22+
::: quantflow.options.surface.ImpliedFwdPrice
23+
2224
::: quantflow.options.surface.Strike
2325

2426
::: quantflow.options.surface.OptionArrays

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ nav:
7272
- Calibration: api/options/calibration.md
7373
- Deep IV Factor Model: api/options/divfm.md
7474
- Pricer: api/options/pricer.md
75+
- SVI Smile: api/options/svi.md
7576
- Volatility Surface: api/options/vol_surface.md
7677
- Stochastic Processes:
7778
- api/sp/index.md

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "quantflow"
3-
version = "0.6.3"
3+
version = "0.7.0"
44
description = "quantitative analysis"
55
authors = [ { name = "Luca Sbardella", email = "luca@quantmind.com" } ]
66
license = "BSD-3-Clause"
@@ -91,6 +91,11 @@ theme = "dark"
9191
asyncio_mode = "auto"
9292
testpaths = [ "quantflow_tests" ]
9393

94+
[tool.coverage.report]
95+
exclude_also = [
96+
"@abstractmethod",
97+
]
98+
9499
[tool.isort]
95100
profile = "black"
96101

0 commit comments

Comments
 (0)