skyffire hai 1 ano
pai
achega
8883855656
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      strategy/src/avellaneda_stoikov.rs

+ 1 - 0
strategy/src/avellaneda_stoikov.rs

@@ -164,6 +164,7 @@ impl AvellanedaStoikov {
         self.trade_short_vec.push_back(trade.clone());
 
         self.last_price = trade.price;
+        self.mid_price = trade.price;
         self.update_spread();
         self.processor().await;
     }