Simulation vs Live Trading
Nexgent supports two trading modes: Simulation for risk-free testing and Live for real trading on Solana.
Overview
| Aspect | Simulation | Live |
|---|---|---|
| Funds | Virtual SOL | Real SOL |
| Trades | Simulated | On-chain via Jupiter |
| Wallet | sim_xxxxx address | Real Solana wallet |
| Risk | None | Real money at risk |
| Purpose | Learning, testing | Actual trading |
Simulation Mode
What It Is
Simulation mode uses virtual wallets and simulated trade execution. No real transactions occur on the Solana blockchain.
How It Works
- Virtual Wallet: Assigned a
sim_xxxxxaddress - Virtual Balance: You add fake SOL to trade with
- Simulated Trades: Prices from real feeds, but no on-chain execution
- Full Tracking: Positions, P&L, and history tracked as if real
When to Use
- Learning: Understand how Nexgent works
- Testing: Try new strategies without risk
- Development: Test signal integrations
- Demo: Show the platform to others
Setting Up Simulation
- Create an agent with Trading Mode: Simulation
- Add a simulation wallet (auto-generated)
- Add virtual SOL balance
- Enable automated trading (optional)
- Send signals and watch trades execute
Simulation trades use real price data from Jupiter and price feeds, giving you realistic P&L tracking.
Live Mode
What It Is
Live mode executes real trades on the Solana blockchain using actual SOL from configured wallets.
How It Works
- Real Wallet: Configured via environment variables
- Real Balance: Actual SOL from your wallet
- On-Chain Trades: Swaps executed via Jupiter Aggregator
- Transaction Fees: Real Solana network fees
When to Use
- Proven Strategy: After testing in simulation
- Production Trading: Actual profit/loss
- Real Results: When you're ready for real stakes
Requirements for Live Trading
Before going live, ensure you have:
- Tested strategy in simulation mode
- Configured a real Solana wallet
- Funded the wallet with SOL
- Understood the risks
Setting Up Live Trading
1. Configure Wallet
Add wallet private keys to your backend .env:
# Base58 encoded private keys
WALLET_1=your-base58-private-key-here
WALLET_2=another-wallet-if-neededSecurity: Never commit private keys to version control. Keep them secure.
2. Switch to Live Trading
Click the Live Trading toggle in the top-right of the dashboard.
Comparison
Trade Execution
| Step | Simulation | Live |
|---|---|---|
| Get quote | Jupiter API | Jupiter API |
| Execute swap | Simulated | On-chain transaction |
| Transaction fee | Jupiter response data | Jupiter response data |
| Confirmation | Instant | ~400ms (Solana) |
| Failure possible | Yes | Yes (slippage, etc.) |
Position Tracking
| Feature | Simulation | Live |
|---|---|---|
| Real-time prices | β | β |
| P&L calculation | β | β |
| Stop loss monitoring | β | β |
| DCA execution | β | β |
| Historical swaps | β | β |
Risk Profile
| Risk | Simulation | Live |
|---|---|---|
| Lose money | β No | β Yes |
| Transaction failures | β No | β Possible |
| Slippage | Simulated | Real |
| Network congestion | β No | β Possible |
Switching Modes
From Simulation to Live
Only switch to live trading when you're confident in your strategy and understand the risks.
- Review simulation performance: Check historical swaps for your strategy's effectiveness
- Configure live wallet: Set up and fund a real wallet
- Start small: Use conservative position sizes initially
- Monitor closely: Watch your first few live trades carefully
From Live to Simulation
You can switch back to simulation at any time:
- Open agent settings
- Toggle mode to Simulation
- Live positions remain until closed
- New trades will be simulated
Best Practices
Before Going Live
- Run simulation for at least a week - See how your strategy performs across market conditions
- Understand all settings - Know exactly what your stop loss, DCA, and filters do
- Review historical swaps - Analyze wins, losses, and patterns
- Calculate risk - Know the maximum you could lose
When Live
- Start with small amounts - Test with minimal capital first
- Monitor regularly - Check positions at least daily
- Have an exit plan - Know when to disable automated trading
- Keep simulation running - Continue testing new ideas safely
General
- Never invest more than you can afford to lose
- Diversify - Don't put all funds in one agent or strategy
- Stay informed - Crypto markets are volatile
- Use stop losses - Always have downside protection
FAQ
Can I run both modes simultaneously?
A single agent can only operate in simulation OR live mode at any time, not both. You can, however, deploy multiple agents in different modesβsome in simulation, some in liveβand they operate independently.
Do simulation and live use the same price feeds?
Yes. Both modes use the same real-time price data from Jupiter/Pyth/DexScreener.
What happens to positions when I switch modes?
Open positions will be closed. This keeps all resources for that agent focused on its current trading mode and helps reduce the likelihood of rate limiting through integrations like Jupiter.
Is simulation completely accurate?
Simulation is about as close to accurate as you can get without executing on-chain. It uses Jupiter swap quotes and applies that quote data to simulated trades. Because it doesn't execute on-chain, you won't see the final on-chain outcome, but results are usually very close to what you'd get in live trading.