瀏覽代碼

一些debug日志

skyfffire 4 月之前
父節點
當前提交
c3850d4790
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      as.py
  2. 1 1
      checker/erc20_to_mexc_checker.py

+ 1 - 1
as.py

@@ -557,7 +557,7 @@ def handle_submit_process():
     required_fields = ['tx', 'profit', 'profitLimit', 'symbol', 'strategy']
     for field in required_fields:
         if field not in data:
-            return jsonify({"error": f"缺少字段: {field}"}), 400
+            return jsonify({"error": f"缺少字段: {field}, keys: {data.keys()}"}), 400
 
     try:
         profit = Decimal(str(data['profit']))                                   # 利润

+ 1 - 1
checker/erc20_to_mexc_checker.py

@@ -434,7 +434,7 @@ def send_arb_msg(profit_amount, chain_swap_data, mexc_price_usdt_per_target, in_
         "strategy": "erc20_to_mexc",
     }
 
-    logger.info(f"正在提交套利数据到 {ARB_EXECUTOR_URL}, profit {arbitrage_data["profit"]}, profitLimit {arbitrage_data["profitLimit"]}")
+    logger.info(f"正在提交套利数据到 {ARB_EXECUTOR_URL}, profit {arbitrage_data["profit"]}, profitLimit {arbitrage_data["profitLimit"]}, keys: {arbitrage_data.keys()}")
 
     try:
         response = requests.post(ARB_EXECUTOR_URL, json=arbitrage_data, timeout=10)