浏览代码

保存数据70w.

skyfffire 11 月之前
父节点
当前提交
5efaeda398
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      strategy/src/avellaneda_stoikov.rs

+ 1 - 1
strategy/src/avellaneda_stoikov.rs

@@ -573,7 +573,7 @@ impl AvellanedaStoikov {
             });
 
             // 长度限定,最大100w条
-            if cci.predictor_state_vec.len() > 10_000 {
+            if cci.predictor_state_vec.len() > 700_000 {
                 cci.predictor_state_vec.remove(0);
             }
         });