Small fix to models

This commit is contained in:
Matthias 2021-06-13 11:17:44 +02:00
parent d35b2e3b8f
commit c65b4e5d3b

View File

@ -437,7 +437,7 @@ class LocalTrade():
self.close(safe_value_fallback(order, 'average', 'price'))
else:
raise ValueError(f'Unknown order type: {order_type}')
cleanup_db()
Trade.commit()
def close(self, rate: float, *, show_msg: bool = True) -> None:
"""