@@ -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;
}