Explorar el Código

strategy中间价、参考价 保留10位小数

JiahengHe hace 1 año
padre
commit
f8adc4c563
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      strategy/src/strategy.rs

+ 2 - 2
strategy/src/strategy.rs

@@ -352,8 +352,8 @@ impl Strategy {
     // 耗时700微秒
     // #[instrument(skip(self), level="TRACE")]
     pub fn _print_summary(&mut self) {
-        self.mp.rescale(6);
-        self.ref_price.rescale(6);
+        self.mp.rescale(10);
+        self.ref_price.rescale(10);
         self.equity.rescale(3);
         self.cash.rescale(3);
         let mut value = self.coin * self.mp;