bbstrader 0.3.2__tar.gz → 0.3.4__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.
Potentially problematic release.
This version of bbstrader might be problematic. Click here for more details.
- {bbstrader-0.3.2/bbstrader.egg-info → bbstrader-0.3.4}/PKG-INFO +5 -5
- {bbstrader-0.3.2 → bbstrader-0.3.4}/README.md +2 -2
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/__main__.py +15 -7
- bbstrader-0.3.4/bbstrader/apps/_copier.py +664 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/btengine/data.py +3 -3
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/btengine/strategy.py +165 -90
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/core/data.py +3 -1
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/core/scripts.py +62 -19
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/core/utils.py +5 -3
- bbstrader-0.3.4/bbstrader/ibkr/utils.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/metatrader/account.py +196 -42
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/metatrader/analysis.py +7 -5
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/metatrader/copier.py +325 -171
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/metatrader/rates.py +2 -2
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/metatrader/scripts.py +15 -2
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/metatrader/utils.py +65 -5
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/models/ml.py +8 -5
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/models/nlp.py +16 -11
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/trading/execution.py +100 -48
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/tseries.py +0 -2
- {bbstrader-0.3.2 → bbstrader-0.3.4/bbstrader.egg-info}/PKG-INFO +5 -5
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader.egg-info/SOURCES.txt +2 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader.egg-info/requires.txt +2 -2
- {bbstrader-0.3.2 → bbstrader-0.3.4}/requirements.txt +2 -2
- {bbstrader-0.3.2 → bbstrader-0.3.4}/setup.py +2 -3
- {bbstrader-0.3.2 → bbstrader-0.3.4}/LICENSE +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/MANIFEST.in +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/__init__.py +0 -0
- {bbstrader-0.3.2/bbstrader/ibkr → bbstrader-0.3.4/bbstrader/apps}/__init__.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/btengine/__init__.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/btengine/backtest.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/btengine/event.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/btengine/execution.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/btengine/performance.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/btengine/portfolio.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/btengine/scripts.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/compat.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/config.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/core/__init__.py +0 -0
- bbstrader-0.3.2/bbstrader/ibkr/utils.py → bbstrader-0.3.4/bbstrader/ibkr/__init__.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/metatrader/__init__.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/metatrader/risk.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/metatrader/trade.py +2 -2
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/models/__init__.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/models/factors.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/models/optimization.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/models/portfolio.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/models/risk.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/trading/__init__.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/trading/scripts.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/trading/strategies.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader/trading/utils.py +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader.egg-info/dependency_links.txt +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader.egg-info/entry_points.txt +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/bbstrader.egg-info/top_level.txt +0 -0
- {bbstrader-0.3.2 → bbstrader-0.3.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bbstrader
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Simplified Investment & Trading Toolkit
|
|
5
5
|
Home-page: https://github.com/bbalouki/bbstrader
|
|
6
6
|
Download-URL: https://pypi.org/project/bbstrader/
|
|
@@ -37,8 +37,8 @@ Requires-Dist: ipython>=8.32.0
|
|
|
37
37
|
Requires-Dist: lightgbm>=4.5.0
|
|
38
38
|
Requires-Dist: nltk>=3.9.1
|
|
39
39
|
Requires-Dist: notify-py>=0.3.43
|
|
40
|
-
Requires-Dist: numpy
|
|
41
|
-
Requires-Dist: pandas_ta
|
|
40
|
+
Requires-Dist: numpy>=1.26.0
|
|
41
|
+
Requires-Dist: pandas_ta<=0.4.67b0
|
|
42
42
|
Requires-Dist: praw>=7.8.1
|
|
43
43
|
Requires-Dist: pyfiglet>=1.0.2
|
|
44
44
|
Requires-Dist: pykalman>=0.10.1
|
|
@@ -164,7 +164,7 @@ To begin using `bbstrader`, please ensure your system meets the following prereq
|
|
|
164
164
|
* **MetaTrader 5 (MT5)**:
|
|
165
165
|
* The MetaTrader 5 platform must be installed on your system (primarily for Windows users needing live trading or direct MT5 interaction).
|
|
166
166
|
* An active trading account with a MetaTrader 5 broker. `bbstrader` currently supports:
|
|
167
|
-
* [Admirals Group AS](https://
|
|
167
|
+
* [Admirals Group AS](https://one.justmarkets.link/a/tufvj0xugm/registration/trader) (for Stocks, ETFs, Indices, Commodities, Futures, Forex)
|
|
168
168
|
* [Just Global Markets Ltd.](https://one.justmarkets.link/a/tufvj0xugm/registration/trader) (for Stocks, Crypto, Indices, Commodities, Forex)
|
|
169
169
|
* [FTMO](https://trader.ftmo.com/?affiliates=JGmeuQqepAZLMcdOEQRp) (Proprietary Firm)
|
|
170
170
|
|
|
@@ -380,7 +380,7 @@ You may need to create the `~/.bbstrader/` directory and its subdirectories (lik
|
|
|
380
380
|
|
|
381
381
|
For comprehensive information, including detailed API references, tutorials, and advanced guides for each module, please refer to our full documentation hosted on ReadTheDocs:
|
|
382
382
|
|
|
383
|
-
[**View the Full Documentation
|
|
383
|
+
[**View the Full Documentation**](https://bbstrader.readthedocs.io/en/latest/)
|
|
384
384
|
|
|
385
385
|
Additionally, the codebase is commented and includes docstrings, which can be a valuable resource for understanding the implementation details of specific functions and classes.
|
|
386
386
|
|
|
@@ -85,7 +85,7 @@ To begin using `bbstrader`, please ensure your system meets the following prereq
|
|
|
85
85
|
* **MetaTrader 5 (MT5)**:
|
|
86
86
|
* The MetaTrader 5 platform must be installed on your system (primarily for Windows users needing live trading or direct MT5 interaction).
|
|
87
87
|
* An active trading account with a MetaTrader 5 broker. `bbstrader` currently supports:
|
|
88
|
-
* [Admirals Group AS](https://
|
|
88
|
+
* [Admirals Group AS](https://one.justmarkets.link/a/tufvj0xugm/registration/trader) (for Stocks, ETFs, Indices, Commodities, Futures, Forex)
|
|
89
89
|
* [Just Global Markets Ltd.](https://one.justmarkets.link/a/tufvj0xugm/registration/trader) (for Stocks, Crypto, Indices, Commodities, Forex)
|
|
90
90
|
* [FTMO](https://trader.ftmo.com/?affiliates=JGmeuQqepAZLMcdOEQRp) (Proprietary Firm)
|
|
91
91
|
|
|
@@ -301,7 +301,7 @@ You may need to create the `~/.bbstrader/` directory and its subdirectories (lik
|
|
|
301
301
|
|
|
302
302
|
For comprehensive information, including detailed API references, tutorials, and advanced guides for each module, please refer to our full documentation hosted on ReadTheDocs:
|
|
303
303
|
|
|
304
|
-
[**View the Full Documentation
|
|
304
|
+
[**View the Full Documentation**](https://bbstrader.readthedocs.io/en/latest/)
|
|
305
305
|
|
|
306
306
|
Additionally, the codebase is commented and includes docstrings, which can be a valuable resource for understanding the implementation details of specific functions and classes.
|
|
307
307
|
|
|
@@ -12,7 +12,7 @@ from bbstrader.metatrader.scripts import copy_trades
|
|
|
12
12
|
from bbstrader.trading.scripts import execute_strategy
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class _Module(Enum):
|
|
16
16
|
COPIER = "copier"
|
|
17
17
|
BACKTEST = "backtest"
|
|
18
18
|
EXECUTION = "execution"
|
|
@@ -52,23 +52,31 @@ def main():
|
|
|
52
52
|
sys.exit(0)
|
|
53
53
|
try:
|
|
54
54
|
match args.run:
|
|
55
|
-
case
|
|
55
|
+
case _Module.COPIER.value:
|
|
56
56
|
copy_trades(unknown)
|
|
57
|
-
case
|
|
57
|
+
case _Module.BACKTEST.value:
|
|
58
58
|
backtest(unknown)
|
|
59
|
-
case
|
|
59
|
+
case _Module.EXECUTION.value:
|
|
60
60
|
execute_strategy(unknown)
|
|
61
|
-
case
|
|
61
|
+
case _Module.NEWS_FEED.value:
|
|
62
62
|
send_news_feed(unknown)
|
|
63
63
|
case _:
|
|
64
64
|
print(Fore.RED + f"Unknown module: {args.run}")
|
|
65
65
|
sys.exit(1)
|
|
66
66
|
except KeyboardInterrupt:
|
|
67
67
|
sys.exit(0)
|
|
68
|
-
except Exception:
|
|
68
|
+
except Exception as e:
|
|
69
|
+
print(Fore.RED + f"Error: {e}")
|
|
69
70
|
sys.exit(1)
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
if __name__ == "__main__":
|
|
73
74
|
multiprocessing.freeze_support()
|
|
74
|
-
|
|
75
|
+
try:
|
|
76
|
+
main()
|
|
77
|
+
except KeyboardInterrupt:
|
|
78
|
+
print(Fore.RED + "\nExecution interrupted by user")
|
|
79
|
+
sys.exit(0)
|
|
80
|
+
except Exception as e:
|
|
81
|
+
print(Fore.RED + f"Error: {e}")
|
|
82
|
+
sys.exit(1)
|