openfund-taker 2.2.7__tar.gz → 2.2.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: openfund-taker
3
- Version: 2.2.7
3
+ Version: 2.2.8
4
4
  Summary: Openfund-taker
5
5
  Requires-Python: >=3.9,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "openfund-taker"
3
- version = "2.2.7"
3
+ version = "2.2.8"
4
4
  description = "Openfund-taker"
5
5
  authors = []
6
6
  readme = "README.md"
@@ -433,7 +433,7 @@ class TrailingSLTaker:
433
433
  # 计算平均利润
434
434
  def calculate_average_profit(self,symbol,position):
435
435
 
436
- total_profit_pct = 0.0
436
+ total_profit_pct = Decimal('0')
437
437
  num_positions = 0
438
438
 
439
439
  entry_price = self.toDecimal(position['entryPrice'])
File without changes