mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add docstring for process_exit_order
This commit is contained in:
parent
67636abb30
commit
c81c07c24a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user