Skip to content

Commit ba120de

Browse files
committed
release
1 parent ede62b4 commit ba120de

File tree

7 files changed

+37
-9
lines changed

7 files changed

+37
-9
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022 Quantmind
1+
Copyright (c) 2023 Quantmind
22

33
Redistribution and use in source and binary forms, with or without modification,
44
are permitted provided that the following conditions are met:

notebooks/applications/volatility_surface.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ df
9494
The plot function is enabled only if [plotly](https://plotly.com/python/) is installed
9595

9696
```{code-cell} ipython3
97-
vs.plot().update_layout(height=500, title="BTC Volatility Surface", xaxis_title=r"$\frac{1}{T}$")
97+
vs.plot().update_layout(height=500, title="BTC Volatility Surface")
9898
```
9999

100100
The `moneyness_ttm` is defined as
@@ -106,7 +106,7 @@ The `moneyness_ttm` is defined as
106106
where $T$ is the time-to-maturity.
107107

108108
```{code-cell} ipython3
109-
vs.plot3d().update_layout(height=800, title="BTC Volatility Surface")
109+
vs.plot3d().update_layout(height=800, title="BTC Volatility Surface", scene_camera=dict(eye=dict(x=1, y=-2, z=1)))
110110
```
111111

112112
## Model Calibration

poetry.lock

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "quantflow"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
description = "quantitative analysis"
55
authors = ["Luca <luca@quantmind.com>"]
66
license = "BSD-3-Clause"
@@ -25,6 +25,7 @@ pytest-cov = "^4.0.0"
2525
mypy = "^1.4.0"
2626
ghp-import = "^2.0.2"
2727
ruff = "^0.0.277"
28+
pytest-asyncio = "^0.21.1"
2829

2930
[tool.poetry.extras]
3031
data = ["aiohttp"]
@@ -49,6 +50,7 @@ build-backend = "poetry.core.masonry.api"
4950
formats = "ipynb,myst"
5051

5152
[tool.pytest.ini_options]
53+
asyncio_mode = "auto"
5254
testpaths = [
5355
"tests"
5456
]

quantflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Quantitative analysis and pricing"""
2-
__version__ = "0.2.1"
2+
__version__ = "0.2.2"

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ pip install quantflow
2020

2121
## Modules
2222

23-
* [quantflow.data](./quantflow/data) data APIs (requires `quantflow[data]`)
24-
* [quantflow.options](./quantflow/options) option pricing
25-
* [quantflow.sp](./quantflow/sp) stochastic process primitives
23+
* [quantflow.data](https://github.com/quantmind/quantflow/tree/main/quantflow/data) data APIs (requires `quantflow[data]`)
24+
* [quantflow.options](https://github.com/quantmind/quantflow/tree/main/quantflow/options) option pricing and calibration
25+
* [quantflow.sp](https://github.com/quantmind/quantflow/tree/main/quantflow/sp) stochastic process primitives

tests/test_data.py

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

33
from quantflow.data.fmp import FMP
44

5+
pytestmark = pytest.mark.skipif(FMP().key is None, reason="No FMP API key found")
6+
57

68
@pytest.fixture
79
def fmp() -> FMP:
@@ -10,3 +12,9 @@ def fmp() -> FMP:
1012

1113
def test_client(fmp: FMP) -> None:
1214
assert fmp.url
15+
assert fmp.key
16+
17+
18+
async def test_historical(fmp: FMP) -> None:
19+
df = await fmp.prices("BTCUSD")
20+
assert df["close"]

0 commit comments

Comments
 (0)