浏览代码

信息打印

JiahengHe 1 年之前
父节点
当前提交
4b4834467c
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      standard/src/phemex_swap.rs
  2. 1 1
      strategy/src/phemex_usdt_swap.rs

+ 1 - 0
standard/src/phemex_swap.rs

@@ -369,6 +369,7 @@ impl Platform for PhemexSwap {
         if response_long.code != 200 && response_short.code != 200 {
             return Err(Error::new(ErrorKind::NotFound, format!("phemex_swap 撤销订单失败 order_id: {}, custom_id: {}, response_long: {:?}, response_short: {:?}", order_id, custom_id, response_long, response_short)));
         };
+        info!("long cancel: {:?}, short cancel: {:?}", response_long, response_short);
         let res_data_json: Value = if response_long.code == 200 { response_long.data } else { response_short.data };
         let mut result = format_order_item(res_data_json, ct_val);
         result.status = "REMOVE".to_string();

+ 1 - 1
strategy/src/phemex_usdt_swap.rs

@@ -193,7 +193,7 @@ async fn on_public_data(core_arc_clone: Arc<Mutex<Core>>,
         }
         let special_depth = standard::handle_info::make_special_depth(label.clone(), depth_asks, depth_bids, depth_format.t, depth_format.create_at);
         trace_stack.on_after_format();
-
+        println!("深度信息 ask length{} bid length{}", depth_asks.len(), depth_bids.len());
         on_special_depth(core_arc_clone, update_flag_u, &response.label, &mut trace_stack, &special_depth).await;
     } else {
         error!("未知推送类型");