Przeglądaj źródła

插入的时间间距bug。

skyfffire 11 miesięcy temu
rodzic
commit
01b5f96e33
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      strategy/src/avellaneda_stoikov.rs

+ 3 - 1
strategy/src/avellaneda_stoikov.rs

@@ -611,7 +611,9 @@ impl AvellanedaStoikov {
             kappa,
             flow_ratio,
             ref_price
-        ]).unwrap()
+        ]).unwrap();
+
+        self.prev_insert_time = Decimal::from(Utc::now().timestamp_millis())
     }
 
     // #[instrument(skip(self, ref_ticker_map), level="TRACE")]