You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: notebooks/applications/volatility_surface.md
+28-11Lines changed: 28 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,14 @@ jupytext:
6
6
format_version: 0.13
7
7
jupytext_version: 1.16.6
8
8
kernelspec:
9
-
display_name: Python 3 (ipykernel)
9
+
display_name: .venv
10
10
language: python
11
11
name: python3
12
12
---
13
13
14
14
# Volatility Surface
15
15
16
-
In this notebook we illustrate the use of the Volatility Surface tool in the library. We use [deribit](https://docs.deribit.com/) options on BTCUSD as example.
16
+
In this notebook we illustrate the use of the Volatility Surface tool in the library. We use [deribit](https://docs.deribit.com/) options on ETHUSD as example.
17
17
18
18
First thing, fetch the data
19
19
@@ -28,7 +28,7 @@ Once we have loaded the data, we create the surface and display the term-structu
28
28
29
29
```{code-cell} ipython3
30
30
vs = loader.surface()
31
-
vs.maturities = vs.maturities[1:]
31
+
vs.maturities = vs.maturities
32
32
vs.term_structure()
33
33
```
34
34
@@ -58,7 +58,22 @@ df
58
58
The plot function is enabled only if [plotly](https://plotly.com/python/) is installed
0 commit comments