skyfffire 1 rok pred
rodič
commit
54c26f3557

+ 3 - 1
strategy/src/binance_usdt_swap.rs

@@ -63,7 +63,9 @@ async fn on_data(bot_arc_clone: Arc<Mutex<Quant>>,
     trace_stack.on_after_network(data.time);
     trace_stack.on_before_unlock_quant();
 
-    info!("bian>{}", trace_stack.to_string());
+    if data.time != 0 {
+        info!("bian>{}", trace_stack.to_string());
+    }
 
     // if data.code != "200".to_string() {
     //     return;

+ 3 - 1
strategy/src/gate_swap.rs

@@ -104,7 +104,9 @@ async fn on_data(bot_arc_clone: Arc<Mutex<Quant>>,
     trace_stack.on_after_network(data.time);
     trace_stack.on_before_unlock_quant();
 
-    info!("gate>{}", trace_stack.to_string());
+    if data.time != 0 {
+        info!("bian>{}", trace_stack.to_string());
+    }
 
     // if data.code != "200".to_string() {
     //     return;