-
Notifications
You must be signed in to change notification settings - Fork 2k
binance/exchange.js switches to full-ape mode and keeps retrying to execute an impossible order infinitely #1096
Comments
under binance/exchange.js change line 158, 202 from to |
@hoajb why not PR that change? |
@DeviaVir sorry for my English. what do you mean "PR"? But i think better we should change condition to check error-code. This case is "code:-1013" |
I am sorry for my English ability. |
Hi @hoajb, PR means Pull Request. |
fixes DeviaVir#1120 and is somehow related to DeviaVir#1096
fixes DeviaVir#1096. remove "Filter failure: MIN_NOTIONAL" from api retry
PR via #1123 |
follow up of DeviaVir#1123; fix in DeviaVir#1096 was not working. tested against real life issue
…#1130) follow up of DeviaVir#1123; fix in DeviaVir#1096 was not working. tested against real life issue
This morning I woke up to find out my bot betrayed me during sleep.
In the logs, I found interminable repetitions of the following:
To my understanding, my custom strategy wrongly tried to buy asset when it didn't have enough currency, and binance/exchange.js kept retrying to re-enact the wrongfully-posed order, infinitely.
By having a look at binance/exchange.js, it appears to me that the incriminating code is in the lines 179 and 223.
I would suggest something like changing:
into:
So that, if for some reason that can be due to many factors, an impossible order is attempted, exchange.js doesn't retry it, instead, it waits for the next signal.
Any thoughts on this?
The text was updated successfully, but these errors were encountered: