fix: 修复权重计算错误的问题
This commit is contained in:
@@ -214,7 +214,7 @@ class Calculator:
|
||||
self.fluctuating_survey * self.weight_survey,
|
||||
]
|
||||
|
||||
fluctuating = sum(self._fluctuatings) / len(self._fluctuatings)
|
||||
fluctuating = sum(self._fluctuatings) / sum([self.weight_ftb, self.weight_ss, self.weight_fhb, self.weight_network, self.weight_survey])
|
||||
fluctuating = self.round_method(fluctuating, self.round_bit)
|
||||
|
||||
price = fluctuating + previous_price
|
||||
|
Reference in New Issue
Block a user