|
|
@@ -81,13 +81,18 @@ async fn on_data(core_arc_clone: Arc<Mutex<Core>>,
|
|
|
// core.max_buy_min_sell_cache.insert(data.label, vec![*_max_buy, *_min_sell]);
|
|
|
} else if data.channel == "bookTicker" {
|
|
|
// 将ticker数据转换为模拟深度
|
|
|
+ let label = data.label.clone();
|
|
|
+ let ins = data.ins;
|
|
|
let special_depth = standard::handle_info::HandleSwapInfo::handle_special_ticker(BinanceSwap, data.clone());
|
|
|
|
|
|
- on_special_depth(core_arc_clone, update_flag_u, data.label.clone(), trace_stack, special_depth).await;
|
|
|
+ TraceStack::show_delay(ins);
|
|
|
+
|
|
|
+ on_special_depth(core_arc_clone, update_flag_u, label, trace_stack, special_depth).await;
|
|
|
} else if data.channel == "depth" {
|
|
|
// 将depth数据转换为模拟深度
|
|
|
- let special_depth = standard::handle_info::HandleSwapInfo::handle_special_depth(BinanceSwap, data.clone());
|
|
|
+ let label = data.label.clone();
|
|
|
+ let special_depth = standard::handle_info::HandleSwapInfo::handle_special_depth(BinanceSwap, data);
|
|
|
|
|
|
- on_special_depth(core_arc_clone, update_flag_u, data.label.clone(), trace_stack, special_depth).await;
|
|
|
+ on_special_depth(core_arc_clone, update_flag_u, label, trace_stack, special_depth).await;
|
|
|
}
|
|
|
}
|