vectorbt 1.0.0__tar.gz → 1.1.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.
Files changed (124) hide show
  1. {vectorbt-1.0.0/vectorbt.egg-info → vectorbt-1.1.1}/PKG-INFO +70 -48
  2. {vectorbt-1.0.0 → vectorbt-1.1.1}/README.md +51 -26
  3. {vectorbt-1.0.0 → vectorbt-1.1.1}/pyproject.toml +13 -17
  4. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_data.py +21 -0
  5. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_engine.py +139 -31
  6. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_generic.py +48 -0
  7. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_indicators.py +15 -11
  8. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_plotting.py +8 -2
  9. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_portfolio.py +79 -2
  10. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_records.py +53 -2
  11. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_returns.py +43 -3
  12. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_signals.py +6 -6
  13. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_utils.py +1 -2
  14. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/_settings.py +2 -1
  15. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/_version.py +1 -1
  16. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/base/array_wrapper.py +11 -4
  17. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/base/combine_fns.py +8 -4
  18. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/base/indexing.py +16 -4
  19. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/base/reshape_fns.py +10 -1
  20. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/data/base.py +13 -1
  21. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/data/custom.py +10 -1
  22. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/data/updater.py +9 -1
  23. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/accessors.py +15 -1
  24. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/nb.py +98 -36
  25. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/ranges.py +6 -0
  26. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/splitters.py +9 -1
  27. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/indicators/basic.py +7 -0
  28. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/indicators/factory.py +7 -0
  29. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/messaging/__init__.py +2 -10
  30. vectorbt-1.1.1/vectorbt/messaging/telegram.py +794 -0
  31. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/portfolio/base.py +34 -1
  32. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/portfolio/dispatch.py +8 -0
  33. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/portfolio/nb.py +89 -15
  34. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/portfolio/trades.py +11 -4
  35. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/records/base.py +1 -1
  36. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/records/mapped_array.py +8 -1
  37. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/records/nb.py +113 -3
  38. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/returns/accessors.py +8 -7
  39. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/returns/metrics.py +3 -1
  40. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/returns/nb.py +4 -0
  41. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/signals/accessors.py +7 -0
  42. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/signals/nb.py +2 -0
  43. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/templates/dark.json +1 -15
  44. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/templates/light.json +1 -15
  45. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/templates/seaborn.json +1 -4
  46. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/config.py +9 -1
  47. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/datetime_.py +11 -1
  48. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/decorators.py +9 -1
  49. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/mapping.py +37 -14
  50. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/params.py +10 -1
  51. {vectorbt-1.0.0 → vectorbt-1.1.1/vectorbt.egg-info}/PKG-INFO +70 -48
  52. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt.egg-info/requires.txt +8 -12
  53. vectorbt-1.0.0/vectorbt/messaging/telegram.py +0 -373
  54. {vectorbt-1.0.0 → vectorbt-1.1.1}/LICENSE.md +0 -0
  55. {vectorbt-1.0.0 → vectorbt-1.1.1}/MANIFEST.in +0 -0
  56. {vectorbt-1.0.0 → vectorbt-1.1.1}/setup.cfg +0 -0
  57. {vectorbt-1.0.0 → vectorbt-1.1.1}/setup.py +0 -0
  58. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_base.py +0 -0
  59. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_labels.py +0 -0
  60. {vectorbt-1.0.0 → vectorbt-1.1.1}/tests/test_settings.py +0 -0
  61. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/__init__.py +0 -0
  62. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/_engine.py +0 -0
  63. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/_typing.py +0 -0
  64. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/base/__init__.py +0 -0
  65. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/base/accessors.py +0 -0
  66. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/base/column_grouper.py +0 -0
  67. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/base/index_fns.py +0 -0
  68. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/data/__init__.py +0 -0
  69. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/__init__.py +0 -0
  70. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/decorators.py +0 -0
  71. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/dispatch.py +0 -0
  72. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/drawdowns.py +0 -0
  73. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/enums.py +0 -0
  74. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/plots_builder.py +0 -0
  75. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/plotting.py +0 -0
  76. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/generic/stats_builder.py +0 -0
  77. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/indicators/__init__.py +0 -0
  78. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/indicators/configs.py +0 -0
  79. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/indicators/dispatch.py +0 -0
  80. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/indicators/nb.py +0 -0
  81. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/labels/__init__.py +0 -0
  82. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/labels/dispatch.py +0 -0
  83. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/labels/enums.py +0 -0
  84. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/labels/generators.py +0 -0
  85. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/labels/nb.py +0 -0
  86. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/ohlcv_accessors.py +0 -0
  87. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/portfolio/__init__.py +0 -0
  88. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/portfolio/decorators.py +0 -0
  89. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/portfolio/enums.py +0 -0
  90. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/portfolio/logs.py +0 -0
  91. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/portfolio/orders.py +0 -0
  92. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/px_accessors.py +0 -0
  93. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/records/__init__.py +0 -0
  94. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/records/col_mapper.py +0 -0
  95. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/records/decorators.py +0 -0
  96. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/records/dispatch.py +0 -0
  97. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/returns/__init__.py +0 -0
  98. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/returns/dispatch.py +0 -0
  99. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/returns/qs_adapter.py +0 -0
  100. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/root_accessors.py +0 -0
  101. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/signals/__init__.py +0 -0
  102. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/signals/dispatch.py +0 -0
  103. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/signals/enums.py +0 -0
  104. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/signals/factory.py +0 -0
  105. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/signals/generators.py +0 -0
  106. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/__init__.py +0 -0
  107. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/array_.py +0 -0
  108. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/attr_.py +0 -0
  109. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/checks.py +0 -0
  110. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/colors.py +0 -0
  111. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/docs.py +0 -0
  112. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/enum_.py +0 -0
  113. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/figure.py +0 -0
  114. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/image_.py +0 -0
  115. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/math_.py +0 -0
  116. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/module_.py +0 -0
  117. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/random_.py +0 -0
  118. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/requests_.py +0 -0
  119. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/schedule_.py +0 -0
  120. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/tags.py +0 -0
  121. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt/utils/template.py +0 -0
  122. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt.egg-info/SOURCES.txt +0 -0
  123. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt.egg-info/dependency_links.txt +0 -0
  124. {vectorbt-1.0.0 → vectorbt-1.1.1}/vectorbt.egg-info/top_level.txt +0 -0
@@ -1,32 +1,32 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vectorbt
3
- Version: 1.0.0
3
+ Version: 1.1.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
7
7
  Classifier: Development Status :: 5 - Production/Stable
8
8
  Classifier: Intended Audience :: Developers
9
9
  Classifier: Intended Audience :: Financial and Insurance Industry
10
- Classifier: Programming Language :: Python :: 3.10
11
10
  Classifier: Programming Language :: Python :: 3.11
12
11
  Classifier: Programming Language :: Python :: 3.12
13
12
  Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
14
14
  Classifier: Operating System :: OS Independent
15
15
  Classifier: Intended Audience :: Science/Research
16
16
  Classifier: Topic :: Software Development
17
17
  Classifier: Topic :: Office/Business :: Financial
18
18
  Classifier: Topic :: Scientific/Engineering :: Information Analysis
19
- Requires-Python: >=3.10
19
+ Requires-Python: <3.15,>=3.11
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE.md
22
- Requires-Dist: numpy>=1.23
23
- Requires-Dist: pandas<3.0,>=2.0
22
+ Requires-Dist: numpy>=2.4.6
23
+ 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
27
  Requires-Dist: ipywidgets>=7.0.0
28
28
  Requires-Dist: anywidget
29
- Requires-Dist: numba>=0.60
29
+ Requires-Dist: numba>=0.66
30
30
  Requires-Dist: dill
31
31
  Requires-Dist: tqdm
32
32
  Requires-Dist: dateparser
@@ -37,20 +37,18 @@ Requires-Dist: requests
37
37
  Requires-Dist: pytz
38
38
  Requires-Dist: mypy_extensions
39
39
  Provides-Extra: rust
40
- Requires-Dist: vectorbt-rust==1.0.0; extra == "rust"
41
- Provides-Extra: full-no-talib
42
- Requires-Dist: yfinance>=0.2.22; extra == "full-no-talib"
43
- Requires-Dist: python-binance; extra == "full-no-talib"
44
- Requires-Dist: ccxt>=4.0.14; extra == "full-no-talib"
45
- Requires-Dist: alpaca-py; extra == "full-no-talib"
46
- Requires-Dist: ray>=1.4.1; extra == "full-no-talib"
47
- Requires-Dist: ta; extra == "full-no-talib"
48
- Requires-Dist: pandas-ta-classic; extra == "full-no-talib"
49
- Requires-Dist: python-telegram-bot<20.0,>=13.4; extra == "full-no-talib"
50
- Requires-Dist: quantstats>=0.0.37; extra == "full-no-talib"
40
+ Requires-Dist: vectorbt-rust==1.1.1; extra == "rust"
51
41
  Provides-Extra: full
52
- Requires-Dist: vectorbt[full-no-talib]; extra == "full"
53
42
  Requires-Dist: TA-Lib; extra == "full"
43
+ Requires-Dist: yfinance>=0.2.22; extra == "full"
44
+ Requires-Dist: python-binance; extra == "full"
45
+ Requires-Dist: ccxt>=4.0.14; extra == "full"
46
+ Requires-Dist: alpaca-py; extra == "full"
47
+ Requires-Dist: ray>=1.4.1; extra == "full"
48
+ Requires-Dist: ta; extra == "full"
49
+ Requires-Dist: pandas-ta-classic; extra == "full"
50
+ Requires-Dist: python-telegram-bot>=13.4; extra == "full"
51
+ Requires-Dist: quantstats>=0.0.37; extra == "full"
54
52
  Provides-Extra: test
55
53
  Requires-Dist: pytest; extra == "test"
56
54
  Requires-Dist: pytest-cov; extra == "test"
@@ -58,11 +56,10 @@ Requires-Dist: pytest-xdist; extra == "test"
58
56
  Requires-Dist: codecov; extra == "test"
59
57
  Provides-Extra: test-rust
60
58
  Requires-Dist: vectorbt[test]; extra == "test-rust"
61
- Requires-Dist: maturin<2.0,>=1.7; extra == "test-rust"
59
+ Requires-Dist: maturin<2.0,>=1.14; extra == "test-rust"
62
60
  Provides-Extra: docs
63
- Requires-Dist: mkdocs-material; extra == "docs"
64
- Requires-Dist: mkdocs-minify-plugin; extra == "docs"
65
- Requires-Dist: ruamel.yaml; extra == "docs"
61
+ Requires-Dist: zensical>=0.0.62; extra == "docs"
62
+ Requires-Dist: tomlkit>=0.13; extra == "docs"
66
63
  Requires-Dist: mako; extra == "docs"
67
64
  Provides-Extra: all
68
65
  Requires-Dist: vectorbt[rust]; extra == "all"
@@ -86,41 +83,38 @@ Dynamic: license-file
86
83
 
87
84
  <p align="center">
88
85
  <a href="https://pepy.tech/project/vectorbt" title="Downloads">
89
- <img src="https://pepy.tech/badge/vectorbt" />
86
+ <img src="https://img.shields.io/pepy/dt/vectorbt?label=downloads&color=blue" />
90
87
  </a>
91
- <a href="https://github.com/polakowo/vectorbt/stargazers" title="Stars">
92
- <img src="https://img.shields.io/github/stars/polakowo/vectorbt?style=flat" />
88
+ <a href="https://pypi.org/project/vectorbt" title="PyPI">
89
+ <img src="https://img.shields.io/pypi/v/vectorbt" />
93
90
  </a>
94
- <a href="https://github.com/polakowo/vectorbt/network/members" title="Forks">
95
- <img src="https://img.shields.io/github/forks/polakowo/vectorbt?style=flat" />
91
+ <a href="https://pypi.org/project/vectorbt" title="Supported Python versions">
92
+ <img src="https://img.shields.io/pypi/pyversions/vectorbt" />
96
93
  </a>
97
- <a href="https://github.com/polakowo/vectorbt/graphs/contributors" title="Contributors">
98
- <img src="https://img.shields.io/github/contributors/polakowo/vectorbt?style=flat" />
94
+ <a href="https://hub.docker.com/r/polakowo/vectorbt" title="Docker image version">
95
+ <img src="https://img.shields.io/docker/v/polakowo/vectorbt?sort=semver&label=docker&color=2496ed&logo=docker&logoColor=white" />
99
96
  </a>
100
- <a href="https://pypi.org/project/vectorbt" title="PyPI">
101
- <img src="https://img.shields.io/pypi/v/vectorbt?color=blueviolet" />
97
+ <a href="https://hub.docker.com/r/polakowo/vectorbt" title="Docker pulls">
98
+ <img src="https://img.shields.io/docker/pulls/polakowo/vectorbt?label=docker%20pulls&color=2496ed&logo=docker&logoColor=white" />
102
99
  </a>
103
- <a href="https://github.com/polakowo/vectorbt/blob/master/LICENSE.md" title="License">
104
- <img src="https://img.shields.io/badge/license-Fair%20Code-yellow" />
100
+ <a href="https://github.com/polakowo/vectorbt/actions/workflows/tests.yml" title="Tests">
101
+ <img src="https://img.shields.io/github/actions/workflow/status/polakowo/vectorbt/tests.yml?branch=master&label=tests&logo=githubactions&logoColor=white" />
105
102
  </a>
106
- <a href="https://codecov.io/gh/polakowo/vectorbt" title="codecov">
107
- <img src="https://codecov.io/gh/polakowo/vectorbt/branch/master/graph/badge.svg?token=YTLNAI7PS3" />
103
+ <a href="https://github.com/polakowo/vectorbt/actions/workflows/pypi.yml" title="PyPI release">
104
+ <img src="https://img.shields.io/github/actions/workflow/status/polakowo/vectorbt/pypi.yml?label=release&logo=githubactions&logoColor=white" />
108
105
  </a>
109
106
  <a href="https://vectorbt.dev/" title="Website">
110
- <img src="https://img.shields.io/website?url=https://vectorbt.dev/" />
111
- </a>
112
- <a href="https://mybinder.org/v2/gh/polakowo/vectorbt/HEAD?urlpath=lab" title="Launch Binder">
113
- <img src="https://img.shields.io/badge/launch-binder-d6604a" />
107
+ <img src="https://img.shields.io/website?url=https%3A%2F%2Fvectorbt.dev%2F&label=website" />
114
108
  </a>
115
- <a href="https://gitter.im/vectorbt/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge" title="Join the chat">
116
- <img src="https://badges.gitter.im/vectorbt.svg" />
109
+ <a href="https://pypi.org/project/vectorbt-rust" title="Rust engine">
110
+ <img src="https://img.shields.io/pypi/v/vectorbt-rust?label=rust%20engine&color=dea584&logo=rust" />
117
111
  </a>
118
- <a href="https://pypi.org/project/vectorbt" title="Supported Python versions">
119
- <img src="https://img.shields.io/pypi/pyversions/vectorbt.svg?logo=python&logoColor=white" />
112
+ <a href="https://github.com/polakowo/vectorbt/blob/master/LICENSE.md" title="License">
113
+ <img src="https://img.shields.io/badge/license-Fair%20Code-yellow" />
120
114
  </a>
121
115
  </p>
122
116
 
123
- <h3 align="center"><b>Thinks in matrices. Backtests at scale.</b></h3>
117
+ <h3 align="center"><b>Thinks in matrices, backtests at scale.</b></h3>
124
118
 
125
119
  <p align="center">VectorBT takes a radically different approach to backtesting: instead of looping through bars one strategy at a time, it packs thousands of configurations into NumPy arrays, accelerates the hot path with Numba and Rust, and runs them all at once, turning hours of grid search into seconds.</p>
126
120
 
@@ -128,7 +122,13 @@ Dynamic: license-file
128
122
 
129
123
  Explore thousands of trading ideas across assets and timeframes, analyze portfolio performance down to individual trades, and visualize results interactively, all in a few lines of code. Built for both human researchers and AI agents, VectorBT combines large-scale experimentation with a mature, battle-tested backtesting stack refined through years of community use.
130
124
 
131
- VectorBT is the open-source community edition of [VectorBT PRO](https://vectorbt.pro/), a state-of-the-art hybrid backtesting library.
125
+ VectorBT is the open-source community edition of [VectorBT PRO](https://vectorbt.pro/).
126
+ PRO extends the library with parallelization, additional data integrations, portfolio optimization,
127
+ pattern recognition, event projections, limit orders, leverage, and over 100 other features,
128
+ with new features added weekly.
129
+
130
+ See [VectorBT vs PRO](https://vectorbt.dev/getting-started/upgrade/) or browse
131
+ [PRO feature examples](https://vectorbt.pro/features/).
132
132
 
133
133
  ## Features
134
134
 
@@ -203,6 +203,13 @@ print(pf.total_profit())
203
203
  34417.80960086067
204
204
  ```
205
205
 
206
+ > [!TIP]
207
+ > **VectorBT PRO**
208
+ >
209
+ > Simulate [limit orders](https://vectorbt.pro/features/portfolio/#limit-orders),
210
+ > use [leverage](https://vectorbt.pro/features/portfolio/#leverage), and model futures with
211
+ > [contract multipliers](https://vectorbt.pro/features/portfolio/#contract-multiplier).
212
+
206
213
  ### Generate 1,000 random strategies
207
214
 
208
215
  ```python
@@ -244,6 +251,15 @@ fig.show()
244
251
 
245
252
  <img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_dmac_heatmap.gif">
246
253
 
254
+ > [!TIP]
255
+ > **VectorBT PRO**
256
+ >
257
+ > Use [random search](https://vectorbt.pro/features/optimization/#random-search) to sample a large
258
+ > parameter grid, or [conditional parameters](https://vectorbt.pro/features/optimization/#conditional-parameters)
259
+ > to exclude combinations such as a fast MA window longer than the slow MA window. The
260
+ > [cross-validation tutorial](https://vectorbt.pro/tutorials/cross-validation/)
261
+ > shows how to select parameters on training data and evaluate them on later periods.
262
+
247
263
  ### Inspect any strategy configuration
248
264
 
249
265
  ```python
@@ -325,7 +341,7 @@ vbt.save_animation("bbands.gif", bbands.wrapper.index, plot, bbands, delta=90, s
325
341
 
326
342
  <img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_bbands.gif">
327
343
 
328
- Visit the website[website](https://vectorbt.dev/) for more examples, documentation, and guides.
344
+ Visit the [website](https://vectorbt.dev/) for more examples, documentation, and guides.
329
345
 
330
346
  ## Example apps
331
347
 
@@ -351,9 +367,15 @@ If you have questions or want to request a license exception, please [contact th
351
367
 
352
368
  Installing optional dependencies may be subject to a more restrictive license.
353
369
 
354
- ## Star history
370
+ ## Star History
355
371
 
356
- [![Star History Chart](https://api.star-history.com/svg?repos=polakowo/vectorbt&type=Timeline)](https://star-history.com/#polakowo/vectorbt&Timeline)
372
+ <a href="https://www.star-history.com/?repos=polakowo%2Fvectorbt&type=timeline&legend=top-left">
373
+ <picture>
374
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=polakowo/vectorbt&type=timeline&theme=dark&legend=top-left&sealed_token=482an5rek002Q4c3VCaRd7goV3LwR6GP6m56UOqTunBJKoEq19_RkbQldrL-OP4f5XnDtU9tOOTrs-NTtnqFoQoUZJdWPQEQ-eO2q1McxpYu-STLc1fj9tY60p-spkcSQ9bxs7WJkumrqYI1LSc3mBd7CIu2K7IuYNAgv1pYuFJOQaN1yD5p3wWNgcFM" />
375
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=polakowo/vectorbt&type=timeline&legend=top-left&sealed_token=482an5rek002Q4c3VCaRd7goV3LwR6GP6m56UOqTunBJKoEq19_RkbQldrL-OP4f5XnDtU9tOOTrs-NTtnqFoQoUZJdWPQEQ-eO2q1McxpYu-STLc1fj9tY60p-spkcSQ9bxs7WJkumrqYI1LSc3mBd7CIu2K7IuYNAgv1pYuFJOQaN1yD5p3wWNgcFM" />
376
+ <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=polakowo/vectorbt&type=timeline&legend=top-left&sealed_token=482an5rek002Q4c3VCaRd7goV3LwR6GP6m56UOqTunBJKoEq19_RkbQldrL-OP4f5XnDtU9tOOTrs-NTtnqFoQoUZJdWPQEQ-eO2q1McxpYu-STLc1fj9tY60p-spkcSQ9bxs7WJkumrqYI1LSc3mBd7CIu2K7IuYNAgv1pYuFJOQaN1yD5p3wWNgcFM" />
377
+ </picture>
378
+ </a>
357
379
 
358
380
  ## Disclaimer
359
381
 
@@ -13,41 +13,38 @@
13
13
 
14
14
  <p align="center">
15
15
  <a href="https://pepy.tech/project/vectorbt" title="Downloads">
16
- <img src="https://pepy.tech/badge/vectorbt" />
16
+ <img src="https://img.shields.io/pepy/dt/vectorbt?label=downloads&color=blue" />
17
17
  </a>
18
- <a href="https://github.com/polakowo/vectorbt/stargazers" title="Stars">
19
- <img src="https://img.shields.io/github/stars/polakowo/vectorbt?style=flat" />
18
+ <a href="https://pypi.org/project/vectorbt" title="PyPI">
19
+ <img src="https://img.shields.io/pypi/v/vectorbt" />
20
20
  </a>
21
- <a href="https://github.com/polakowo/vectorbt/network/members" title="Forks">
22
- <img src="https://img.shields.io/github/forks/polakowo/vectorbt?style=flat" />
21
+ <a href="https://pypi.org/project/vectorbt" title="Supported Python versions">
22
+ <img src="https://img.shields.io/pypi/pyversions/vectorbt" />
23
23
  </a>
24
- <a href="https://github.com/polakowo/vectorbt/graphs/contributors" title="Contributors">
25
- <img src="https://img.shields.io/github/contributors/polakowo/vectorbt?style=flat" />
24
+ <a href="https://hub.docker.com/r/polakowo/vectorbt" title="Docker image version">
25
+ <img src="https://img.shields.io/docker/v/polakowo/vectorbt?sort=semver&label=docker&color=2496ed&logo=docker&logoColor=white" />
26
26
  </a>
27
- <a href="https://pypi.org/project/vectorbt" title="PyPI">
28
- <img src="https://img.shields.io/pypi/v/vectorbt?color=blueviolet" />
27
+ <a href="https://hub.docker.com/r/polakowo/vectorbt" title="Docker pulls">
28
+ <img src="https://img.shields.io/docker/pulls/polakowo/vectorbt?label=docker%20pulls&color=2496ed&logo=docker&logoColor=white" />
29
29
  </a>
30
- <a href="https://github.com/polakowo/vectorbt/blob/master/LICENSE.md" title="License">
31
- <img src="https://img.shields.io/badge/license-Fair%20Code-yellow" />
30
+ <a href="https://github.com/polakowo/vectorbt/actions/workflows/tests.yml" title="Tests">
31
+ <img src="https://img.shields.io/github/actions/workflow/status/polakowo/vectorbt/tests.yml?branch=master&label=tests&logo=githubactions&logoColor=white" />
32
32
  </a>
33
- <a href="https://codecov.io/gh/polakowo/vectorbt" title="codecov">
34
- <img src="https://codecov.io/gh/polakowo/vectorbt/branch/master/graph/badge.svg?token=YTLNAI7PS3" />
33
+ <a href="https://github.com/polakowo/vectorbt/actions/workflows/pypi.yml" title="PyPI release">
34
+ <img src="https://img.shields.io/github/actions/workflow/status/polakowo/vectorbt/pypi.yml?label=release&logo=githubactions&logoColor=white" />
35
35
  </a>
36
36
  <a href="https://vectorbt.dev/" title="Website">
37
- <img src="https://img.shields.io/website?url=https://vectorbt.dev/" />
38
- </a>
39
- <a href="https://mybinder.org/v2/gh/polakowo/vectorbt/HEAD?urlpath=lab" title="Launch Binder">
40
- <img src="https://img.shields.io/badge/launch-binder-d6604a" />
37
+ <img src="https://img.shields.io/website?url=https%3A%2F%2Fvectorbt.dev%2F&label=website" />
41
38
  </a>
42
- <a href="https://gitter.im/vectorbt/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge" title="Join the chat">
43
- <img src="https://badges.gitter.im/vectorbt.svg" />
39
+ <a href="https://pypi.org/project/vectorbt-rust" title="Rust engine">
40
+ <img src="https://img.shields.io/pypi/v/vectorbt-rust?label=rust%20engine&color=dea584&logo=rust" />
44
41
  </a>
45
- <a href="https://pypi.org/project/vectorbt" title="Supported Python versions">
46
- <img src="https://img.shields.io/pypi/pyversions/vectorbt.svg?logo=python&logoColor=white" />
42
+ <a href="https://github.com/polakowo/vectorbt/blob/master/LICENSE.md" title="License">
43
+ <img src="https://img.shields.io/badge/license-Fair%20Code-yellow" />
47
44
  </a>
48
45
  </p>
49
46
 
50
- <h3 align="center"><b>Thinks in matrices. Backtests at scale.</b></h3>
47
+ <h3 align="center"><b>Thinks in matrices, backtests at scale.</b></h3>
51
48
 
52
49
  <p align="center">VectorBT takes a radically different approach to backtesting: instead of looping through bars one strategy at a time, it packs thousands of configurations into NumPy arrays, accelerates the hot path with Numba and Rust, and runs them all at once, turning hours of grid search into seconds.</p>
53
50
 
@@ -55,7 +52,13 @@
55
52
 
56
53
  Explore thousands of trading ideas across assets and timeframes, analyze portfolio performance down to individual trades, and visualize results interactively, all in a few lines of code. Built for both human researchers and AI agents, VectorBT combines large-scale experimentation with a mature, battle-tested backtesting stack refined through years of community use.
57
54
 
58
- VectorBT is the open-source community edition of [VectorBT PRO](https://vectorbt.pro/), a state-of-the-art hybrid backtesting library.
55
+ VectorBT is the open-source community edition of [VectorBT PRO](https://vectorbt.pro/).
56
+ PRO extends the library with parallelization, additional data integrations, portfolio optimization,
57
+ pattern recognition, event projections, limit orders, leverage, and over 100 other features,
58
+ with new features added weekly.
59
+
60
+ See [VectorBT vs PRO](https://vectorbt.dev/getting-started/upgrade/) or browse
61
+ [PRO feature examples](https://vectorbt.pro/features/).
59
62
 
60
63
  ## Features
61
64
 
@@ -130,6 +133,13 @@ print(pf.total_profit())
130
133
  34417.80960086067
131
134
  ```
132
135
 
136
+ > [!TIP]
137
+ > **VectorBT PRO**
138
+ >
139
+ > Simulate [limit orders](https://vectorbt.pro/features/portfolio/#limit-orders),
140
+ > use [leverage](https://vectorbt.pro/features/portfolio/#leverage), and model futures with
141
+ > [contract multipliers](https://vectorbt.pro/features/portfolio/#contract-multiplier).
142
+
133
143
  ### Generate 1,000 random strategies
134
144
 
135
145
  ```python
@@ -171,6 +181,15 @@ fig.show()
171
181
 
172
182
  <img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_dmac_heatmap.gif">
173
183
 
184
+ > [!TIP]
185
+ > **VectorBT PRO**
186
+ >
187
+ > Use [random search](https://vectorbt.pro/features/optimization/#random-search) to sample a large
188
+ > parameter grid, or [conditional parameters](https://vectorbt.pro/features/optimization/#conditional-parameters)
189
+ > to exclude combinations such as a fast MA window longer than the slow MA window. The
190
+ > [cross-validation tutorial](https://vectorbt.pro/tutorials/cross-validation/)
191
+ > shows how to select parameters on training data and evaluate them on later periods.
192
+
174
193
  ### Inspect any strategy configuration
175
194
 
176
195
  ```python
@@ -252,7 +271,7 @@ vbt.save_animation("bbands.gif", bbands.wrapper.index, plot, bbands, delta=90, s
252
271
 
253
272
  <img width="750" src="https://raw.githubusercontent.com/polakowo/vectorbt/master/docs/docs/assets/images/usage_bbands.gif">
254
273
 
255
- Visit the website[website](https://vectorbt.dev/) for more examples, documentation, and guides.
274
+ Visit the [website](https://vectorbt.dev/) for more examples, documentation, and guides.
256
275
 
257
276
  ## Example apps
258
277
 
@@ -278,9 +297,15 @@ If you have questions or want to request a license exception, please [contact th
278
297
 
279
298
  Installing optional dependencies may be subject to a more restrictive license.
280
299
 
281
- ## Star history
300
+ ## Star History
282
301
 
283
- [![Star History Chart](https://api.star-history.com/svg?repos=polakowo/vectorbt&type=Timeline)](https://star-history.com/#polakowo/vectorbt&Timeline)
302
+ <a href="https://www.star-history.com/?repos=polakowo%2Fvectorbt&type=timeline&legend=top-left">
303
+ <picture>
304
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=polakowo/vectorbt&type=timeline&theme=dark&legend=top-left&sealed_token=482an5rek002Q4c3VCaRd7goV3LwR6GP6m56UOqTunBJKoEq19_RkbQldrL-OP4f5XnDtU9tOOTrs-NTtnqFoQoUZJdWPQEQ-eO2q1McxpYu-STLc1fj9tY60p-spkcSQ9bxs7WJkumrqYI1LSc3mBd7CIu2K7IuYNAgv1pYuFJOQaN1yD5p3wWNgcFM" />
305
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=polakowo/vectorbt&type=timeline&legend=top-left&sealed_token=482an5rek002Q4c3VCaRd7goV3LwR6GP6m56UOqTunBJKoEq19_RkbQldrL-OP4f5XnDtU9tOOTrs-NTtnqFoQoUZJdWPQEQ-eO2q1McxpYu-STLc1fj9tY60p-spkcSQ9bxs7WJkumrqYI1LSc3mBd7CIu2K7IuYNAgv1pYuFJOQaN1yD5p3wWNgcFM" />
306
+ <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=polakowo/vectorbt&type=timeline&legend=top-left&sealed_token=482an5rek002Q4c3VCaRd7goV3LwR6GP6m56UOqTunBJKoEq19_RkbQldrL-OP4f5XnDtU9tOOTrs-NTtnqFoQoUZJdWPQEQ-eO2q1McxpYu-STLc1fj9tY60p-spkcSQ9bxs7WJkumrqYI1LSc3mBd7CIu2K7IuYNAgv1pYuFJOQaN1yD5p3wWNgcFM" />
307
+ </picture>
308
+ </a>
284
309
 
285
310
  ## Disclaimer
286
311
 
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["setuptools>=61.0"]
2
+ requires = ["setuptools>=83.0"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
@@ -11,15 +11,15 @@ license-files = ["LICENSE.md"]
11
11
  authors = [
12
12
  {name = "Oleg Polakow", email = "olegpolakow@vectorbt.pro"}
13
13
  ]
14
- requires-python = ">=3.10"
14
+ requires-python = ">=3.11,<3.15"
15
15
  classifiers = [
16
16
  "Development Status :: 5 - Production/Stable",
17
17
  "Intended Audience :: Developers",
18
18
  "Intended Audience :: Financial and Insurance Industry",
19
- "Programming Language :: Python :: 3.10",
20
19
  "Programming Language :: Python :: 3.11",
21
20
  "Programming Language :: Python :: 3.12",
22
21
  "Programming Language :: Python :: 3.13",
22
+ "Programming Language :: Python :: 3.14",
23
23
  "Operating System :: OS Independent",
24
24
  "Intended Audience :: Science/Research",
25
25
  "Topic :: Software Development",
@@ -27,14 +27,14 @@ classifiers = [
27
27
  "Topic :: Scientific/Engineering :: Information Analysis",
28
28
  ]
29
29
  dependencies = [
30
- "numpy>=1.23",
31
- "pandas>=2.0,<3.0",
30
+ "numpy>=2.4.6",
31
+ "pandas>=3.0.3,<4.0",
32
32
  "scipy",
33
33
  "matplotlib",
34
34
  "plotly>=4.12.0",
35
35
  "ipywidgets>=7.0.0",
36
36
  "anywidget",
37
- "numba>=0.60",
37
+ "numba>=0.66",
38
38
  "dill",
39
39
  "tqdm",
40
40
  "dateparser",
@@ -48,9 +48,10 @@ dependencies = [
48
48
 
49
49
  [project.optional-dependencies]
50
50
  rust = [
51
- "vectorbt-rust==1.0.0",
51
+ "vectorbt-rust==1.1.1",
52
52
  ]
53
- full-no-talib = [
53
+ full = [
54
+ "TA-Lib",
54
55
  "yfinance>=0.2.22",
55
56
  "python-binance",
56
57
  "ccxt>=4.0.14",
@@ -58,13 +59,9 @@ full-no-talib = [
58
59
  "ray>=1.4.1",
59
60
  "ta",
60
61
  "pandas-ta-classic",
61
- "python-telegram-bot>=13.4,<20.0",
62
+ "python-telegram-bot>=13.4",
62
63
  "quantstats>=0.0.37",
63
64
  ]
64
- full = [
65
- "vectorbt[full-no-talib]",
66
- "TA-Lib",
67
- ]
68
65
  test = [
69
66
  "pytest",
70
67
  "pytest-cov",
@@ -73,12 +70,11 @@ test = [
73
70
  ]
74
71
  test-rust = [
75
72
  "vectorbt[test]",
76
- "maturin>=1.7,<2.0",
73
+ "maturin>=1.14,<2.0",
77
74
  ]
78
75
  docs = [
79
- "mkdocs-material",
80
- "mkdocs-minify-plugin",
81
- "ruamel.yaml",
76
+ "zensical>=0.0.62",
77
+ "tomlkit>=0.13",
82
78
  "mako",
83
79
  ]
84
80
  all = [
@@ -840,6 +840,27 @@ class TestData:
840
840
  columns=pd.Index([0, 1], dtype="int64", name="symbol"),
841
841
  ),
842
842
  )
843
+
844
+ class UnnamedSeriesData(vbt.Data):
845
+ @classmethod
846
+ def download_symbol(cls, symbol):
847
+ return pd.Series(
848
+ [1.0, 2.0, 3.0],
849
+ index=pd.date_range("2021-01-01", "2021-01-03"),
850
+ )
851
+
852
+ pd.testing.assert_series_equal(
853
+ UnnamedSeriesData.download(["RANDNX1", "RANDNX2"]).get(column="RANDNX1"),
854
+ pd.Series(
855
+ [1.0, 2.0, 3.0],
856
+ index=pd.DatetimeIndex(
857
+ ["2021-01-01 00:00:00", "2021-01-02 00:00:00", "2021-01-03 00:00:00"],
858
+ freq="D",
859
+ tz=timezone.utc,
860
+ ),
861
+ name="RANDNX1",
862
+ ),
863
+ )
843
864
  pd.testing.assert_frame_equal(
844
865
  MyData.download([0, 1], shape=(5, 3), columns=["feat0", "feat1", "feat2"]).get("feat0"),
845
866
  pd.DataFrame(