소스 검색

修复一些小问题,上线测试。

skyffire 1 년 전
부모
커밋
3bc3b927ad
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      strategy/src/strategy.rs

+ 1 - 0
strategy/src/strategy.rs

@@ -493,6 +493,7 @@ impl Strategy {
                 let delta_sum = Decimal::from_f64(rst["delta_sum"].as_f64().unwrap()).unwrap();
 
                 let mut open = delta_sum / Decimal::TWO;
+                open = open / Decimal::ONE_HUNDRED;
                 open.rescale(6);
 
                 open