|
|
@@ -375,7 +375,11 @@ impl Platform for BybitSwap {
|
|
|
if res_data_json.is_array() && res_data_json.as_array().unwrap().len() == 0 {
|
|
|
return Err(Error::new(ErrorKind::Other, "没有该订单!"));
|
|
|
}
|
|
|
+
|
|
|
let result = format_order_item(res_data_json.as_array().unwrap()[0].clone(), ct_val);
|
|
|
+
|
|
|
+ info!("原始订单信息{:?}, 格式化后信息{:?}", res_data_json, result);
|
|
|
+
|
|
|
Ok(result)
|
|
|
} else {
|
|
|
Err(Error::new(ErrorKind::Other, res_data.to_string()))
|
|
|
@@ -632,8 +636,8 @@ impl Platform for BybitSwap {
|
|
|
let handle = tokio::spawn(async move {
|
|
|
let result = self_clone.cancel_order(&order_id, &custom_id).await;
|
|
|
match result {
|
|
|
- Ok(order) => {
|
|
|
- self_clone.order_sender.send(order).await.unwrap();
|
|
|
+ Ok(_order) => {
|
|
|
+ // self_clone.order_sender.send(order).await.unwrap();
|
|
|
}
|
|
|
Err(error) => {
|
|
|
// 取消失败去查订单。
|