vectorbt 1.1.2__tar.gz → 1.2.1__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-1.2.1/MANIFEST.in +2 -0
- {vectorbt-1.1.2/vectorbt.egg-info → vectorbt-1.2.1}/PKG-INFO +147 -37
- {vectorbt-1.1.2 → vectorbt-1.2.1}/README.md +143 -35
- {vectorbt-1.1.2 → vectorbt-1.2.1}/pyproject.toml +3 -1
- vectorbt-1.2.1/tests/__init__.py +0 -0
- vectorbt-1.2.1/tests/conftest.py +144 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_base.py +465 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_data.py +194 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_engine.py +247 -1
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_generic.py +190 -11
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_indicators.py +317 -135
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_labels.py +18 -51
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_portfolio.py +273 -38
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_records.py +125 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_returns.py +206 -1
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_utils.py +53 -1
- vectorbt-1.2.1/tests/utils.py +61 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/_version.py +1 -1
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/base/array_wrapper.py +2 -1
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/base/index_fns.py +84 -30
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/base/reshape_fns.py +26 -7
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/data/base.py +14 -2
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/accessors.py +13 -14
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/nb.py +143 -51
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/indicators/basic.py +7 -2
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/indicators/factory.py +9 -3
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/indicators/nb.py +63 -11
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/labels/generators.py +4 -1
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/labels/nb.py +4 -1
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/portfolio/base.py +6 -5
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/portfolio/enums.py +4 -1
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/portfolio/nb.py +25 -3
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/portfolio/trades.py +14 -3
- vectorbt-1.2.1/vectorbt/py.typed +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/records/mapped_array.py +5 -5
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/returns/accessors.py +86 -1
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/returns/dispatch.py +53 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/returns/nb.py +98 -3
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/config.py +5 -2
- {vectorbt-1.1.2 → vectorbt-1.2.1/vectorbt.egg-info}/PKG-INFO +147 -37
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt.egg-info/SOURCES.txt +4 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt.egg-info/requires.txt +3 -1
- vectorbt-1.1.2/MANIFEST.in +0 -1
- {vectorbt-1.1.2 → vectorbt-1.2.1}/LICENSE.md +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/setup.cfg +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/setup.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_plotting.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_settings.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/tests/test_signals.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/_engine.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/_settings.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/_typing.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/base/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/base/accessors.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/base/column_grouper.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/base/combine_fns.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/base/indexing.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/data/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/data/custom.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/data/updater.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/decorators.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/dispatch.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/drawdowns.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/enums.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/plots_builder.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/plotting.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/ranges.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/splitters.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/generic/stats_builder.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/indicators/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/indicators/configs.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/indicators/dispatch.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/labels/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/labels/dispatch.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/labels/enums.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/messaging/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/messaging/telegram.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/ohlcv_accessors.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/portfolio/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/portfolio/decorators.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/portfolio/dispatch.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/portfolio/logs.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/portfolio/orders.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/px_accessors.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/records/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/records/base.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/records/col_mapper.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/records/decorators.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/records/dispatch.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/records/nb.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/returns/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/returns/metrics.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/returns/qs_adapter.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/root_accessors.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/signals/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/signals/accessors.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/signals/dispatch.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/signals/enums.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/signals/factory.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/signals/generators.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/signals/nb.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/templates/dark.json +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/templates/light.json +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/templates/seaborn.json +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/__init__.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/array_.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/attr_.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/checks.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/colors.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/datetime_.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/decorators.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/docs.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/enum_.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/figure.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/image_.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/mapping.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/math_.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/module_.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/params.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/random_.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/requests_.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/schedule_.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/tags.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt/utils/template.py +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt.egg-info/dependency_links.txt +0 -0
- {vectorbt-1.1.2 → vectorbt-1.2.1}/vectorbt.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vectorbt
|
|
3
|
-
Version: 1.1
|
|
3
|
+
Version: 1.2.1
|
|
4
4
|
Summary: Python library for backtesting and analyzing trading strategies at scale
|
|
5
5
|
Author-email: Oleg Polakow <olegpolakow@vectorbt.pro>
|
|
6
6
|
Project-URL: Homepage, https://github.com/polakowo/vectorbt
|
|
@@ -24,6 +24,7 @@ Requires-Dist: pandas<4.0,>=3.0.3
|
|
|
24
24
|
Requires-Dist: scipy
|
|
25
25
|
Requires-Dist: matplotlib
|
|
26
26
|
Requires-Dist: plotly>=4.12.0
|
|
27
|
+
Requires-Dist: nbformat>=4.2.0
|
|
27
28
|
Requires-Dist: ipywidgets>=7.0.0
|
|
28
29
|
Requires-Dist: anywidget
|
|
29
30
|
Requires-Dist: numba>=0.66
|
|
@@ -37,7 +38,7 @@ Requires-Dist: requests
|
|
|
37
38
|
Requires-Dist: pytz
|
|
38
39
|
Requires-Dist: mypy_extensions
|
|
39
40
|
Provides-Extra: rust
|
|
40
|
-
Requires-Dist: vectorbt-rust==1.1
|
|
41
|
+
Requires-Dist: vectorbt-rust==1.2.1; extra == "rust"
|
|
41
42
|
Provides-Extra: full
|
|
42
43
|
Requires-Dist: TA-Lib; extra == "full"
|
|
43
44
|
Requires-Dist: yfinance>=0.2.22; extra == "full"
|
|
@@ -49,6 +50,7 @@ Requires-Dist: ta; extra == "full"
|
|
|
49
50
|
Requires-Dist: pandas-ta-classic; extra == "full"
|
|
50
51
|
Requires-Dist: python-telegram-bot>=13.4; extra == "full"
|
|
51
52
|
Requires-Dist: quantstats>=0.0.37; extra == "full"
|
|
53
|
+
Requires-Dist: kaleido>=1; extra == "full"
|
|
52
54
|
Provides-Extra: test
|
|
53
55
|
Requires-Dist: pytest; extra == "test"
|
|
54
56
|
Requires-Dist: pytest-cov; extra == "test"
|
|
@@ -114,13 +116,21 @@ Dynamic: license-file
|
|
|
114
116
|
</a>
|
|
115
117
|
</p>
|
|
116
118
|
|
|
117
|
-
<
|
|
119
|
+
<p align="center">
|
|
120
|
+
<a href="https://github.com/polakowo/vectorbt/blob/master/README.zh-CN.md">简体中文</a> / <b>English</b> |
|
|
121
|
+
<a href="#features">Features</a> ·
|
|
122
|
+
<a href="#installation">Installation</a> ·
|
|
123
|
+
<a href="#examples">Examples</a> ·
|
|
124
|
+
<a href="#links">Links</a>
|
|
125
|
+
</p>
|
|
118
126
|
|
|
119
|
-
<
|
|
127
|
+
<h2 align="center">Trading research at scale.</h2>
|
|
128
|
+
|
|
129
|
+
<p align="center">VectorBT is a Python toolkit for trading research. Explore market data, build indicators and signals, and compare thousands of ideas across assets and timeframes. NumPy arrays, Numba acceleration, and an optional Rust engine let you run large experiments in a few lines of Python.</p>
|
|
120
130
|
|
|
121
131
|
---
|
|
122
132
|
|
|
123
|
-
|
|
133
|
+
Move from exploring price patterns to evaluating strategies in one workflow. Inspect trades, fees, drawdowns, and portfolio performance, then explore the results with interactive charts. Built for traders, researchers, and AI agents, VectorBT brings data analysis, strategy simulation, and visualization together in a composable Python API.
|
|
124
134
|
|
|
125
135
|
VectorBT is the open-source community edition of [VectorBT PRO](https://vectorbt.pro/).
|
|
126
136
|
PRO extends the library with parallelization, additional data integrations, portfolio optimization,
|
|
@@ -132,18 +142,80 @@ See [VectorBT vs PRO](https://vectorbt.dev/getting-started/upgrade/) or browse
|
|
|
132
142
|
|
|
133
143
|
## Features
|
|
134
144
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
-
|
|
146
|
-
|
|
145
|
+
<table>
|
|
146
|
+
<tr>
|
|
147
|
+
<td width="50%" valign="top">
|
|
148
|
+
<h3>Fast, vectorized backtesting</h3>
|
|
149
|
+
<p>Research strategies at scale with pandas, NumPy, and Numba.</p>
|
|
150
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#fast-vectorized-backtesting">Backtesting examples →</a></p>
|
|
151
|
+
</td>
|
|
152
|
+
<td width="50%" valign="top">
|
|
153
|
+
<h3>Optional Rust engine</h3>
|
|
154
|
+
<p>Use precompiled kernels for supported operations without JIT compilation.</p>
|
|
155
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#optional-rust-engine">Rust engine →</a></p>
|
|
156
|
+
</td>
|
|
157
|
+
</tr>
|
|
158
|
+
<tr>
|
|
159
|
+
<td width="50%" valign="top">
|
|
160
|
+
<h3>Pandas-native API</h3>
|
|
161
|
+
<p>Work with custom accessors and high-performance operations directly on pandas objects.</p>
|
|
162
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#pandas-native-api">Pandas integration →</a></p>
|
|
163
|
+
</td>
|
|
164
|
+
<td width="50%" valign="top">
|
|
165
|
+
<h3>Flexible broadcasting</h3>
|
|
166
|
+
<p>Analyze multiple assets and sweep large parameter grids with flexible array broadcasting.</p>
|
|
167
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#flexible-broadcasting">Broadcasting API →</a></p>
|
|
168
|
+
</td>
|
|
169
|
+
</tr>
|
|
170
|
+
<tr>
|
|
171
|
+
<td width="50%" valign="top">
|
|
172
|
+
<h3>Rich indicator ecosystem</h3>
|
|
173
|
+
<p>Build custom indicators and use integrations for TA-Lib, Pandas TA, and more.</p>
|
|
174
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#rich-indicator-ecosystem">Indicator features →</a></p>
|
|
175
|
+
</td>
|
|
176
|
+
<td width="50%" valign="top">
|
|
177
|
+
<h3>Portfolio backtesting</h3>
|
|
178
|
+
<p>Analyze trades, drawdowns, and performance, with QuantStats integration.</p>
|
|
179
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#portfolio-backtesting">Portfolio analysis →</a></p>
|
|
180
|
+
</td>
|
|
181
|
+
</tr>
|
|
182
|
+
<tr>
|
|
183
|
+
<td width="50%" valign="top">
|
|
184
|
+
<h3>Signal tooling</h3>
|
|
185
|
+
<p>Generate, rank, map, and analyze the distribution of trading signals.</p>
|
|
186
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#signal-tooling">Signal features →</a></p>
|
|
187
|
+
</td>
|
|
188
|
+
<td width="50%" valign="top">
|
|
189
|
+
<h3>Built-in data access</h3>
|
|
190
|
+
<p>Fetch market data, preprocess it, and generate synthetic time series.</p>
|
|
191
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#built-in-data-access">Data features →</a></p>
|
|
192
|
+
</td>
|
|
193
|
+
</tr>
|
|
194
|
+
<tr>
|
|
195
|
+
<td width="50%" valign="top">
|
|
196
|
+
<h3>Robustness testing</h3>
|
|
197
|
+
<p>Run walk-forward optimization and generate labels for machine learning workflows.</p>
|
|
198
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#robustness-testing">Robustness testing →</a></p>
|
|
199
|
+
</td>
|
|
200
|
+
<td width="50%" valign="top">
|
|
201
|
+
<h3>Interactive visualization</h3>
|
|
202
|
+
<p>Explore results with Plotly charts, Jupyter widgets, and browser dashboards.</p>
|
|
203
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#interactive-visualization">Plotting features →</a></p>
|
|
204
|
+
</td>
|
|
205
|
+
</tr>
|
|
206
|
+
<tr>
|
|
207
|
+
<td width="50%" valign="top">
|
|
208
|
+
<h3>Automation tools</h3>
|
|
209
|
+
<p>Schedule data updates and send Telegram notifications.</p>
|
|
210
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#automation-tools">Scheduling and notifications →</a></p>
|
|
211
|
+
</td>
|
|
212
|
+
<td width="50%" valign="top">
|
|
213
|
+
<h3>Composable Python API</h3>
|
|
214
|
+
<p>Combine building blocks for rapid experimentation and AI agent-driven workflows.</p>
|
|
215
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#composable-python-api">Python workflows →</a></p>
|
|
216
|
+
</td>
|
|
217
|
+
</tr>
|
|
218
|
+
</table>
|
|
147
219
|
|
|
148
220
|
## Installation
|
|
149
221
|
|
|
@@ -183,7 +255,9 @@ pf = vbt.Portfolio.from_holding(price, init_cash=100)
|
|
|
183
255
|
print(pf.total_profit())
|
|
184
256
|
```
|
|
185
257
|
|
|
186
|
-
|
|
258
|
+
Output:
|
|
259
|
+
|
|
260
|
+
```text
|
|
187
261
|
19501.10906763755
|
|
188
262
|
```
|
|
189
263
|
|
|
@@ -199,7 +273,9 @@ pf = vbt.Portfolio.from_signals(price, entries, exits, init_cash=100)
|
|
|
199
273
|
print(pf.total_profit())
|
|
200
274
|
```
|
|
201
275
|
|
|
202
|
-
|
|
276
|
+
Output:
|
|
277
|
+
|
|
278
|
+
```text
|
|
203
279
|
34417.80960086067
|
|
204
280
|
```
|
|
205
281
|
|
|
@@ -227,7 +303,9 @@ fig = mean_expectancy.unstack().vbt.scatterplot(xaxis_title="randnx_n", yaxis_ti
|
|
|
227
303
|
fig.show()
|
|
228
304
|
```
|
|
229
305
|
|
|
230
|
-
|
|
306
|
+
Output:
|
|
307
|
+
|
|
308
|
+
<img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_rand_scatter.svg" alt="Random-strategy mean trade expectancy" />
|
|
231
309
|
|
|
232
310
|
### Test 10,000 dual-SMA window combinations
|
|
233
311
|
|
|
@@ -244,12 +322,18 @@ exits = fast_ma.ma_crossed_below(slow_ma)
|
|
|
244
322
|
pf = vbt.Portfolio.from_signals(price, entries, exits, size=np.inf, fees=0.001, freq="1D")
|
|
245
323
|
|
|
246
324
|
fig = pf.total_return().vbt.heatmap(
|
|
247
|
-
x_level="fast_window",
|
|
248
|
-
|
|
325
|
+
x_level="fast_window",
|
|
326
|
+
y_level="slow_window",
|
|
327
|
+
slider_level="symbol",
|
|
328
|
+
symmetric=True,
|
|
329
|
+
trace_kwargs=dict(colorbar=dict(title="Total return", tickformat="%")),
|
|
330
|
+
)
|
|
249
331
|
fig.show()
|
|
250
332
|
```
|
|
251
333
|
|
|
252
|
-
|
|
334
|
+
Output:
|
|
335
|
+
|
|
336
|
+
<img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_dmac_heatmap.gif" alt="Dual-SMA window combinations across assets" />
|
|
253
337
|
|
|
254
338
|
> [!TIP]
|
|
255
339
|
> **VectorBT PRO**
|
|
@@ -266,7 +350,9 @@ fig.show()
|
|
|
266
350
|
print(pf[(10, 20, "ETH-USD")].stats())
|
|
267
351
|
```
|
|
268
352
|
|
|
269
|
-
|
|
353
|
+
Output:
|
|
354
|
+
|
|
355
|
+
```text
|
|
270
356
|
Start 2017-11-09 00:00:00+00:00
|
|
271
357
|
End 2026-01-03 00:00:00+00:00
|
|
272
358
|
Period 2978 days 00:00:00
|
|
@@ -304,7 +390,9 @@ Name: (10, 20, ETH-USD), dtype: object
|
|
|
304
390
|
pf[(10, 20, "ETH-USD")].plot().show()
|
|
305
391
|
```
|
|
306
392
|
|
|
307
|
-
|
|
393
|
+
Output:
|
|
394
|
+
|
|
395
|
+
<img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/readme-portfolio.gif" alt="Inspecting trades, zooming, and toggling the portfolio benchmark" />
|
|
308
396
|
|
|
309
397
|
### Animate Bollinger Bands across multiple symbols
|
|
310
398
|
|
|
@@ -316,30 +404,44 @@ data = vbt.YFData.download(symbols, period="6mo", missing_index="drop")
|
|
|
316
404
|
price = data.get("Close")
|
|
317
405
|
bbands = vbt.BBANDS.run(price)
|
|
318
406
|
|
|
407
|
+
|
|
319
408
|
def plot(index, bbands):
|
|
320
409
|
bbands = bbands.loc[index]
|
|
321
410
|
fig = vbt.make_subplots(
|
|
322
|
-
rows=2, cols=1, shared_xaxes=True, vertical_spacing=0.15,
|
|
323
|
-
|
|
411
|
+
rows=2, cols=1, shared_xaxes=True, vertical_spacing=0.15, subplot_titles=("%B", "Bandwidth")
|
|
412
|
+
)
|
|
324
413
|
fig.update_layout(showlegend=False, width=750, height=400)
|
|
325
414
|
bbands.percent_b.vbt.ts_heatmap(
|
|
326
|
-
trace_kwargs=dict(
|
|
327
|
-
|
|
328
|
-
|
|
415
|
+
trace_kwargs=dict(
|
|
416
|
+
zmin=0,
|
|
417
|
+
zmid=0.5,
|
|
418
|
+
zmax=1,
|
|
419
|
+
colorscale="Spectral",
|
|
420
|
+
colorbar=dict(y=(fig.layout.yaxis.domain[0] + fig.layout.yaxis.domain[1]) / 2, len=0.5),
|
|
421
|
+
),
|
|
422
|
+
add_trace_kwargs=dict(row=1, col=1),
|
|
423
|
+
fig=fig,
|
|
424
|
+
)
|
|
329
425
|
bbands.bandwidth.vbt.ts_heatmap(
|
|
330
|
-
trace_kwargs=dict(colorbar=dict(
|
|
331
|
-
|
|
332
|
-
|
|
426
|
+
trace_kwargs=dict(colorbar=dict(y=(fig.layout.yaxis2.domain[0] + fig.layout.yaxis2.domain[1]) / 2, len=0.5)),
|
|
427
|
+
add_trace_kwargs=dict(row=2, col=1),
|
|
428
|
+
fig=fig,
|
|
429
|
+
)
|
|
333
430
|
return fig
|
|
334
431
|
|
|
335
|
-
|
|
432
|
+
|
|
433
|
+
vbt.save_animation(
|
|
434
|
+
"bbands.gif", bbands.wrapper.index, plot, bbands, delta=90, step=3, fps=3, writer_kwargs=dict(loop=0)
|
|
435
|
+
)
|
|
336
436
|
```
|
|
337
437
|
|
|
338
|
-
|
|
438
|
+
Output:
|
|
439
|
+
|
|
440
|
+
```text
|
|
339
441
|
100%|██████████| 31/31 [00:21<00:00, 1.21it/s]
|
|
340
442
|
```
|
|
341
443
|
|
|
342
|
-
<img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_bbands.gif"
|
|
444
|
+
<img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_bbands.gif" alt="Rolling Bollinger Bands percent-B and bandwidth heatmaps" />
|
|
343
445
|
|
|
344
446
|
Visit the [website](https://vectorbt.dev/) for more examples, documentation, and guides.
|
|
345
447
|
|
|
@@ -349,7 +451,7 @@ Visit the [website](https://vectorbt.dev/) for more examples, documentation, and
|
|
|
349
451
|
|
|
350
452
|
Explore candlestick patterns interactively and backtest their signals with VectorBT.
|
|
351
453
|
|
|
352
|
-
|
|
454
|
+
<img width="900" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/readme-candlestick.gif" alt="Exploring candlestick patterns, inspecting trades, and comparing strategy statistics in the app" />
|
|
353
455
|
|
|
354
456
|
## Links
|
|
355
457
|
|
|
@@ -367,6 +469,14 @@ If you have questions or want to request a license exception, please [contact th
|
|
|
367
469
|
|
|
368
470
|
Installing optional dependencies may be subject to a more restrictive license.
|
|
369
471
|
|
|
472
|
+
## Contributors
|
|
473
|
+
|
|
474
|
+
Thanks to everyone who has contributed to VectorBT!
|
|
475
|
+
|
|
476
|
+
<a href="https://github.com/polakowo/vectorbt/graphs/contributors">
|
|
477
|
+
<img src="https://contrib.rocks/image?repo=polakowo/vectorbt" alt="VectorBT contributors" />
|
|
478
|
+
</a>
|
|
479
|
+
|
|
370
480
|
## Star History
|
|
371
481
|
|
|
372
482
|
<a href="https://www.star-history.com/?repos=polakowo%2Fvectorbt&type=timeline&legend=top-left">
|
|
@@ -44,13 +44,21 @@
|
|
|
44
44
|
</a>
|
|
45
45
|
</p>
|
|
46
46
|
|
|
47
|
-
<
|
|
47
|
+
<p align="center">
|
|
48
|
+
<a href="https://github.com/polakowo/vectorbt/blob/master/README.zh-CN.md">简体中文</a> / <b>English</b> |
|
|
49
|
+
<a href="#features">Features</a> ·
|
|
50
|
+
<a href="#installation">Installation</a> ·
|
|
51
|
+
<a href="#examples">Examples</a> ·
|
|
52
|
+
<a href="#links">Links</a>
|
|
53
|
+
</p>
|
|
48
54
|
|
|
49
|
-
<
|
|
55
|
+
<h2 align="center">Trading research at scale.</h2>
|
|
56
|
+
|
|
57
|
+
<p align="center">VectorBT is a Python toolkit for trading research. Explore market data, build indicators and signals, and compare thousands of ideas across assets and timeframes. NumPy arrays, Numba acceleration, and an optional Rust engine let you run large experiments in a few lines of Python.</p>
|
|
50
58
|
|
|
51
59
|
---
|
|
52
60
|
|
|
53
|
-
|
|
61
|
+
Move from exploring price patterns to evaluating strategies in one workflow. Inspect trades, fees, drawdowns, and portfolio performance, then explore the results with interactive charts. Built for traders, researchers, and AI agents, VectorBT brings data analysis, strategy simulation, and visualization together in a composable Python API.
|
|
54
62
|
|
|
55
63
|
VectorBT is the open-source community edition of [VectorBT PRO](https://vectorbt.pro/).
|
|
56
64
|
PRO extends the library with parallelization, additional data integrations, portfolio optimization,
|
|
@@ -62,18 +70,80 @@ See [VectorBT vs PRO](https://vectorbt.dev/getting-started/upgrade/) or browse
|
|
|
62
70
|
|
|
63
71
|
## Features
|
|
64
72
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
|
|
73
|
+
<table>
|
|
74
|
+
<tr>
|
|
75
|
+
<td width="50%" valign="top">
|
|
76
|
+
<h3>Fast, vectorized backtesting</h3>
|
|
77
|
+
<p>Research strategies at scale with pandas, NumPy, and Numba.</p>
|
|
78
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#fast-vectorized-backtesting">Backtesting examples →</a></p>
|
|
79
|
+
</td>
|
|
80
|
+
<td width="50%" valign="top">
|
|
81
|
+
<h3>Optional Rust engine</h3>
|
|
82
|
+
<p>Use precompiled kernels for supported operations without JIT compilation.</p>
|
|
83
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#optional-rust-engine">Rust engine →</a></p>
|
|
84
|
+
</td>
|
|
85
|
+
</tr>
|
|
86
|
+
<tr>
|
|
87
|
+
<td width="50%" valign="top">
|
|
88
|
+
<h3>Pandas-native API</h3>
|
|
89
|
+
<p>Work with custom accessors and high-performance operations directly on pandas objects.</p>
|
|
90
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#pandas-native-api">Pandas integration →</a></p>
|
|
91
|
+
</td>
|
|
92
|
+
<td width="50%" valign="top">
|
|
93
|
+
<h3>Flexible broadcasting</h3>
|
|
94
|
+
<p>Analyze multiple assets and sweep large parameter grids with flexible array broadcasting.</p>
|
|
95
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#flexible-broadcasting">Broadcasting API →</a></p>
|
|
96
|
+
</td>
|
|
97
|
+
</tr>
|
|
98
|
+
<tr>
|
|
99
|
+
<td width="50%" valign="top">
|
|
100
|
+
<h3>Rich indicator ecosystem</h3>
|
|
101
|
+
<p>Build custom indicators and use integrations for TA-Lib, Pandas TA, and more.</p>
|
|
102
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#rich-indicator-ecosystem">Indicator features →</a></p>
|
|
103
|
+
</td>
|
|
104
|
+
<td width="50%" valign="top">
|
|
105
|
+
<h3>Portfolio backtesting</h3>
|
|
106
|
+
<p>Analyze trades, drawdowns, and performance, with QuantStats integration.</p>
|
|
107
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#portfolio-backtesting">Portfolio analysis →</a></p>
|
|
108
|
+
</td>
|
|
109
|
+
</tr>
|
|
110
|
+
<tr>
|
|
111
|
+
<td width="50%" valign="top">
|
|
112
|
+
<h3>Signal tooling</h3>
|
|
113
|
+
<p>Generate, rank, map, and analyze the distribution of trading signals.</p>
|
|
114
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#signal-tooling">Signal features →</a></p>
|
|
115
|
+
</td>
|
|
116
|
+
<td width="50%" valign="top">
|
|
117
|
+
<h3>Built-in data access</h3>
|
|
118
|
+
<p>Fetch market data, preprocess it, and generate synthetic time series.</p>
|
|
119
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#built-in-data-access">Data features →</a></p>
|
|
120
|
+
</td>
|
|
121
|
+
</tr>
|
|
122
|
+
<tr>
|
|
123
|
+
<td width="50%" valign="top">
|
|
124
|
+
<h3>Robustness testing</h3>
|
|
125
|
+
<p>Run walk-forward optimization and generate labels for machine learning workflows.</p>
|
|
126
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#robustness-testing">Robustness testing →</a></p>
|
|
127
|
+
</td>
|
|
128
|
+
<td width="50%" valign="top">
|
|
129
|
+
<h3>Interactive visualization</h3>
|
|
130
|
+
<p>Explore results with Plotly charts, Jupyter widgets, and browser dashboards.</p>
|
|
131
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#interactive-visualization">Plotting features →</a></p>
|
|
132
|
+
</td>
|
|
133
|
+
</tr>
|
|
134
|
+
<tr>
|
|
135
|
+
<td width="50%" valign="top">
|
|
136
|
+
<h3>Automation tools</h3>
|
|
137
|
+
<p>Schedule data updates and send Telegram notifications.</p>
|
|
138
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#automation-tools">Scheduling and notifications →</a></p>
|
|
139
|
+
</td>
|
|
140
|
+
<td width="50%" valign="top">
|
|
141
|
+
<h3>Composable Python API</h3>
|
|
142
|
+
<p>Combine building blocks for rapid experimentation and AI agent-driven workflows.</p>
|
|
143
|
+
<p><a href="https://vectorbt.dev/getting-started/features/#composable-python-api">Python workflows →</a></p>
|
|
144
|
+
</td>
|
|
145
|
+
</tr>
|
|
146
|
+
</table>
|
|
77
147
|
|
|
78
148
|
## Installation
|
|
79
149
|
|
|
@@ -113,7 +183,9 @@ pf = vbt.Portfolio.from_holding(price, init_cash=100)
|
|
|
113
183
|
print(pf.total_profit())
|
|
114
184
|
```
|
|
115
185
|
|
|
116
|
-
|
|
186
|
+
Output:
|
|
187
|
+
|
|
188
|
+
```text
|
|
117
189
|
19501.10906763755
|
|
118
190
|
```
|
|
119
191
|
|
|
@@ -129,7 +201,9 @@ pf = vbt.Portfolio.from_signals(price, entries, exits, init_cash=100)
|
|
|
129
201
|
print(pf.total_profit())
|
|
130
202
|
```
|
|
131
203
|
|
|
132
|
-
|
|
204
|
+
Output:
|
|
205
|
+
|
|
206
|
+
```text
|
|
133
207
|
34417.80960086067
|
|
134
208
|
```
|
|
135
209
|
|
|
@@ -157,7 +231,9 @@ fig = mean_expectancy.unstack().vbt.scatterplot(xaxis_title="randnx_n", yaxis_ti
|
|
|
157
231
|
fig.show()
|
|
158
232
|
```
|
|
159
233
|
|
|
160
|
-
|
|
234
|
+
Output:
|
|
235
|
+
|
|
236
|
+
<img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_rand_scatter.svg" alt="Random-strategy mean trade expectancy" />
|
|
161
237
|
|
|
162
238
|
### Test 10,000 dual-SMA window combinations
|
|
163
239
|
|
|
@@ -174,12 +250,18 @@ exits = fast_ma.ma_crossed_below(slow_ma)
|
|
|
174
250
|
pf = vbt.Portfolio.from_signals(price, entries, exits, size=np.inf, fees=0.001, freq="1D")
|
|
175
251
|
|
|
176
252
|
fig = pf.total_return().vbt.heatmap(
|
|
177
|
-
x_level="fast_window",
|
|
178
|
-
|
|
253
|
+
x_level="fast_window",
|
|
254
|
+
y_level="slow_window",
|
|
255
|
+
slider_level="symbol",
|
|
256
|
+
symmetric=True,
|
|
257
|
+
trace_kwargs=dict(colorbar=dict(title="Total return", tickformat="%")),
|
|
258
|
+
)
|
|
179
259
|
fig.show()
|
|
180
260
|
```
|
|
181
261
|
|
|
182
|
-
|
|
262
|
+
Output:
|
|
263
|
+
|
|
264
|
+
<img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_dmac_heatmap.gif" alt="Dual-SMA window combinations across assets" />
|
|
183
265
|
|
|
184
266
|
> [!TIP]
|
|
185
267
|
> **VectorBT PRO**
|
|
@@ -196,7 +278,9 @@ fig.show()
|
|
|
196
278
|
print(pf[(10, 20, "ETH-USD")].stats())
|
|
197
279
|
```
|
|
198
280
|
|
|
199
|
-
|
|
281
|
+
Output:
|
|
282
|
+
|
|
283
|
+
```text
|
|
200
284
|
Start 2017-11-09 00:00:00+00:00
|
|
201
285
|
End 2026-01-03 00:00:00+00:00
|
|
202
286
|
Period 2978 days 00:00:00
|
|
@@ -234,7 +318,9 @@ Name: (10, 20, ETH-USD), dtype: object
|
|
|
234
318
|
pf[(10, 20, "ETH-USD")].plot().show()
|
|
235
319
|
```
|
|
236
320
|
|
|
237
|
-
|
|
321
|
+
Output:
|
|
322
|
+
|
|
323
|
+
<img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/readme-portfolio.gif" alt="Inspecting trades, zooming, and toggling the portfolio benchmark" />
|
|
238
324
|
|
|
239
325
|
### Animate Bollinger Bands across multiple symbols
|
|
240
326
|
|
|
@@ -246,30 +332,44 @@ data = vbt.YFData.download(symbols, period="6mo", missing_index="drop")
|
|
|
246
332
|
price = data.get("Close")
|
|
247
333
|
bbands = vbt.BBANDS.run(price)
|
|
248
334
|
|
|
335
|
+
|
|
249
336
|
def plot(index, bbands):
|
|
250
337
|
bbands = bbands.loc[index]
|
|
251
338
|
fig = vbt.make_subplots(
|
|
252
|
-
rows=2, cols=1, shared_xaxes=True, vertical_spacing=0.15,
|
|
253
|
-
|
|
339
|
+
rows=2, cols=1, shared_xaxes=True, vertical_spacing=0.15, subplot_titles=("%B", "Bandwidth")
|
|
340
|
+
)
|
|
254
341
|
fig.update_layout(showlegend=False, width=750, height=400)
|
|
255
342
|
bbands.percent_b.vbt.ts_heatmap(
|
|
256
|
-
trace_kwargs=dict(
|
|
257
|
-
|
|
258
|
-
|
|
343
|
+
trace_kwargs=dict(
|
|
344
|
+
zmin=0,
|
|
345
|
+
zmid=0.5,
|
|
346
|
+
zmax=1,
|
|
347
|
+
colorscale="Spectral",
|
|
348
|
+
colorbar=dict(y=(fig.layout.yaxis.domain[0] + fig.layout.yaxis.domain[1]) / 2, len=0.5),
|
|
349
|
+
),
|
|
350
|
+
add_trace_kwargs=dict(row=1, col=1),
|
|
351
|
+
fig=fig,
|
|
352
|
+
)
|
|
259
353
|
bbands.bandwidth.vbt.ts_heatmap(
|
|
260
|
-
trace_kwargs=dict(colorbar=dict(
|
|
261
|
-
|
|
262
|
-
|
|
354
|
+
trace_kwargs=dict(colorbar=dict(y=(fig.layout.yaxis2.domain[0] + fig.layout.yaxis2.domain[1]) / 2, len=0.5)),
|
|
355
|
+
add_trace_kwargs=dict(row=2, col=1),
|
|
356
|
+
fig=fig,
|
|
357
|
+
)
|
|
263
358
|
return fig
|
|
264
359
|
|
|
265
|
-
|
|
360
|
+
|
|
361
|
+
vbt.save_animation(
|
|
362
|
+
"bbands.gif", bbands.wrapper.index, plot, bbands, delta=90, step=3, fps=3, writer_kwargs=dict(loop=0)
|
|
363
|
+
)
|
|
266
364
|
```
|
|
267
365
|
|
|
268
|
-
|
|
366
|
+
Output:
|
|
367
|
+
|
|
368
|
+
```text
|
|
269
369
|
100%|██████████| 31/31 [00:21<00:00, 1.21it/s]
|
|
270
370
|
```
|
|
271
371
|
|
|
272
|
-
<img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_bbands.gif"
|
|
372
|
+
<img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_bbands.gif" alt="Rolling Bollinger Bands percent-B and bandwidth heatmaps" />
|
|
273
373
|
|
|
274
374
|
Visit the [website](https://vectorbt.dev/) for more examples, documentation, and guides.
|
|
275
375
|
|
|
@@ -279,7 +379,7 @@ Visit the [website](https://vectorbt.dev/) for more examples, documentation, and
|
|
|
279
379
|
|
|
280
380
|
Explore candlestick patterns interactively and backtest their signals with VectorBT.
|
|
281
381
|
|
|
282
|
-
|
|
382
|
+
<img width="900" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/readme-candlestick.gif" alt="Exploring candlestick patterns, inspecting trades, and comparing strategy statistics in the app" />
|
|
283
383
|
|
|
284
384
|
## Links
|
|
285
385
|
|
|
@@ -297,6 +397,14 @@ If you have questions or want to request a license exception, please [contact th
|
|
|
297
397
|
|
|
298
398
|
Installing optional dependencies may be subject to a more restrictive license.
|
|
299
399
|
|
|
400
|
+
## Contributors
|
|
401
|
+
|
|
402
|
+
Thanks to everyone who has contributed to VectorBT!
|
|
403
|
+
|
|
404
|
+
<a href="https://github.com/polakowo/vectorbt/graphs/contributors">
|
|
405
|
+
<img src="https://contrib.rocks/image?repo=polakowo/vectorbt" alt="VectorBT contributors" />
|
|
406
|
+
</a>
|
|
407
|
+
|
|
300
408
|
## Star History
|
|
301
409
|
|
|
302
410
|
<a href="https://www.star-history.com/?repos=polakowo%2Fvectorbt&type=timeline&legend=top-left">
|
|
@@ -32,6 +32,7 @@ dependencies = [
|
|
|
32
32
|
"scipy",
|
|
33
33
|
"matplotlib",
|
|
34
34
|
"plotly>=4.12.0",
|
|
35
|
+
"nbformat>=4.2.0",
|
|
35
36
|
"ipywidgets>=7.0.0",
|
|
36
37
|
"anywidget",
|
|
37
38
|
"numba>=0.66",
|
|
@@ -48,7 +49,7 @@ dependencies = [
|
|
|
48
49
|
|
|
49
50
|
[project.optional-dependencies]
|
|
50
51
|
rust = [
|
|
51
|
-
"vectorbt-rust==1.1
|
|
52
|
+
"vectorbt-rust==1.2.1",
|
|
52
53
|
]
|
|
53
54
|
full = [
|
|
54
55
|
"TA-Lib",
|
|
@@ -61,6 +62,7 @@ full = [
|
|
|
61
62
|
"pandas-ta-classic",
|
|
62
63
|
"python-telegram-bot>=13.4",
|
|
63
64
|
"quantstats>=0.0.37",
|
|
65
|
+
"kaleido>=1",
|
|
64
66
|
]
|
|
65
67
|
test = [
|
|
66
68
|
"pytest",
|
|
File without changes
|