-
-
Notifications
You must be signed in to change notification settings - Fork 49
Description
Arbitrader can get into a mode where it's waiting for one or more limit orders to fill, either to open or close a pair of positions. If you have bad luck it can be a very long time before the orders fill, if they ever do. Currently there is no way to escape from this mode unless the orders fill. It would be nice to have a graceful way to exit this situation.
I propose a new condition like force-close or exit-when-idle named adjust-limit-orders. When you create this file, Arbitrader will look at the order(s) it's waiting on. It will adjust the price on the open order(s) to match whatever the current ticker is in TickerService so that the orders will probably close. The command would be repeatable in case it didn't work the first time.
Of course all profit estimations are thrown off by this but you wouldn't have to exit the program, manually kill the orders in the exchanges, erase the state file, and restart like you do now.