Update failing test

This commit is contained in:
Matthias
2022-02-20 14:27:26 +01:00
parent db540dc990
commit dc7bcf5dda
4 changed files with 8 additions and 4 deletions

View File

@@ -1415,7 +1415,8 @@ class FreqtradeBot(LoggingMixin):
return real_amount
return amount
def handle_order_fee(self, trade: Trade, order_obj: Order, order: Dict[str, Any]) -> Dict[str, Any]:
def handle_order_fee(
self, trade: Trade, order_obj: Order, order: Dict[str, Any]) -> Dict[str, Any]:
# Try update amount (binance-fix)
try:
new_amount = self.get_real_amount(trade, order)

View File

@@ -187,7 +187,6 @@ class Order(_DECL_BASE):
if (order.get('filled', 0.0) or 0.0) > 0:
self.order_filled_date = datetime.now(timezone.utc)
self.order_update_date = datetime.now(timezone.utc)
return self
def to_json(self) -> Dict[str, Any]:
return {