소스 검색

一些日志的位置优化。

skyfffire 2 주 전
부모
커밋
ab520a3a2a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/strategy.rs

+ 2 - 2
src/strategy.rs

@@ -224,14 +224,14 @@ impl Strategy {
         &mut self,
         dm: &DataManager,
     ) -> Result<()> {
-        info!("执行市价卖单");
-
         // 检查是否满足下单时间间隔
         let elapsed = self.last_order_time.elapsed().as_millis();
         if elapsed < self.min_order_interval_ms {
             return Ok(());
         }
 
+        info!("执行市价卖单");
+
         // 尝试下市价单
         match self.place_market_sell_order(dm.best_bid, self.filled_quantity).await {
             Ok(id) => {