Skip to main content

Scaling Agent

The Scaling Agent is an interactive command-line assistant built into the Bot Management tab. It helps you optimize your perp market maker (perp_mm) bot settings through natural conversation and guided commands.
The Scaling Agent only works with perp_mm strategy bots. Vortex DCA and other strategies use different parameters.

🚀 Getting Started

Accessing the Agent

  1. Navigate to Bot Management tab
  2. Find the Scaling Agent Console at the top of the page
  3. Type commands or natural language questions
  4. Press Enter or click Send

First Time?

If you don’t have a running perp_mm bot, the agent will guide you to:
  1. Select an appropriate preset (like “BloFin v7 Long Short Counterscalp”)
  2. Configure your exchange credentials
  3. Start your first bot

💬 Commands Reference

Quick Profiles

Apply pre-tuned risk profiles instantly:
DEGEN mode uses 100x leverage. You could lose your entire account. Only use with money you can afford to lose!

Fine-Tune Settings

Adjust individual parameters:
Available Parameters:

Analysis Commands

Learn


🎯 Natural Language

You can also just ask questions naturally:
  • “I want more profit” - Get scaling recommendations
  • “Make my bot safer” - Conservative settings guide
  • “What’s my risk level?” - Risk analysis
  • “Explain equity_pct” - Educational content
  • “Need more grid levels” - Grid configuration help

📊 /overview Command

See all your running bots across exchanges:
Returns:
  • Active exchanges (Bybit, BloFin, etc.)
  • Running bot count
  • Total effective exposure across all bots
  • Per-bot breakdown with config, strategy, exposure
  • Risk warnings if exposure is high
Example output:

📈 /symbols Command

Get real-time symbol recommendations for market making:
Returns top 10 symbols ranked by MM Score: MM Score Formula:
Best for MM: High volume, low spread, moderate ATRP (0.1-0.5)

⚖️ Risk Profiles Explained

Conservative

  • Best for: Learning, large accounts, uncertain markets
  • Effective exposure: ~30% of equity
  • 1% adverse move costs: ~0.3% of account

Moderate

  • Best for: Balanced risk/reward
  • Effective exposure: ~250% of equity
  • 1% adverse move costs: ~2.5% of account

Aggressive

  • Best for: Experienced traders, smaller accounts
  • Effective exposure: ~900% of equity
  • 1% adverse move costs: ~9% of account

Degen

  • Best for: Gambling, “fun money” only
  • Effective exposure: ~2000% of equity
  • 1% adverse move costs: ~20% of account
Degen mode requires explicit confirmation. You will be asked to type /confirm scale degen before applying.

🧮 Key Concepts

equity_pct (The Growth Engine)

Controls what % of your account equity is used for grid sizing: Why it matters:
  • As your account grows, positions automatically scale up
  • Combined with leverage: equity_pct × leverage = effective exposure
  • At 10% with 75x: effective exposure = 750%

Effective Exposure Formula

Example:
  • 5% equity_pct × 50x leverage = 250% exposure
  • A 1% adverse price move costs: 250% × 1% = 2.5% of your account

XGrid Counter Scalp

When enabled, automatically opens counter-positions when market moves against you:
  1. You’re LONG, market dumps 2%
  2. XGrid opens a SHORT position (counter-scalp)
  3. If market keeps falling, SHORT profits offset LONG losses
  4. If market reverses, original LONG profits
Best for: Volatile, choppy markets where direction is uncertain

⚙️ How It Works

Config Synchronization

When you modify settings through the Scaling Agent:
  1. JSON file updated - Bot process reads this on restart
  2. Database updated - Frontend JSON editor shows new values
  3. Backup created - Previous config saved with timestamp
Changes require a bot restart to take effect. The running bot uses the config from when it started.

Safety Features

  • Automatic backups before any change
  • Validation prevents invalid configurations
  • Warnings for dangerous settings
  • Confirmation required for degen mode

🛠️ Troubleshooting

”No perp_mm configs found”

Your bot isn’t using the perp_mm strategy. The Scaling Agent only works with perp_mm bots. Solution: Start a bot with a perp_mm preset like “BloFin v7 Long Short Counterscalp”

Changes not appearing in JSON editor

SQLAlchemy JSON column detection issue (rare). Solution: Refresh the page after making changes

Bot not using new settings

Bots read config at startup only. Solution: Restart your bot after making changes

📚 Next Steps

Happy scaling! 🚀