Market-making bot v7.0.0: request caching, new commands, and database configuration

The ADAMANT market-making bot is a free, open-source, self-hosted tool for cryptocurrency projects and exchanges. It creates trade volume, maintains spread and liquidity, sets a price range, and builds a live-like dynamic order book. Version 7.0.0 introduces request caching, several new commands, database configuration, and a round of bug fixes and refactoring.

Request caching
Exchange APIs restrict request rates, and during active market-making the bot can hit 429 Rate limit exceeded errors. This interrupts trading and, in some cases, may lead the exchange to block the account.

The new caching feature addresses this by combining the results of queries for balances, order books, and open orders within a short interval of roughly one to two seconds. Previously a paid module, caching is now available to all users.
New commands
The /help command now reports basic information about the bot software and its configuration. Several additional commands have been added for inspecting exchange state and managing individual orders:
/orderbook [pair] [count] returns current bids and asks from the order book.

/trades [pair] [count] returns the most recent trades.

/ticker [pair] provides ticker data in JSON format, similar to /rates.

/order {orderId} retrieves details for a specific order by ID.

/cancel {orderId} cancels a specific order by ID and returns its details.

Database configuration
You can now set database parameters in the config file, including the database name. This makes it possible to run multiple bot instances on a single server. Trading can consume significant CPU and RAM, so check resource load before running several instances side by side.
To configure the database, edit config.jsonc and adjust the db parameters:

This change is backward compatible; if the config is not updated, the bot uses default database parameters.
Connector fixes and other improvements
The Azbit and P2B connectors received fixes for getOrderDetails(), including workarounds for imperfections in both exchange APIs. The Command, Order book, and Trader modules were refactored, and TypeScript types were added as part of ongoing code-quality work. Dependencies were updated, logging was improved, and several minor bugs were fixed.

The bot continues to provide informative notifications so operators can monitor trading activity.

The release and full changelog are available on GitHub: v7.0.0.