skyffire 1 anno fa
parent
commit
a3deb603c0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      strategy/src/core.rs

+ 1 - 1
strategy/src/core.rs

@@ -619,6 +619,7 @@ impl Core {
             }
         }
         self.market_update_time.insert(name_ref.clone(), now_time);
+        TraceStack::show_delay(&trace_stack.ins);
 
         // 判断是否需要触发on_depth
         // 是否是交易盘口
@@ -649,7 +650,6 @@ impl Core {
                 self.strategy.local_time = Utc::now().timestamp_millis();
 
                 // 产生交易信号
-                TraceStack::show_delay(&trace_stack.ins);
                 let orders = self.strategy.on_tick(&self.local_orders,
                                                    &self.local_position_by_orders,
                                                    &self.agg_market,