Add test without fees

This commit is contained in:
Matthias
2022-06-21 19:23:18 +02:00
parent 761af1f974
commit a01581ba70
2 changed files with 18 additions and 5 deletions

View File

@@ -620,8 +620,7 @@ class LocalTrade():
else:
logger.warning(
f'Got different open_order_id {self.open_order_id} != {order.order_id}')
if isclose(order.safe_amount_after_fee,
self.amount, abs_tol=MATH_CLOSE_PREC):
if isclose(order.safe_amount_after_fee, self.amount, abs_tol=MATH_CLOSE_PREC):
self.close(order.safe_price)
else:
self.recalc_trade_from_orders()