Trading Commands
Execute trades using natural language commands. The AI agent handles order placement, position management, and risk controls across all supported DEXs.
Opening Positions
Market Orders
Execute immediate trades at current market price:
Perpetual Futures:
Long 0.1 BTC with 5x leverageShort 1 ETH with 3x leverageBuy 0.5 SOL on HyperliquidOpen a long position on BTC, size 0.1, 10x leverage
Spot Trading:
Buy 10 HYPE with USDCSwap 50 USDC for PURRPurchase 100 HYPE tokens
AI Workflow:
- Sets leverage (if specified for perpetuals)
- Calculates margin requirements and fees
- Shows order summary with liquidation price
- Asks for confirmation
- Executes trade after confirmation
Limit Orders
Place orders at specific price levels:
Commands:
Buy 0.1 BTC at $42,000 with 5x leverageLong ETH at $2,300, size 1, leverage 3xPlace limit buy order for SOL at $95
Order Details:
- Order remains open until price is reached
- No execution if price never hits limit
- Can be cancelled anytime before execution
Order Confirmation Flow
Every trade requires explicit confirmation:
You: Long 0.1 BTC with 5x leverage
AI: I'll help you place this order. Let me set up the leverage first.
✅ Leverage successfully set to 5x (cross) for BTC
Order Summary:
- Asset: BTC
- Side: BUY (LONG)
- Size: 0.1 BTC
- Order Type: Market
- Leverage: 5x
- Estimated Entry: ~$43,250
- Required Margin: ~$865 USDC
- Liquidation Price: ~$34,600
- B3X Fee: ~$2.16 (0.05%)
- DEX Fee: ~$1.95 (0.045%)
- Total Fees: ~$4.11
This will open a long position. Do you want to proceed?
You: yes
AI: ✅ Order placed successfully! Order ID: 1234567890
Your BTC long position:
- Entry Price: $43,250.00
- Position Size: 0.1 BTC
- Leverage: 5x
- Margin Used: $865 USDC
- Liquidation Price: $34,600.00
Leverage Management
Setting Leverage
Adjust leverage before or during order placement:
Commands:
Set leverage to 10x for BTCChange ETH leverage to 5xUse 3x leverage for my next trade
Leverage Modes:
- Cross Margin: Uses entire account balance as collateral
- Isolated Margin: Risk limited to position margin (DEX-specific)
Leverage Limits:
- Minimum: 1x (no leverage)
- Maximum: 1x-125x (varies by DEX and asset)
- Recommended: 2-10x for beginners
Leverage in Order Commands
Specify leverage directly in trade commands:
Long 0.1 BTC with 10x leverage
Short ETH, size 1, 5x leverage
Buy 0.5 SOL with 3x leverage on Hyperliquid
Position Management
Closing Positions
Exit positions at market price:
Full Position Close:
Close my BTC positionExit my ETH longClose all my positionsSell my entire SOL position
Partial Position Close:
Close 50% of my BTC positionReduce my ETH position by 0.5Close half of my SOL long
AI Response:
I'll close your BTC long position at market price.
Position Summary:
- Current Size: 0.1 BTC
- Entry Price: $43,250.00
- Current Price: $43,800.00
- Unrealized PnL: +$55.00 (+6.36%)
- Leverage: 5x
Closing this position will realize your profit/loss.
Proceed?
Stop-Loss Orders
Protect positions from excessive losses:
Commands:
Set stop-loss for my BTC position at $42,000Set SL at $2,200 for ETHAdd stop-loss to my SOL long at $90
Stop-Loss Types:
- Market Stop-Loss: Executes at market price when triggered
- Limit Stop-Loss: Executes at specified limit price (DEX-specific)
AI Response:
I'll set a stop-loss order for your BTC long position.
Stop-Loss Order Summary:
- Trigger Price: $42,000.00
- Current Price: $43,250.00
- Max Loss: ~$125.00 (-14.45%)
- Order Type: Stop-Loss Market
- Reduce Only: Yes
When BTC drops to $42,000, your position will automatically
close at market price to limit losses.
Proceed?
Take-Profit Orders
Lock in profits automatically:
Commands:
Set take-profit for my BTC position at $45,000Set TP at $2,500 for ETHAdd take-profit to my SOL long at $105
AI Response:
I'll set a take-profit order for your BTC long position.
Take-Profit Order Summary:
- Trigger Price: $45,000.00
- Current Price: $43,250.00
- Potential Profit: ~$175.00 (+20.23%)
- Order Type: Take-Profit Market
- Reduce Only: Yes
When BTC reaches $45,000, your position will automatically
close at market price.
Proceed?
Combined TP/SL
Set both orders simultaneously:
Commands:
Set TP at $45,000 and SL at $42,000 for my BTC positionAdd TP $2,500 and SL $2,200 to my ETH long
Order Types
Market Orders
Execute immediately at best available price:
Characteristics:
- Instant execution
- Price may vary slightly from displayed
- Best for urgent trades
- Higher fees (taker fees)
Use Cases:
- Quick entry/exit
- High liquidity markets
- Time-sensitive trades
Limit Orders
Execute only at specified price or better:
Characteristics:
- Guaranteed price (if executed)
- May not execute if price not reached
- Lower fees (maker rebates on some DEXs)
- Requires patience
Use Cases:
- Better entry prices
- Non-urgent trades
- Fee optimization
Stop-Loss Orders
Trigger when price reaches stop level:
Characteristics:
- Automatic risk management
- Executes as market order when triggered
- Reduce-only (closes position)
- Essential for risk control
Use Cases:
- Limit downside risk
- Protect profits
- Automated exit strategy
Take-Profit Orders
Trigger when price reaches profit target:
Characteristics:
- Automatic profit taking
- Executes as market order when triggered
- Reduce-only (closes position)
- Removes emotion from exits
Use Cases:
- Lock in profits
- Achieve price targets
- Disciplined trading
Advanced Order Commands
Modify Existing Orders
Update order parameters:
Commands:
Change my BTC limit order price to $42,500Update my ETH stop-loss to $2,250Modify my SOL take-profit to $100
Cancel Orders
Remove pending orders:
Commands:
Cancel my BTC limit orderCancel order ID 1234567890Cancel all my pending ordersRemove my ETH stop-loss
Order Status
Check order information:
Commands:
What's the status of order 1234567890?Show my pending ordersCheck my BTC limit order status
Risk Management Commands
Position Size Calculation
Get recommendations for position sizing:
Commands:
How much BTC can I buy with $1,000?What position size should I use for 2% risk?Calculate position size for BTC with $500 margin
Liquidation Price
Check liquidation levels:
Commands:
What's my BTC liquidation price?Show liquidation prices for all positionsHow close am I to liquidation on ETH?
Risk Assessment
Evaluate position risk:
Commands:
Is my BTC position risky?What's my portfolio risk level?Should I reduce my leverage?
Multi-Asset Trading
Simultaneous Orders
Place multiple orders at once:
Commands:
Long 0.1 BTC and 1 ETH with 5x leverageOpen positions on BTC, ETH, and SOLBuy BTC and short ETH simultaneously
Portfolio Rebalancing
Adjust multiple positions:
Commands:
Close all my losing positionsReduce all positions by 50%Exit all positions except BTC
Trading Strategies
Dollar-Cost Averaging
Accumulate positions over time:
Commands:
Buy $100 worth of BTCAdd $50 to my ETH positionIncrease my SOL position by $200
Scaling In/Out
Gradually build or reduce positions:
Commands:
Add 0.05 BTC to my positionScale out 25% of my ETH positionIncrease my SOL long by 0.5
Hedging
Offset risk with opposite positions:
Commands:
Hedge my BTC long with a short on AsterOpen opposite position to my ETH longCreate a market-neutral position
Fee Calculation
Check fees before trading:
Commands:
How much will this trade cost in fees?Calculate fees for 0.1 BTC orderWhat are the total fees for this position?
AI Response:
Fee Breakdown for 0.1 BTC Market Order:
Position Value: $4,325.00
- B3X Fee: $2.16 (0.05%)
- Hyperliquid Taker Fee: $1.95 (0.045%)
- Total Fees: $4.11 (0.095%)
Net Cost: $4,329.11
For comprehensive fee information across all DEXs, see Multi-DEX Strategies - Fee Optimization.
Trading Best Practices
1. Always Confirm Orders
Review order summary carefully before confirming:
- Check asset, size, and leverage
- Verify liquidation price
- Understand fee impact
- Confirm DEX selection
2. Use Stop-Losses
Protect every position:
- Set SL immediately after entry
- Risk max 1-2% per trade
- Move SL to breakeven when profitable
- Never remove SL in losing position
3. Take Profits
Lock in gains systematically:
- Set TP targets before entry
- Consider partial exits
- Don't be greedy
- Secure profits regularly
4. Manage Leverage
Use leverage responsibly:
- Start with 2-3x leverage
- Increase gradually with experience
- Avoid >10x leverage as beginner
- Understand liquidation risk
5. Monitor Positions
Stay informed:
- Check positions regularly
- Watch liquidation distance
- Monitor funding rates
- Track unrealized PnL
Common Trading Scenarios
Opening a Long Position
You: What's the BTC price?
AI: BTC is at $43,250
You: Long 0.1 BTC with 5x leverage
AI: [Shows order summary]
You: yes
AI: ✅ Position opened
Setting Stop-Loss and Take-Profit
You: Set SL at $42,000 and TP at $45,000 for my BTC position
AI: [Shows both order summaries]
You: confirm
AI: ✅ Stop-loss and take-profit orders placed
Closing Position
You: What's my BTC PnL?
AI: Your BTC position is up $55 (+6.36%)
You: Close my BTC position
AI: [Shows closing summary]
You: yes
AI: ✅ Position closed, profit realized: $55
Troubleshooting
"Insufficient Balance"
Solution: Reduce position size, lower leverage, or deposit more funds
"Leverage Update Failed"
Solution: Check leverage is within allowed range (1x-125x) for the asset
"Order Placement Failed"
Solution: Verify sufficient margin, correct symbol, and market availability
"Position Not Found"
Solution: Check positions with Show my positions - may have been closed or liquidated
Next Steps
Master trading commands and explore advanced features:
- Portfolio Commands - Monitor and analyze your trades
- Multi-DEX Strategies - Trade across multiple exchanges
- Trading Signals - Generate AI-powered trading signals
Support
- Discord: discord.gg/Fz7aDWkp
- GitHub: github.com/b3x-ai