Browse Source

用6ms的市场冲击。

skyffire 1 năm trước cách đây
mục cha
commit
1e29f884de
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      strategy/src/avellaneda_stoikov.rs

+ 1 - 1
strategy/src/avellaneda_stoikov.rs

@@ -130,7 +130,7 @@ impl AvellanedaStoikov {
 
             let mut first_trade_price = last_trade.price;
             for trade in self.trade_long_vec.deque.iter().rev() {
-                if last_trade_time - trade.time > Decimal::TEN {
+                if last_trade_time - trade.time > dec!(6) {
                     break;
                 }