The max_open_trades setting in MagicTradeBot determines the maximum number of Funding Farming positions that the bot can run simultaneously.
This parameter is crucial for managing capital allocation, risk exposure, and operational complexity.
๐น How It Works
Limits Concurrent Positions
Example:
max_open_trades: 2- The bot will open up to 2 hedged Spot + Futures trades at the same time
- Additional eligible symbols are ignored until a position closes
Controls Capital Usage
Fewer open trades โ less capital tied up at any moment
Helps maintain liquidity for other strategies or unexpected market moves
Manages Risk
Reduces liquidation risk, since fewer positions are active simultaneously
- Lowers execution complexity, minimizing chance of errors in volatile markets
๐น Practical Considerations
| Value | Effect |
|---|---|
| 1 | Very conservative; minimal capital usage and risk |
| 2โ3 | Balanced approach; moderate exposure and opportunity capture |
| 4+ | Aggressive; higher capital requirement and potential liquidation risk |
- Recommended: 1โ3 trades for most users, especially when testing Funding Farming strategies
๐น Example Scenario
- Funding rate threshold = 0.03
- Eligible symbols ranked by funding rate: BTC, ETH, SOL, ADA
max_open_trades = 2โ bot selects BTC and ETH- SOL and ADA are skipped until one of the first trades closes
Result: The bot captures high funding fees while limiting simultaneous exposure.
โ Key Takeaways
max_open_tradeslimits the number of active Funding Farming positionsLower values:
- Reduce capital usage
- Reduce liquidation and execution risk
Higher values:
- Capture more opportunities but increase exposure and risk
- Balancing this parameter is essential for safe and efficient Funding Farming