openfund-maker 1.0.3__py3-none-any.whl → 1.0.4__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.
@@ -401,9 +401,12 @@ class ThreeLineOrdergBot:
401
401
  return float(self.round_price_to_tick(place_order_price,tick_size))
402
402
 
403
403
  def process_pair(self,symbol,pair_config):
404
+ # 检查是否有持仓,有持仓不进行下单
404
405
  if self.check_position(symbol=symbol) :
405
406
  self.logger.info(f"{symbol} 有持仓合约,不进行下单。")
406
407
  return
408
+ # 取消之前的挂单
409
+ self.cancel_all_orders(symbol=symbol)
407
410
 
408
411
  try:
409
412
  klines = self.get_historical_klines(symbol=symbol)
@@ -483,7 +486,7 @@ class ThreeLineOrdergBot:
483
486
 
484
487
  self.logger.debug(f"{symbol} 当前K线的前三根K线 最高价: {max_high}, 最低价: {min_low}")
485
488
 
486
- self.cancel_all_orders(symbol=symbol)
489
+
487
490
 
488
491
  long_amount_usdt = pair_config.get('long_amount_usdt', 5)
489
492
  short_amount_usdt = pair_config.get('short_amount_usdt', 5)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: openfund-maker
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Openfund-maker.
5
5
  Requires-Python: >=3.9,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,4 +1,4 @@
1
- maker/ThreeLineOrderBot.py,sha256=9JWfSxI4ad9uedXMq2pKxDfSY3A_nKdLpFWAMRWbq5s,23414
1
+ maker/ThreeLineOrderBot.py,sha256=AGPTm3hRho537aKKXhwIHbr4hVRlTVEh_axul0enMXg,23507
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.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,,
10
+ openfund_maker-1.0.4.dist-info/METADATA,sha256=cDXItR0Mz41fZ_xoiMVIIMBNv7CXMC480IrujQ_kvBQ,1965
11
+ openfund_maker-1.0.4.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
12
+ openfund_maker-1.0.4.dist-info/entry_points.txt,sha256=gKMytICEKcMRFQDFkHZLnIpID7UQFoTIM_xcpiiV6Ns,50
13
+ openfund_maker-1.0.4.dist-info/RECORD,,