|
|
@@ -10,7 +10,7 @@ use rust_decimal::prelude::{FromPrimitive, ToPrimitive};
|
|
|
use serde_json::{Value};
|
|
|
use tokio::spawn;
|
|
|
use tokio::time::Instant;
|
|
|
-use tracing::{error, info, trace};
|
|
|
+use tracing::{error, info, trace, warn};
|
|
|
use exchanges::coinex_swap_rest::CoinexSwapRest;
|
|
|
use crate::{Platform, ExchangeEnum, Account, Position, Ticker, Market, Order, OrderCommand, PositionModeEnum};
|
|
|
use global::trace_stack::TraceStack;
|
|
|
@@ -465,7 +465,8 @@ impl Platform for CoinexSwap {
|
|
|
result.custom_id = custom_id.to_string();
|
|
|
Ok(result)
|
|
|
} else {
|
|
|
- Err(Error::new(ErrorKind::Other, res_data.to_string()))
|
|
|
+ let message = format!("撤单HTTP请求失败 order_id: {}, custom_id: {}, res_data: {:?}", order_id, custom_id, res_data);
|
|
|
+ Err(Error::new(ErrorKind::Other, message))
|
|
|
}
|
|
|
}
|
|
|
// 批量撤销订单
|
|
|
@@ -601,7 +602,7 @@ impl Platform for CoinexSwap {
|
|
|
self_clone.order_sender.send(order).await.unwrap();
|
|
|
}
|
|
|
Err(_err) => {
|
|
|
- // error!("撤单失败,而且查单也失败了,Coinex_io_swap,oid={}, cid={}。", order_id.clone(), custom_id.clone());
|
|
|
+ warn!("撤单失败,而且查单也失败了,Coinex_io_swap,oid={}, cid={}。", order_id.clone(), custom_id.clone());
|
|
|
// panic!("撤单失败,而且查单也失败了,Coinex_io_swap,oid={}, cid={}。", order_id.clone(), custom_id.clone());
|
|
|
}
|
|
|
}
|