Browse Source

修復識別的bug

skyfffire 5 months ago
parent
commit
cb787a75dd
1 changed files with 3 additions and 2 deletions
  1. 3 2
      arbitrage_process.py

+ 3 - 2
arbitrage_process.py

@@ -554,7 +554,8 @@ class ArbitrageProcess:
                         continue
 
                     # 處理pending數量
-                    pending_amount = pending_amount + Decimal(deposit['amount'])
+                    if Decimal(deposit['confirmTimes']) < Decimal(deposit['unlockConfirm']):
+                        pending_amount = pending_amount + Decimal(deposit['amount'])
 
                     # 檢查到沒到列表中
                     if deposit['transHash'] != self.arbitrage_details['chain_buy_tx_hash']:
@@ -562,7 +563,7 @@ class ArbitrageProcess:
                     is_list = True
                 
                 # 檢查是否滿足快速提現的條件
-                if is_list == True:
+                if is_list:
                     # 交易所代幣余额判断
                     balances = mexc.trade.get_account_info()['balances']
                     asset_balance = 0