Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbardel committed Jul 13, 2023
1 parent ede62b4 commit ba120de
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 9 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2022 Quantmind
Copyright (c) 2023 Quantmind

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Expand Down
4 changes: 2 additions & 2 deletions notebooks/applications/volatility_surface.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ df
The plot function is enabled only if [plotly](https://plotly.com/python/) is installed

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

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

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

## Model Calibration
Expand Down
20 changes: 19 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "quantflow"
version = "0.2.1"
version = "0.2.2"
description = "quantitative analysis"
authors = ["Luca <luca@quantmind.com>"]
license = "BSD-3-Clause"
Expand All @@ -25,6 +25,7 @@ pytest-cov = "^4.0.0"
mypy = "^1.4.0"
ghp-import = "^2.0.2"
ruff = "^0.0.277"
pytest-asyncio = "^0.21.1"

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

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = [
"tests"
]
Expand Down
2 changes: 1 addition & 1 deletion quantflow/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Quantitative analysis and pricing"""
__version__ = "0.2.1"
__version__ = "0.2.2"
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ pip install quantflow

## Modules

* [quantflow.data](./quantflow/data) data APIs (requires `quantflow[data]`)
* [quantflow.options](./quantflow/options) option pricing
* [quantflow.sp](./quantflow/sp) stochastic process primitives
* [quantflow.data](https://github.com/quantmind/quantflow/tree/main/quantflow/data) data APIs (requires `quantflow[data]`)
* [quantflow.options](https://github.com/quantmind/quantflow/tree/main/quantflow/options) option pricing and calibration
* [quantflow.sp](https://github.com/quantmind/quantflow/tree/main/quantflow/sp) stochastic process primitives
8 changes: 8 additions & 0 deletions tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from quantflow.data.fmp import FMP

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


@pytest.fixture
def fmp() -> FMP:
Expand All @@ -10,3 +12,9 @@ def fmp() -> FMP:

def test_client(fmp: FMP) -> None:
assert fmp.url
assert fmp.key


async def test_historical(fmp: FMP) -> None:
df = await fmp.prices("BTCUSD")
assert df["close"]

0 comments on commit ba120de

Please sign in to comment.