Merge branch 'develop' into feature_keyval_storage

This commit is contained in:
eSeR1805
2022-06-13 20:05:45 +03:00
31 changed files with 732 additions and 841 deletions

View File

@@ -76,7 +76,7 @@ class Order(_DECL_BASE):
@property
def safe_filled(self) -> float:
return self.filled or self.amount or 0.0
return self.filled if self.filled is not None else self.amount or 0.0
@property
def safe_fee_base(self) -> float:
@@ -850,8 +850,6 @@ class LocalTrade():
tmp_amount = o.safe_amount_after_fee
tmp_price = o.average or o.price
if o.filled is not None:
tmp_amount = o.filled
if tmp_amount > 0.0 and tmp_price is not None:
total_amount += tmp_amount
total_stake += tmp_price * tmp_amount