openfund-taker 2.0.1__py3-none-any.whl → 2.0.3__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.
- {openfund_taker-2.0.1.dist-info → openfund_taker-2.0.3.dist-info}/METADATA +1 -1
- {openfund_taker-2.0.1.dist-info → openfund_taker-2.0.3.dist-info}/RECORD +5 -5
- taker/main.py +8 -3
- {openfund_taker-2.0.1.dist-info → openfund_taker-2.0.3.dist-info}/WHEEL +0 -0
- {openfund_taker-2.0.1.dist-info → openfund_taker-2.0.3.dist-info}/entry_points.txt +0 -0
@@ -9,8 +9,8 @@ taker/chua_ok.py,sha256=5pPAoEYbFuKxfZwqNvOO890s-2cy6n69QiI0ZA0GTCQ,12474
|
|
9
9
|
taker/chua_ok_all.py,sha256=2XnZM6QdB3juSE1pqQIJyh2x1XuhlTlnBKNA3owlJ9E,15267
|
10
10
|
taker/chua_ok_bot.py,sha256=9SW0ujhi6PfN4yR1JZ9NaA37HtnXJ2QAWUfW52NG68w,13109
|
11
11
|
taker/config.py,sha256=YPxghO5i0vgRg9Cja8kGj9O7pgSbbtzOgf3RexqXXwY,1188
|
12
|
-
taker/main.py,sha256=
|
13
|
-
openfund_taker-2.0.
|
14
|
-
openfund_taker-2.0.
|
15
|
-
openfund_taker-2.0.
|
16
|
-
openfund_taker-2.0.
|
12
|
+
taker/main.py,sha256=J1RbMc5JmjAczFvzRb7yO4Wi6Xku7Xb7CWDTrtv1Gcc,2724
|
13
|
+
openfund_taker-2.0.3.dist-info/METADATA,sha256=iqd5YoL_K4EFkLxgpE2dmNdzdSa3V32Kx1P-2tn7_a0,7527
|
14
|
+
openfund_taker-2.0.3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
15
|
+
openfund_taker-2.0.3.dist-info/entry_points.txt,sha256=a7mG8F7aOA5-Gk2vPWuAR4537faxaHUgM_jwIDBZoEc,50
|
16
|
+
openfund_taker-2.0.3.dist-info/RECORD,,
|
taker/main.py
CHANGED
@@ -54,10 +54,15 @@ def main():
|
|
54
54
|
feishu_webhook_url = config_data['feishu_webhook']
|
55
55
|
monitor_interval = config_data.get("monitor_interval", 60) # 默认值为60秒
|
56
56
|
logger = build_logger(config_data["Logger"])
|
57
|
-
package_name = __package__ or "taker"
|
57
|
+
package_name = __package__ or "taker"
|
58
58
|
|
59
|
-
|
60
|
-
|
59
|
+
taker = config_data.get('actived_taker', 'TrailingSLAndTPTaker')
|
60
|
+
|
61
|
+
# 根据配置动态创建策略实例
|
62
|
+
strategy_class = globals()[taker]
|
63
|
+
bot = strategy_class(config_data, platform_config, feishu_webhook=feishu_webhook_url, monitor_interval=monitor_interval,logger=logger)
|
64
|
+
logger.info(f" ++ {package_name}.{taker}:{version} is doing...")
|
65
|
+
|
61
66
|
bot.monitor_total_profit()
|
62
67
|
# bot = ThreeLineTradingBot(platform_config, feishu_webhook=feishu_webhook_url, monitor_interval=monitor_interval)
|
63
68
|
# bot.monitor_klines()
|
File without changes
|
File without changes
|