@@ -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();
@@ -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!("未知推送类型");