Explorar el Código

用6ms的市场冲击。

skyffire hace 1 año
padre
commit
1e29f884de
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
                 }