|
|
@@ -1,4 +1,4 @@
|
|
|
-use tracing::{error};
|
|
|
+use tracing::{error, info};
|
|
|
use std::collections::BTreeMap;
|
|
|
use std::sync::Arc;
|
|
|
use std::sync::atomic::AtomicBool;
|
|
|
@@ -98,6 +98,7 @@ async fn on_data(core_arc_clone: Arc<Mutex<Core>>,
|
|
|
}
|
|
|
"order.update" => {
|
|
|
trace_stack.set_source("coinex_swap.orders".to_string());
|
|
|
+ info!("coinex_usdt_swap 订单推送:{:?}", response.data);
|
|
|
let orders = standard::handle_info::HandleSwapInfo::handle_order(CoinexSwap, response.clone(), multiplier.clone());
|
|
|
|
|
|
let mut order_infos:Vec<OrderInfo> = Vec::new();
|
|
|
@@ -116,7 +117,7 @@ async fn on_data(core_arc_clone: Arc<Mutex<Core>>,
|
|
|
}
|
|
|
}
|
|
|
"position.update" => {
|
|
|
- // println!("coinex_usdt_swap 仓位推送:{:?}", response.data);
|
|
|
+ info!("coinex_usdt_swap 仓位推送:{:?}", response.data);
|
|
|
let positions = standard::handle_info::HandleSwapInfo::handle_position(CoinexSwap, &response, multiplier);
|
|
|
let mut core = core_arc_clone.lock().await;
|
|
|
core.update_position(positions).await;
|