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/
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 the SamePosition parameter is used (place subsequent orders in the direction of the open position), if SamePosition=YES and, for example, a long position was opened, then subsequent orders will also be placed in long position, but if you try to place orders in short position MoonBot will reject this action and indicate in the log the reason: Market XXX is opened in Long position. You need to use this setting correctly or make copies of strategies for long and short orders separately.
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.