UDP Init failed: Could not bind socket. Address and port are already in use. Network functions won't work, sorry" in the MoonBot terminal log occurs when you run multiple copies of the MoonBot terminal with the same port number.
To make this disappear, in each MoonBot terminal, add its unique port in the "Listen UPD port:" field at the Settings - Advanced - Remote tab.
for MoonBot1: 1999
for MoonBot2: 1998
for MoonBot3: 1997
...
and so on.
The MoonBot terminal can automatically generate and accept commands corresponding to basic actions: placing, rearranging orders, selling, canceling orders, and more. Commands are sent to your personal channel in a special form, in which they can be read by other bots. Thus, your bot is the master, bots of other users whom you have invited to your channel are slaves, they will repeat your actions.
The cant parse, will skip logging error occurs when the MoonBot cannot recognize a command for several reasons:
- You made a mistake in command syntax.
- You typed the name of the coin wrong (in your case, the name 1000SHIBA is wrong, the correct spelling is coin without A -> 1000SHIB).
- There is a symbol close to the name of the coin (for example, the command specifies BTC], this is not correct because there is a closing square bracket close to the name of the coin, the correct spelling is BTC ], that is, the name of the coin should be indented left and right with spaces).
Designations:
Coin - Coin;
Price - price, can be set as an absolute value or percentage;
X - % of the order size from the whole deposit;
< > - mandatory parameter,
[ ] - optional parameter.
Letter (M) after command description means that this command is not sent automatically (you can write it manually).
Note: it is important to respect the case of letters in writing the command and do not write brackets in the command - in the example they are given to indicate variable parameters and syntax!
An example of coin buy command syntax:
cmd_Buy <Coin> [Price] [sell [Price] [OrderSize X%] [Key ChannelKey] - Buy a coin at the specified price by the specified % of the set order.
If there is no specified price [Price], then according to the slave bot's strategy settings.
If the sale price with the sell keyword is specified, for example: buy NEO 0.048 sell +15% OrderSize 100%, then the specified sale price will be substituted in the slave bot strategy. So it is equivalent to two commands: buy NEO 0.048 and cmd_UpdateSell 15%.
Parameter Key ChannelKey (optional) is used to specify a strategy with the desired ChannelKey. That is, it allows you to divide commands by strategies. If it is not specified, or there is no strategy with this ChannelKey, the first strategy on the list will be selected.
If you use key in the strategies to divide the commands, the command must be written in full format, for example cmd_Buy BTC 1% sell 1% OrderSize 100% Key Kup, where Kup - is ChannelKey.
The full syntax of commands is spelled out on the page of our website "Asset Management": https://moon-bot.com/en/75-trust-management/
If there is an error in the MoonBot terminal on the Filters / Base tab of the strategy settings when writing the CustomEMA formula, for example, the first letter is not English but Russian, then the entry in the filters on the chart will be displayed as follows:
EMA Filters: CustomEMA: Not a EMA (EMA(5m,1)>-1)
This is probably your case. To correct this error, carefully rewrite the entire formula in the CustomEMA parameter strictly in English.
There are several reasons why a signature may be invalid:
- The secret key is not set
- The secret key does not match the API key
- The parameter passed to the server has no value.
The error /api/v3/order?orderId=×tamp=xxxxx&signature=xxxxx can be as follows
- The timestamp and signature (in this order) are not specified as the last parameters
/sapi/v1/sub-account/status?email=xxx&recvWindow=10000×tamp=xxx&signature=xxx
- The signature is signed with a different Hash algorithm, it should be SHA256
- One user had such an error due to failure of hash API keys in memory in BIOS overclocking mode. In this case it helped to enable the "AI OverClocking" item in ASUS Armoury Crate utility and restart the computer.
To fix it, we recommend creating a new API key from your account and re-registering it in the MoonBot terminal.
For additional advice, please contact the MoonBot Configuration Telegram group at https://t.me/MoonBotSettings.
Such a log entry indicates that the API has not yet deleted information about a token that has already been removed from the exchange, and MoonBot terminal tries to place an order on the nonexistent token, gives a series of errors and gets protected by the API limit. In the latest version of the MoonBot terminal, when a CONTRACT_IN_DELISTING error occurs in the log, a 30-second penalty is now automatically applied to this market to avoid exceeding the API limit. We recommend that you update your MoonBot terminal version to an up-to-date one.
For some strategies in the MoonBot terminal, on the Filters / Price/Position tab of the strategy settings, the SamePosition parameter is used (to place subsequent orders in the direction of the open position). If SamePosition=YES and, for example, a long position has been opened, subsequent orders will also be placed as long orders, and if you try to place short orders, MoonBot will reject this action and indicate the reason in the log: Market XXX is opened in Long position. You need to use this setting correctly or make separate copies of strategies for long and short orders.
To ensure that this parameter is checked by the strategy, set IgnoreFilters = NO on the general Filters tab, and set IgnorePrice = NO on the Filters / Price/Position tab. A green vertical bar should be visible to the left of the Filters / Price/Position tab, indicating that this tab and the parameters in it are not being ignored.
Immediately after registering on the Bybit exchange, you need to change your account type to UTA (ETA in the Russian version). You will be prompted to do this when you first log in to your personal account. Then create API keys and register them in the MoonBot terminal. For more information about connecting to the Bybit exchange, see this page: https://moon-bot.com/en/connect-bybit/.
In the MoonBot terminal, open the Settings - Telegram tab. Check “Listen multiple channels” and uncheck “Buy if more than then 1 channel post”.
When receiving an entry of the following type: USDT-SUI Set Buy order: FAIL; {“retCode”:170241, “retMsg”: “To proceed with trading, users must read through and confirm that they fully understand the project's risk disclosure document. For App users, please update your Bybit App to version 4.16.0 to process.” You should go to spot trading in your exchange account or exchange app, open a trade on that coin, read the risk disclosure agreement and confirm it. After that, this error in the MoonBot terminal log will disappear and you will be able to trade on this coin in normal mode. It is also recommended to update your Bybit trading application in your smartphone to the latest version.
When trading in the MoonBot terminal for the Bybit exchange, if no Buy order has been placed, but there is an entry in the log like: Buy order: FAIL; {"retCode":10001,"retMsg":"estimated will trigger liq", this means that automatic protection has been activated on the Bybit exchange, which prevented an attempt to place a Buy order, the execution of which would have led to the immediate liquidation of the position in the current market situation and the MarkPrice value.
If no orders are placed in the MoonBot terminal for the Gate exchange, and the log contains an entry like: [400] {"label":"CONTRACT_BONUS_DISABLED","message":"can not put order at contract with bonus disabled while having bonus"}, which translates as "unable to place an order under the contract with the disabled bonus, if there is a bonus," then most likely you have activated a voucher for futures trading, but at the same time, the ability to use it for trading or commission is disabled in your Gate exchange account.
Previously, the PRICE_TOO_DEVIATED error in the MoonBot terminal when trading on the Gate exchange led to a stop due to API errors, but in recent versions this situation has been fixed, we recommend updating the terminal to the current version.
Previously, the error "This symbol is not allowed for this account" in the MoonBot terminal when trading on the Binance exchange led to a stop due to API errors, but in recent versions this situation has been fixed, we recommend updating the terminal to the current version.
When a QTY_GREATER_THAN_MAX_QTY error is received on the Binance Futures exchange, the MoonBot terminal gives a penalty for 5 seconds.
In the latest versions of the MoonBot terminal for the Bitget exchange, the error "The order amount exceeds the balance" has been fixed, which caused the take to disappear, we recommend updating the terminal to the current version.
In the latest versions of the MoonBot terminal for the Gate exchange, a situation has been fixed that led to an error in the log like: RISK_LIMIT_EXCEEDED, we recommend updating the terminal version to the current one.
If there is an entry in the MoonBot terminal log that reads: Need Backup module!, this indicates that you have not activated the paid Backup module for testing strategies based on historical trade data. To activate it, go to the Settings - PRO tab and click on the Moon Credits label or click on the PRO version label in the lower right corner of the main window of the MoonBot terminal. Next, in the Moon Credits window that opens, under the label "Activate Backup", if you have 500 Moon Credits on your balance, click on the "Activate for 500 Credits" button and the Backup module will be activated. If you have a smaller number of Moon Credits on your balance, please contact our administrators to purchase them.
If, when trying to connect the MoonBot futures terminal to the Binance exchange, the inscription "Enter the correct API keys" lights up red on the Settings - Login tab, "Connection: ERROR" lights up red at the bottom left of the main window, and in the log you find a line like: Last Error: error in FastParsePositionInfo, then in the Binance exchange's personal account, do transfer a small amount from the spot to the futures of the corresponding account or subaccount, and then restart the MoonBot terminal in administrator mode.
If you see an entry like "Error sending data: (12029) Server connection cannot be established" in the MoonBot terminal log for the Binance exchange, this indicates problems connecting to the Binance exchange server. Possible causes and solutions:
1) Internet connection problems: Make sure your internet connection is stable. Try using alternative networks or browsers to fix possible problems. Try using the mobile internet temporarily.
2) MoonBot Connection settings: In the Settings - Special - Engine Settings section, try changing the connection method to the Binance exchange to eliminate possible connection errors.
3) Deleting Binance API Keys: The Binance exchange can delete API keys without the IP addresses specified in the whitelist. Create new API keys, add your IP address to the whitelist, and grant the necessary permissions to trade on the Binance exchange. Register the new API keys in the MoonBot terminal and check the connection to the Binance exchange.
The error "Account has insufficient balance for requested action" in the MoonBot terminal log for the Binance exchange occurs if all funds on the deposit are used and an attempt is made to place a new order. The exchange returns this error when the order amount exceeds the available balance on the trading balance.
If your funds are already involved in other orders or positions, the MoonBot terminal will not be able to place a new order and will display this error.
Funds that are not in a trading (spot or futures) wallet, but, for example, in a "Replenishment Wallet", are also unavailable for trading - an attempt to place an order will lead to a similar error.
To place an order, it is necessary to take into account not only the transaction amount, but also the commission. If the commission is not paid in BNB, but in a traded currency, part of the funds is held against the commission, which may lead to an insufficient balance for a new order.
The error will occur until the required balance on the trading wallet is released.
An error in the MoonBot terminal log of the form: [400] ab not enough for new order means that there is not enough available balance (ab = available balance) or available margin to open a new order for the selected coin. Check the available balance on the exchange account and top it up if necessary. Make sure that the funds are not occupied in other orders or positions. Reduce the order size if there are not enough funds. Check if the funds have been blocked for other obligations.
Recently, the Bybit exchange increased the minimum size of the position being sold, so the MoonBot terminal, installed to monitor Bybit Spot orders, may stop selling small coin balances smaller than this size and the log will contain an entry like: Set Sell order: FAIL; Error Order value exceeded lower limit. [170140] . We recommend updating the terminal to the current version. And small coin balances can be sold in your Bybit exchange account via the web interface.