bbstrader 0.2.4__py3-none-any.whl → 0.2.5__py3-none-any.whl
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/metatrader/risk.py +1 -1
- bbstrader/metatrader/trade.py +1 -1
- {bbstrader-0.2.4.dist-info → bbstrader-0.2.5.dist-info}/METADATA +1 -1
- {bbstrader-0.2.4.dist-info → bbstrader-0.2.5.dist-info}/RECORD +7 -7
- {bbstrader-0.2.4.dist-info → bbstrader-0.2.5.dist-info}/LICENSE +0 -0
- {bbstrader-0.2.4.dist-info → bbstrader-0.2.5.dist-info}/WHEEL +0 -0
- {bbstrader-0.2.4.dist-info → bbstrader-0.2.5.dist-info}/top_level.txt +0 -0
bbstrader/metatrader/risk.py
CHANGED
|
@@ -465,7 +465,7 @@ class RiskManagement(Account):
|
|
|
465
465
|
symbol = self.symbol[:-1]
|
|
466
466
|
else:
|
|
467
467
|
symbol = self.symbol
|
|
468
|
-
if symbol in supported:
|
|
468
|
+
if str(symbol) not in supported:
|
|
469
469
|
raise ValueError(
|
|
470
470
|
f"Currency risk calculation for '{self.symbol}' is not a currently supported. \n"
|
|
471
471
|
f"Supported commodity symbols are: {', '.join(supported)}"
|
bbstrader/metatrader/trade.py
CHANGED
|
@@ -457,7 +457,7 @@ class Trade(RiskManagement):
|
|
|
457
457
|
request["tp"] = mm_price + take_profit * point
|
|
458
458
|
self.break_even(mm=mm, id=Id)
|
|
459
459
|
if self.check(comment):
|
|
460
|
-
|
|
460
|
+
self.request_result(_price, request, action)
|
|
461
461
|
|
|
462
462
|
def _order_type(self):
|
|
463
463
|
type = {
|
|
@@ -17,8 +17,8 @@ bbstrader/ibkr/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
17
17
|
bbstrader/metatrader/__init__.py,sha256=rrL_EtecsOCD2Cwhmpgta5CjSGT0K6vzSBiQoyCLe3M,283
|
|
18
18
|
bbstrader/metatrader/account.py,sha256=uuHZcc_bJOzrCIrXzMoMtkl41EVPep1jqNrOMfYl14E,56895
|
|
19
19
|
bbstrader/metatrader/rates.py,sha256=12hNcjRSKcOSjBAhDvpakqAiLaI0ndU6oBhCTIWDzr0,21089
|
|
20
|
-
bbstrader/metatrader/risk.py,sha256=
|
|
21
|
-
bbstrader/metatrader/trade.py,sha256=
|
|
20
|
+
bbstrader/metatrader/risk.py,sha256=pflsprtnEG8BgudmV_IiQvxuUty4bKYnnzZ6s1Yplug,26910
|
|
21
|
+
bbstrader/metatrader/trade.py,sha256=zlVzz5-z-1nJe3-BefTEHed6zQj6GOWkjHlALguoov4,72974
|
|
22
22
|
bbstrader/metatrader/utils.py,sha256=UnwWmmfgY-Cw1V0vL14ehuWr9AhjcJMtVZK8k19b0i4,17672
|
|
23
23
|
bbstrader/models/__init__.py,sha256=SnGBMQ-zcUIpms3oNeqg7EVDFpg-7OPjNAD8kvi_Q84,508
|
|
24
24
|
bbstrader/models/factors.py,sha256=dWuXh83hLkwxUp3XwjgUl-r3_cjVcV_s0aFRlSLIfo8,13332
|
|
@@ -30,8 +30,8 @@ bbstrader/trading/__init__.py,sha256=2VoxbzfP1XBLVuxJtjRhjEBCtnv9HqwQzfMV4B5mM7M
|
|
|
30
30
|
bbstrader/trading/execution.py,sha256=3HlsgXcCqG6P4_F3d5uUQPVE-clsX6_frxyo3fiEuRA,30723
|
|
31
31
|
bbstrader/trading/scripts.py,sha256=pNwHr-3mW87G5fyIMd93wS43NkzOZn4npt4fLNnSUyk,1922
|
|
32
32
|
bbstrader/trading/strategies.py,sha256=rMvLIhX_8MQg7_Lbo127UqdTRxBUof2m3jgRQTm55p0,37019
|
|
33
|
-
bbstrader-0.2.
|
|
34
|
-
bbstrader-0.2.
|
|
35
|
-
bbstrader-0.2.
|
|
36
|
-
bbstrader-0.2.
|
|
37
|
-
bbstrader-0.2.
|
|
33
|
+
bbstrader-0.2.5.dist-info/LICENSE,sha256=P3PBO9RuYPzl6-PkjysTNnwmwMB64ph36Bz9DBj8MS4,1115
|
|
34
|
+
bbstrader-0.2.5.dist-info/METADATA,sha256=vvgqvdWfhKFQcQdWlpHheGbOkGBcegJHmkk2NVyyLsc,10399
|
|
35
|
+
bbstrader-0.2.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
36
|
+
bbstrader-0.2.5.dist-info/top_level.txt,sha256=Wwj322jZmxGZ6gD_TdaPiPLjED5ReObm5omerwlmZIg,10
|
|
37
|
+
bbstrader-0.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|