Skip to content

Commit

Permalink
Add adapter for quantstats
Browse files Browse the repository at this point in the history
  • Loading branch information
polakowo committed Aug 27, 2021
1 parent c1f1d1f commit 436d07a
Show file tree
Hide file tree
Showing 26 changed files with 859 additions and 364 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ randnx_n 0 1 2
- Functions for working with returns
- Numba-compiled versions of metrics found in [empyrical](https://github.com/quantopian/empyrical)
- Rolling versions of most metrics
- Adapter for [quantstats](https://github.com/ranaroussi/quantstats)

```python-repl
>>> pd.Series([0.01, -0.01, 0.01]).vbt.returns(freq='1D').sharpe_ratio()
Expand All @@ -374,7 +375,7 @@ randnx_n 0 1 2
- Accepts signals, orders, and custom order function
- Supports long and short positions
- Supports individual and multi-asset mixed portfolios
- Offers metrics and tools for analyzing returns, orders, trades and positions
- Offers metrics and tools for analyzing returns, orders, and trades
- Allows saving and loading from disk using [dill](https://github.com/uqfoundation/dill)

```python-repl
Expand Down
1 change: 0 additions & 1 deletion apps/candlestick-patterns/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from vectorbt import settings
from vectorbt.utils.config import merge_dicts
from vectorbt.utils.colors import adjust_opacity
from vectorbt.utils.template import deep_substitute
from vectorbt.portfolio.enums import Direction, ConflictMode
from vectorbt.portfolio.base import Portfolio

Expand Down
Binary file added docs/img/portfolio_plot_snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
'ta',
'pandas_ta',
'TA-Lib',
'python-telegram-bot>=13.4' # LGPLv3
'python-telegram-bot>=13.4', # LGPLv3
'quantstats'
],
'cov': [
'pytest',
Expand Down
Loading

0 comments on commit 436d07a

Please sign in to comment.