Ver Fonte

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

JiahengHe há 1 ano atrás
pai
commit
f8adc4c563
1 ficheiros alterados com 2 adições e 2 exclusões
  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;