Closed huytrvan closed 1 year ago
depending on the selected pricing - orders may fill, or may fill partially, or may not fill. A quick fix is usually to use "pricing=other" - which will place the order at a spot that's more likely to be filled. Especially on low volume markets - that's usually a good idea to prevent unfilled orders.
seems like you're experiencing partial fills - which, in combination of timeout settings, will produce this message. it simply means "your order was filled for X% - would this order be canceled, then the remaining amount is too small to be placed as new order".
This is not a problem - but a protection. trying to circumvent this will result in "stuck" trades, which will fail with "order amount is too small".
Just noticed it's dry-run on kucoin - which (due to some "oddity" in the kucoin API) - has a fix forcing create-order to return "status=open". Now on dry-run - that's not necessarily correct behavior - and (for market orders) will cause wrong behavior.
will be fixed in a few minutes on develop.
Thanks alot @xmatthias. Yes, I was thought it was a bug because I tried your suggestion but didn't work. Glad you found the bug!
Describe your environment
Describe the problem:
freqtrade.freqtradebot - WARNING - Order {trade.open_order_id} for {trade.pair} not cancelled, as the filled amount of {filled_val} would result in an unexitable trade.
(I copied this error fromfreqtradebot.py
, for sample message, view below).Steps to reproduce:
Observed Results:
What happened?
Strategy-A
would enter trades but wouldn't exit any, while producing the error below.Strategy-B
works but as soon as you turn on trailing stoploss, same error appears.What did you expect to happen?
strategy-A
will produce error butstrategy-B
(with trailing stoploss turn off) will work as expected.strategy-A
itself. However, when I turned on trailing stoploss forstrategy-B
(which normally works), the error happened again.Relevant code exceptions or logs
Sample of the logs I got:
Additional Info:
Strategy-B
has DCA in it but works fine if you turn off trailing stoploss.strategy-A
(either with or without DCA), andstrategy-B
if trailing stoploss was turned on.The problem seemed to be with
minstake
(as seen infreqtradebot.py
). I have tried to fix with different settings and looked at Freqtrade source code but no clue. Thanks if you have any input.