Control of orders and positions
Functionality available in the PRO version.
There are a number of situations when unwanted orders and positions may appear on the exchange:
When trading manually, it is enough (and necessary!) to simply tick Ignore Replacing Bug (Settings – special), the principle of its operation is explained in more detail at the end of the article.
When trading manually, you can see the orders and positions yourself and can take action to close them.
In autotrading, if for example the bot is installed on a VDS, and there is a network failure on this VPS, the bot will not be able to do anything.
To solve this situation, the control functionality is developed. Monitoring bots and working bots must be located in different regions or at different providers!
1) On the working bot should be ticked “Monitor orders of this bot”, optionally set the IP VDS with the tracking bot (for control by ping).
2) Configuring tracking bots:
3) Number of monitoring bots:
Spot: 1 bot monitors all accounts (and will cancel orders for all pairs; look for and sell hanging positions in the base currency it works on)
Futures: 1 bot per market (will cancel orders and look for hanging positions only for the market on which it works).
Total number of tracking bots required:
1 bot tracking the spot market of Binance exchange
1 bot tracking the USDT futures market on Binance exchange
1 bot tracking the BUSD futures market on Binance exchange
1 bot tracking the Binance quarter market
1 bot tracking the spot market on Huobi exchange
You can insert 20-30 API keys into each tracking bot. A larger number of keys can lead to an API ban when the bot starts cancelling all orders on all accounts at once; therefore, if there are more than 30 accounts, it is required to additionally separate the monitoring bots on different servers (since the API load is counted by server IP). So that each bot has no more than 30 keys.
Read more about the Ignore Replacing Bug tick box:
The auto-sell of hanging positions and the Binance ignore replacing bug functions are closely related: if you enable the ignore, there may be hanging positions that need to be sold by the monitoring bot.
If you do NOT enable error ignore, then on the contrary, when the working bot loses an order, the monitoring bot may perceive this as a hanging position and sell it, after which the working bot will find the order and sell it again.
Now, if an order is lost due to an error, the bot searches for it (in the order history) for some time. This is the ” replacing” lag – when it is not known whether the take is placed or not.
With this option enabled, if an order is lost due to an error, the bot does not search for anything, but simply places a new one. Sell does not hang in the replaying, because it is immediately placed again, but there is a possibility that this way 2 sells will be placed (instead of 1). This can lead to double buying and position hangs, and the hanging position will be handled by position control.
When trading manually, it is mandatory to switch on the Ignore Replacing Bug tick box and manually monitor for “extra” positions (via menu-balances).
When auto-trading it is desirable to switch on the Ignore Replacing Bug checkbox and set up monitoring bots.