If you use API keys that support white IP addresses, it is recommended to use permanent IP addresses. In this case you will be protected from such errors. In your case, in spot trading, if orders are not saved in the bot, you can use a backup from the bak folder of files like:
bak/BinanceUSDTOrders.backup-1
bak/BinanceUSDTOrders.backup-2
bak/BinanceUSDTOrders.backup-3
Files with orders with digits at the end 1, 2, 3 are written to the bak folder once every 8 hours with a recording coverage of 24 hours.
To restore an order file you need to close the MoonBot terminal, delete "empty" order files from the data folder (for example, for spot trading on USDT pair like BinanceUSDTOrders.backup, BinanceUSDTOrders.backup2, BinanceUSDTOrders. backup3) copy the appropriate file (either the most recent by date or, if the most recent one does not contain orders, the previous one, you can estimate the backup by the file size, the size of an empty file is 32 bytes) from the bak folder to the data folder and rename them according to the format of similar files in the data folder, for example:
bak\BinanceUSDTOrders.backup-1 -> data\BinanceUSDTOrders.backup
After replacing and renaming the orders file, start MoonBot terminal in administrator mode.
In addition, we recommend that you periodically save the MoonBot terminal folder to a separate archive folder at regular intervals so that you can restore data (report files, open trades, strategies, etc.) from this archive.
Reports on all transactions (open, closed, deleted) in the MoonBot terminal are stored in the data folder, in files like: Binance.db (for the spot market) or Binance Futures.db (for the futures market). In rare cases, if MoonBot terminal is closed unexpectedly, the file with reports may be empty. To restore it, you need to close the MoonBot terminal, then copy the backup of the reports file from the bak folder and the data folder and start MoonBot in administrator mode. In addition, we recommend that you periodically save the MoonBot terminal folder to a separate archive folder at a certain interval so that you can restore the data (report files, open trades, strategies, etc.) from this archive.
When the MoonBot terminal is turned off, you can add a line to the MoonBot.ini file with a new parameter HookRecalcInterval, whose value can be from 200 to 500 (measured in milliseconds) - this is the detector recalculation interval. By default HookRecalcInterval=500 milliseconds). This value affects the detection recalculation rate of the following strategies: MoonHook, Spread, EMA, Activity.
If your MoonBot terminal is located on a remote server without an explorer (core windows), then when you export reports in .csv and .xls format, they are saved to the terminal's Export folder without a file selection window.