Jelajahi Sumber

调整、观察。

skyffire 1 tahun lalu
induk
melakukan
12d1f5ca4d
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      strategy/src/avellaneda_stoikov.rs

+ 3 - 3
strategy/src/avellaneda_stoikov.rs

@@ -549,9 +549,9 @@ impl AvellanedaStoikov {
             optimal_ask_price: self.optimal_ask_price,
             optimal_bid_price: self.optimal_bid_price,
 
-            inventory: self.inventory,
-            sigma_square: self.flow_ratio_long,
-            gamma: self.last_open_interest,
+            inventory: self.last_open_interest,
+            sigma_square: self.last_volume,
+            gamma: self.last_price,
             kappa: self.t_diff,
 
             flow_ratio: self.flow_ratio_long,