Sfoglia il codice sorgente

一些日志的位置优化。

skyfffire 2 settimane fa
parent
commit
ab520a3a2a
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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) => {