Skip to content

Commit e5d508a

Browse files
committed
docs: update adjust-entry docs about partial fills
These are canceled and NOT replaced - this needs to be pointed out. closes freqtrade#11212
1 parent 75fb2a0 commit e5d508a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/strategy-callbacks.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,8 @@ Returning any other price will cancel the existing order, and replace it with a
950950
The trade open-date (`trade.open_date_utc`) will remain at the time of the very first order placed.
951951
Please make sure to be aware of this - and eventually adjust your logic in other callbacks to account for this, and use the date of the first filled order instead.
952952

953-
If the cancellation of the original order fails, then the order will not be replaced - though the order will most likely have been canceled on exchange. Having this happen on initial entries will result in the deletion of the order, while on position adjustment orders, it'll result in the trade size remaining as is.
953+
If the cancellation of the original order fails, then the order will not be replaced - though the order will most likely have been canceled on exchange. Having this happen on initial entries will result in the deletion of the order, while on position adjustment orders, it'll result in the trade size remaining as is.
954+
If the order has been partially filled, the order will not be replaced. You can however use [`adjust_trade_position()`](#adjust-trade-position) to adjust the trade size to the full, expected position size, should this be necessary / desired.
954955

955956
!!! Warning "Regular timeout"
956957
Entry `unfilledtimeout` mechanism (as well as `check_entry_timeout()`) takes precedence over this.

0 commit comments

Comments
 (0)