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
- Navigate to Bot Management tab
- Find the Scaling Agent Console at the top of the page
- Type commands or natural language questions
- Press Enter or click Send
First Time?
If you don’t have a running perp_mm bot, the agent will guide you to:- Select an appropriate preset (like “BloFin v7 Long Short Counterscalp”)
- Configure your exchange credentials
- Start your first bot
💬 Commands Reference
Quick Profiles
Apply pre-tuned risk profiles instantly:Fine-Tune Settings
Adjust individual 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:- 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
📈 /symbols Command
Get real-time symbol recommendations for market making:
MM Score Formula:
⚖️ 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
🧮 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
- 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:- You’re LONG, market dumps 2%
- XGrid opens a SHORT position (counter-scalp)
- If market keeps falling, SHORT profits offset LONG losses
- If market reverses, original LONG profits
⚙️ How It Works
Config Synchronization
When you modify settings through the Scaling Agent:- JSON file updated - Bot process reads this on restart
- Database updated - Frontend JSON editor shows new values
- Backup created - Previous config saved with timestamp
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 changesBot not using new settings
Bots read config at startup only. Solution: Restart your bot after making changes📚 Next Steps
- Perp Market Maker Strategy - Deep dive into the strategy
- Bot Configuration - All 100+ parameters explained
- Risk Management - Best practices
- Trading Console - Monitor your bot logs