Explorar o código

htx 订单信息打印

JiahengHe hai 1 ano
pai
achega
e5878c162c
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      strategy/src/core.rs

+ 4 - 4
strategy/src/core.rs

@@ -308,10 +308,10 @@ impl Core {
 
     // #[instrument(skip(self, data, trace_stack), level="TRACE")]
     pub async fn update_local_order(&mut self, data: OrderInfo, trace_stack: TraceStack) {
-        // if data.filled != Decimal::ZERO {
-        //     info!("\n\n");
-        //     info!("接收到订单信息①:{:?}", data);
-        // }
+        if data.filled != Decimal::ZERO {
+            info!("\n\n");
+            info!("接收到订单信息①:{:?}", data);
+        }
         /*
          更新订单
             首先直接复写本地订单