瀏覽代碼

调整、观察。

skyffire 1 年之前
父節點
當前提交
12d1f5ca4d
共有 1 個文件被更改,包括 3 次插入3 次删除
  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,