mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-03 10:33:08 +00:00
Add docstring for process_exit_order
This commit is contained in:
@@ -638,6 +638,9 @@ class Backtesting:
|
||||
def _process_exit_order(
|
||||
self, order: Order, trade: LocalTrade, current_time: datetime, row: Tuple, pair: str
|
||||
):
|
||||
"""
|
||||
Takes an exit order and processes it, potentially closing the trade.
|
||||
"""
|
||||
if self._try_close_open_order(order, trade, current_time, row):
|
||||
sub_trade = order.safe_amount_after_fee != trade.amount
|
||||
if sub_trade:
|
||||
|
||||
Reference in New Issue
Block a user