Skip to main content

Portfolio management commands

Monitor and manage your trading portfolio using natural language. Query positions, check balances, analyze performance, and track orders across all DEXs.

Balance queries​

Account balance​

Check your available funds:

Commands:

  • What's my balance?
  • Show my balance on Hyperliquid
  • How much USDC do I have?
  • Check my Aster balance

AI Response:

Your Hyperliquid perpetual balance:
- Total: 1,250.00 USDC
- Available: 850.00 USDC
- Locked: 400.00 USDC

Your available balance of 850 USDC is what you can use to open new positions or place orders.

Balance Components:

  • Total: Total account balance
  • Available: Funds available for new positions
  • Locked: Funds used in open positions and orders

Multi-DEX balance​

View balances across all exchanges:

Commands:

  • Show my balances on all DEXs
  • What's my total balance across all exchanges?
  • Compare my balances

Position queries​

View open positions​

Check all active positions:

Commands:

  • Show my positions
  • What positions do I have open?
  • Show my Hyperliquid positions
  • List all my open trades

AI Response:

Your open positions on Hyperliquid:

1. BTC-PERP
- Side: LONG
- Size: 0.1 BTC
- Entry Price: $43,250.00
- Mark Price: $43,800.00
- Unrealized PnL: +$55.00 (+6.36%)
- Leverage: 5x
- Margin Used: $865 USDC
- Liquidation Price: $34,600.00

2. ETH-PERP
- Side: SHORT
- Size: 1.0 ETH
- Entry Price: $2,350.00
- Mark Price: $2,320.00
- Unrealized PnL: +$30.00 (+4.26%)
- Leverage: 3x
- Margin Used: $783 USDC
- Liquidation Price: $2,938.00

Total Unrealized PnL: +$85.00 (+5.16%)

Position details​

Get detailed information about specific positions:

Commands:

  • Show my BTC position details
  • What's my ETH position?
  • Get details for my SOL long

Position PnL​

Check profit and loss:

Commands:

  • What's my BTC PnL?
  • Show PnL for all positions
  • How much am I up/down on ETH?
  • Calculate my total unrealized profit

Order management​

View open orders​

Check pending orders:

Commands:

  • Show my open orders
  • What orders do I have pending?
  • List my limit orders
  • Show my stop-loss orders

AI Response:

Your open orders on Hyperliquid:

1. BTC-PERP Limit Buy
- Order ID: 1234567890
- Size: 0.05 BTC
- Limit Price: $42,000.00
- Current Price: $43,800.00
- Status: Open
- Created: 2024-01-09 14:30:00 UTC

2. ETH-PERP Stop-Loss
- Order ID: 1234567891
- Size: 1.0 ETH
- Trigger Price: $2,200.00
- Current Price: $2,320.00
- Status: Open
- Reduce Only: Yes
- Created: 2024-01-09 15:00:00 UTC

Total Open Orders: 2

Order history​

View past orders:

Commands:

  • Show my order history
  • What orders did I place today?
  • Show my last 10 orders
  • Get my BTC order history

Order status​

Check specific order status:

Commands:

  • What's the status of order 1234567890?
  • Check my BTC limit order
  • Is my ETH order filled?

Performance analytics​

Portfolio performance​

Analyze overall trading performance:

Commands:

  • How is my portfolio performing?
  • Show my trading performance
  • What's my total PnL?
  • Calculate my ROI

AI Response:

Portfolio Performance Summary:

Overall Statistics:
- Total Equity: $1,250.00 USDC
- Initial Balance: $1,000.00 USDC
- Total PnL: +$250.00 (+25.0%)
- Realized PnL: +$165.00
- Unrealized PnL: +$85.00

Performance Metrics:
- Win Rate: 65% (13/20 trades)
- Average Win: +$18.50
- Average Loss: -$8.20
- Profit Factor: 2.26
- Best Trade: +$45.00 (BTC long)
- Worst Trade: -$15.00 (SOL short)

Active Positions: 2
Open Orders: 2

Daily/weekly/monthly PnL​

Track performance over time:

Commands:

  • What's my PnL today?
  • Show my weekly performance
  • Calculate my monthly profit
  • How much did I make this week?

Asset performance​

Analyze performance by asset:

Commands:

  • How am I doing on BTC trades?
  • Show my ETH trading performance
  • What's my best performing asset?
  • Which asset am I losing on?

Risk metrics​

Portfolio risk​

Assess overall risk exposure:

Commands:

  • What's my portfolio risk level?
  • How much am I risking?
  • Show my risk metrics
  • Am I over-leveraged?

AI Response:

Portfolio Risk Assessment:

Risk Metrics:
- Total Margin Used: $1,648 USDC (131.8% of balance)
- Available Margin: $850 USDC
- Leverage Ratio: 3.2x (average)
- Liquidation Risk: Moderate

Position Risks:
- BTC: Low risk (liq. at $34,600, -20.9%)
- ETH: Moderate risk (liq. at $2,938, +26.6%)

Recommendations:
- Consider reducing ETH leverage
- Maintain stop-losses on all positions
- Available margin is sufficient for volatility

Liquidation distance​

Check how close positions are to liquidation:

Commands:

  • How close am I to liquidation?
  • Show liquidation distances
  • What's my BTC liquidation risk?
  • Am I safe from liquidation?

Margin utilization​

Monitor margin usage:

Commands:

  • How much margin am I using?
  • What's my margin utilization?
  • Show my available margin
  • Can I open more positions?

Trade history​

Recent trades​

View recent trading activity:

Commands:

  • Show my recent trades
  • What trades did I make today?
  • List my last 5 trades
  • Show my trading history

AI Response:

Recent Trades (Last 5):

1. BTC-PERP LONG - Closed
- Entry: $42,800 | Exit: $43,250
- Size: 0.1 BTC | Leverage: 5x
- PnL: +$45.00 (+5.24%)
- Duration: 2h 15m
- Date: 2024-01-09 12:00 UTC

2. ETH-PERP SHORT - Closed
- Entry: $2,380 | Exit: $2,320
- Size: 1.0 ETH | Leverage: 3x
- PnL: +$60.00 (+8.47%)
- Duration: 4h 30m
- Date: 2024-01-09 08:00 UTC

3. SOL-PERP LONG - Closed
- Entry: $98.50 | Exit: $96.00
- Size: 5.0 SOL | Leverage: 2x
- PnL: -$12.50 (-2.54%)
- Duration: 1h 45m
- Date: 2024-01-08 18:00 UTC

Total: 3 trades | Win Rate: 66.7% | Net PnL: +$92.50

Winning/losing trades​

Filter trades by outcome:

Commands:

  • Show my winning trades
  • What are my losing trades?
  • List my profitable positions
  • Show trades where I lost money

Trade statistics​

Get detailed trading stats:

Commands:

  • What's my win rate?
  • Show my trading statistics
  • Calculate my average profit per trade
  • What's my largest win/loss?

Multi-DEX portfolio​

Cross-DEX overview​

View portfolio across all exchanges:

Commands:

  • Show my portfolio across all DEXs
  • What's my total exposure?
  • Compare my positions on different DEXs
  • Show unified portfolio view

AI Response:

Unified Portfolio Overview:

Hyperliquid:
- Balance: $850 USDC
- Positions: 2 (BTC, ETH)
- Unrealized PnL: +$85.00
- Margin Used: $1,648

Aster:
- Balance: $320 USDC
- Positions: 1 (SOL)
- Unrealized PnL: +$12.00
- Margin Used: $490

Lighter:
- Balance: $180 USDC
- Positions: 0
- Unrealized PnL: $0.00
- Margin Used: $0

Total Portfolio Value: $1,350 USDC
Total Unrealized PnL: +$97.00 (+7.74%)
Active Positions: 3

DEX comparison​

Compare performance across exchanges:

Commands:

  • Which DEX am I most profitable on?
  • Compare my performance across DEXs
  • Where should I focus my trading?

Portfolio alerts​

PnL alerts​

Get notified about profit/loss changes:

Commands:

  • Alert me when my BTC position hits +10%
  • Notify me if my portfolio drops below $1,000
  • Tell me when I'm up $100

Risk alerts​

Monitor risk levels:

Commands:

  • Alert me if I'm close to liquidation
  • Notify me when margin usage exceeds 80%
  • Warn me about high-risk positions

Portfolio optimization​

Rebalancing suggestions​

Get AI recommendations:

Commands:

  • Should I rebalance my portfolio?
  • What positions should I close?
  • How can I optimize my portfolio?
  • Give me portfolio recommendations

Diversification analysis​

Assess portfolio diversity:

Commands:

  • Is my portfolio diversified?
  • What's my asset allocation?
  • Am I too concentrated in one asset?
  • Show my exposure breakdown

Export and reporting​

Export data​

Get portfolio data for external analysis:

Commands:

  • Export my trade history
  • Download my portfolio report
  • Get my trading data as CSV

Tax reporting​

Prepare tax information:

Commands:

  • Show my realized gains for tax purposes
  • Calculate my taxable income from trading
  • What are my capital gains?

Best practices​

1. Regular monitoring​

Check portfolio frequently:

  • Review positions daily
  • Monitor PnL changes
  • Track liquidation distances
  • Verify order status

2. Risk management​

Stay within risk limits:

  • Keep margin utilization under 80%
  • Maintain diversification
  • Use stop-losses on all positions
  • Monitor liquidation risk

3. Performance tracking​

Analyze your trading:

  • Review win rate regularly
  • Identify best/worst performing assets
  • Learn from losing trades
  • Track improvement over time

4. Multi-DEX awareness​

Manage across exchanges:

  • Check balances on all DEXs
  • Compare execution quality
  • Optimize fee costs
  • Diversify exchange risk

Next steps​

Master portfolio management and explore advanced strategies:

Support​