Appearance
Trading Bots
Admin → Trading → Trading Bots (/exchange-control-panel/trading-bots) controls the Spot Grid and DCA bots users run on their Trading accounts. Superadmins only.
Status cards
| Card | Shows |
|---|---|
| Running bots | Bots running now, and how many users run them |
| Invested in running bots | Sum of the running bots' investments (added up across quote coins) |
| Stopped by errors, 7 days | Bots that stopped themselves because of an error (balance gone, market closed, no liquidity…) |
| Last engine pass | When the trading-bots process last handled a running bot. While bots run it should be seconds ago; — with running bots means the process isn't running |
The Bots on / Bots off pill (top right) shows the main switch.
Settings
| Setting | Default | What it does |
|---|---|---|
| Trading bots | On | Off: users can't create new bots (the Create buttons are disabled). Running bots keep going until their owners, or you, stop them. |
| Running bots per user | 10 | 1 – 100. A user at the limit gets You can run up to … bots at a time. |
| Require KYC | Off | On: only users with verified identity can create bots. |
Changes apply at once.
Bots
Every user's bots, running first, 25 per page. Filter by status (Running / Stopped / Error), type (Spot Grid / DCA) and search by the user's email or name or the pair.
Each row shows the user, pair and type with the range and grids (Spot Grid) or base order and safety orders (DCA), the investment, total profit and %, and the status with the error or stop reason.
Stop stops a running bot: all its open orders are cancelled and the funds go back to the user's Trading account. It never sells the user's coin. The user sees Stopped by support on the bot.
The trading-bots process
Bots are driven by the trading-bots PM2 process (php artisan bots:run), listed as Trading Bots Process in Market Services. It runs on every plan, checks running bots every 2 seconds, places the next orders after fills and stops bots on take-profit, stop-loss or errors. It restarts itself every hour to pick up code changes.
bash
php artisan bots:run # runs until stopped
php artisan bots:run --once # one pass, prints how many bots were handledWhen it is stopped, running bots keep their open orders but don't react to fills. Creating and stopping bots still works (both happen in the request), but a new Spot Grid that first buys coin at market only lays its grid once the process runs.
Good to know
- Bot orders are normal spot orders of the user: they appear in the order reports, pay the user's VIP fees and count towards VIP volume and referral commissions.
- Users can't cancel a bot's order by hand; they stop the bot instead.
- A bot stops by itself when its owner is deactivated or deleted.
- Bots trade any active spot market where buying and selling are both enabled. Halting a market's buy or sell side hides it from the bot pair list and refuses new bots on it.
