openfund-maker 1.0.2__py3-none-any.whl → 1.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.
- maker/ThreeLineOrderBot.py +5 -4
- {openfund_maker-1.0.2.dist-info → openfund_maker-1.0.3.dist-info}/METADATA +1 -1
- {openfund_maker-1.0.2.dist-info → openfund_maker-1.0.3.dist-info}/RECORD +5 -5
- {openfund_maker-1.0.2.dist-info → openfund_maker-1.0.3.dist-info}/WHEEL +0 -0
- {openfund_maker-1.0.2.dist-info → openfund_maker-1.0.3.dist-info}/entry_points.txt +0 -0
maker/ThreeLineOrderBot.py
CHANGED
@@ -236,9 +236,7 @@ class ThreeLineOrdergBot:
|
|
236
236
|
|
237
237
|
|
238
238
|
def place_order(self,symbol, price, amount_usdt, side):
|
239
|
-
|
240
|
-
self.logger.info(f"{symbol} 有持仓合约,不进行下单。")
|
241
|
-
return
|
239
|
+
|
242
240
|
|
243
241
|
markets = self.exchange.load_markets()
|
244
242
|
if symbol not in markets:
|
@@ -327,7 +325,7 @@ class ThreeLineOrdergBot:
|
|
327
325
|
direction = 0
|
328
326
|
|
329
327
|
|
330
|
-
self.logger.debug(f"{symbol}: 极差={latest_ema_range} 斜率={latest_ema_slope}, K线方向 {direction}")
|
328
|
+
self.logger.debug(f"{symbol}: 极差={latest_ema_range:.9f} 斜率={latest_ema_slope:.9f}, K线方向 {direction}")
|
331
329
|
|
332
330
|
return direction
|
333
331
|
|
@@ -403,6 +401,9 @@ class ThreeLineOrdergBot:
|
|
403
401
|
return float(self.round_price_to_tick(place_order_price,tick_size))
|
404
402
|
|
405
403
|
def process_pair(self,symbol,pair_config):
|
404
|
+
if self.check_position(symbol=symbol) :
|
405
|
+
self.logger.info(f"{symbol} 有持仓合约,不进行下单。")
|
406
|
+
return
|
406
407
|
|
407
408
|
try:
|
408
409
|
klines = self.get_historical_klines(symbol=symbol)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
maker/ThreeLineOrderBot.py,sha256=
|
1
|
+
maker/ThreeLineOrderBot.py,sha256=9JWfSxI4ad9uedXMq2pKxDfSY3A_nKdLpFWAMRWbq5s,23414
|
2
2
|
maker/WickReversalOrderBot.py,sha256=Oc6wChdWu39lfWh3NRHM8BqvaRIYDNZiDR6PDnE9XUM,17374
|
3
3
|
maker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
maker/config.py,sha256=YPxghO5i0vgRg9Cja8kGj9O7pgSbbtzOgf3RexqXXwY,1188
|
@@ -7,7 +7,7 @@ maker/main_m.py,sha256=0PzDTnuBrxfpy5WDfsIHKAzZ_7pkuvuqqeWik0vpWio,15522
|
|
7
7
|
maker/okxapi.py,sha256=_9G0U_o0ZC8NxaT6PqpiLgxBm9gPobC9PsFHZE1c5w0,553
|
8
8
|
maker/zhen.py.bak,sha256=HNkrQbJts8G9umE9chEFsc0cLQApcM9KOVNMYPpkBXM,10918
|
9
9
|
maker/zhen_2.py,sha256=4IaHVtTCMSlrLGSTZrWpW2q-f7HZsUNRkW_-5QgWv24,10509
|
10
|
-
openfund_maker-1.0.
|
11
|
-
openfund_maker-1.0.
|
12
|
-
openfund_maker-1.0.
|
13
|
-
openfund_maker-1.0.
|
10
|
+
openfund_maker-1.0.3.dist-info/METADATA,sha256=goG2Pv4hLuF7DLikthsfP5DwFZsK6k4p2rxHdoG60gs,1965
|
11
|
+
openfund_maker-1.0.3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
12
|
+
openfund_maker-1.0.3.dist-info/entry_points.txt,sha256=gKMytICEKcMRFQDFkHZLnIpID7UQFoTIM_xcpiiV6Ns,50
|
13
|
+
openfund_maker-1.0.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|