Browse Source

关闭撤单失败、查单也失败

JiahengHe 1 year ago
parent
commit
7d822710dd
1 changed files with 2 additions and 11 deletions
  1. 2 11
      standard/src/phemex_swap.rs

+ 2 - 11
standard/src/phemex_swap.rs

@@ -523,17 +523,8 @@ impl Platform for PhemexSwap {
                                 // info!("查单 订单详情:{:?}", order);
                                 self_clone.order_sender.send(order).await.unwrap();
                             }
-                            Err(err) => {
-                                // 未成交已取消的订单会报不存在
-                                if err.to_string().contains("3103:order not exists") {
-                                    let mut order = Order::new();
-                                    order.id = order_id.to_string();
-                                    order.custom_id = custom_id.to_string();
-                                    order.status = "REMOVE".to_string();
-                                    self_clone.order_sender.send(order).await.unwrap();
-                                } else {
-                                    warn!("撤单失败,而且查单也失败了,Phemex_io_swap,oid={}, cid={} err={:?}", order_id.clone(), custom_id.clone(), err);
-                                }
+                            Err(_err) => {
+                                // warn!("撤单失败,而且查单也失败了,Phemex_io_swap,oid={}, cid={} err={:?}", order_id.clone(), custom_id.clone(), err);
                                 // panic!("撤单失败,而且查单也失败了,Phemex_io_swap,oid={}, cid={}。", order_id.clone(), custom_id.clone());
                             }
                         }