My ISP changed my IP address and my MoonBot spot terminal was unable to connect to the exchange and save order data during the upgrade. Is it possible to restore orders in the bot?

: File system

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.