vectorbt 0.26.1__tar.gz → 0.26.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vectorbt-0.26.1/vectorbt.egg-info → vectorbt-0.26.2}/PKG-INFO +2 -2
- {vectorbt-0.26.1 → vectorbt-0.26.2}/setup.py +1 -1
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/_version.py +1 -1
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/base/reshape_fns.py +12 -2
- {vectorbt-0.26.1 → vectorbt-0.26.2/vectorbt.egg-info}/PKG-INFO +2 -2
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt.egg-info/requires.txt +1 -1
- {vectorbt-0.26.1 → vectorbt-0.26.2}/LICENSE.md +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/MANIFEST.in +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/README.md +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/setup.cfg +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_base.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_data.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_generic.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_indicators.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_labels.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_portfolio.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_records.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_returns.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_settings.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_signals.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/test_utils.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/tests/utils.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/_settings.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/_typing.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/base/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/base/accessors.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/base/array_wrapper.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/base/column_grouper.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/base/combine_fns.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/base/index_fns.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/base/indexing.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/data/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/data/base.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/data/custom.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/data/updater.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/accessors.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/decorators.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/drawdowns.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/enums.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/nb.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/plots_builder.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/plotting.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/ranges.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/splitters.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/generic/stats_builder.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/indicators/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/indicators/basic.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/indicators/configs.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/indicators/factory.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/indicators/nb.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/labels/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/labels/enums.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/labels/generators.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/labels/nb.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/messaging/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/messaging/telegram.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/ohlcv_accessors.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/portfolio/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/portfolio/base.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/portfolio/decorators.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/portfolio/enums.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/portfolio/logs.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/portfolio/nb.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/portfolio/orders.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/portfolio/trades.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/px_accessors.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/records/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/records/base.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/records/col_mapper.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/records/decorators.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/records/mapped_array.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/records/nb.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/returns/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/returns/accessors.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/returns/metrics.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/returns/nb.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/returns/qs_adapter.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/root_accessors.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/signals/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/signals/accessors.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/signals/enums.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/signals/factory.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/signals/generators.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/signals/nb.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/templates/dark.json +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/templates/light.json +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/templates/seaborn.json +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/__init__.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/array_.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/attr_.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/checks.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/colors.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/config.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/datetime_.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/decorators.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/docs.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/enum_.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/figure.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/image_.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/mapping.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/math_.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/module_.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/params.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/random_.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/requests_.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/schedule_.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/tags.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt/utils/template.py +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt.egg-info/SOURCES.txt +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt.egg-info/dependency_links.txt +0 -0
- {vectorbt-0.26.1 → vectorbt-0.26.2}/vectorbt.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vectorbt
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.2
|
|
4
4
|
Summary: Python library for backtesting and analyzing trading strategies at scale
|
|
5
5
|
Home-page: https://github.com/polakowo/vectorbt
|
|
6
6
|
Author: Oleg Polakow
|
|
@@ -25,7 +25,7 @@ Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
|
25
25
|
Requires-Python: >=3.6
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
27
|
License-File: LICENSE.md
|
|
28
|
-
Requires-Dist: numpy
|
|
28
|
+
Requires-Dist: numpy<2.0.0,>=1.16.5
|
|
29
29
|
Requires-Dist: pandas
|
|
30
30
|
Requires-Dist: scipy
|
|
31
31
|
Requires-Dist: matplotlib
|
|
@@ -12,7 +12,14 @@ from collections.abc import Sequence
|
|
|
12
12
|
import numpy as np
|
|
13
13
|
import pandas as pd
|
|
14
14
|
from numba import njit
|
|
15
|
-
|
|
15
|
+
try:
|
|
16
|
+
from numpy import broadcast_shapes
|
|
17
|
+
|
|
18
|
+
broadcast_shape = None
|
|
19
|
+
except ImportError:
|
|
20
|
+
from numpy.lib.stride_tricks import _broadcast_shape as broadcast_shape
|
|
21
|
+
|
|
22
|
+
broadcast_shapes = None
|
|
16
23
|
|
|
17
24
|
from vectorbt import _typing as tp
|
|
18
25
|
from vectorbt.base import index_fns, array_wrapper
|
|
@@ -564,7 +571,10 @@ def broadcast(*args: tp.ArrayLike,
|
|
|
564
571
|
|
|
565
572
|
# Get final shape
|
|
566
573
|
if to_shape is None:
|
|
567
|
-
|
|
574
|
+
if broadcast_shapes is not None:
|
|
575
|
+
to_shape = broadcast_shapes(*map(lambda x: np.asarray(x).shape, arr_args_2d))
|
|
576
|
+
else:
|
|
577
|
+
to_shape = broadcast_shape(*map(np.asarray, arr_args_2d))
|
|
568
578
|
|
|
569
579
|
# Perform broadcasting
|
|
570
580
|
new_args = []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vectorbt
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.2
|
|
4
4
|
Summary: Python library for backtesting and analyzing trading strategies at scale
|
|
5
5
|
Home-page: https://github.com/polakowo/vectorbt
|
|
6
6
|
Author: Oleg Polakow
|
|
@@ -25,7 +25,7 @@ Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
|
25
25
|
Requires-Python: >=3.6
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
27
|
License-File: LICENSE.md
|
|
28
|
-
Requires-Dist: numpy
|
|
28
|
+
Requires-Dist: numpy<2.0.0,>=1.16.5
|
|
29
29
|
Requires-Dist: pandas
|
|
30
30
|
Requires-Dist: scipy
|
|
31
31
|
Requires-Dist: matplotlib
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|