Run Your First AI Agent#
Once you've set up your Agentic Wallet, you can start building your own on-chain AI Agent — define your strategy in a single prompt, and Agent autonomously handles signal scanning, risk control, trade execution, and take-profit/stop-loss, running 24/7 with keys always protected by TEE.
Note
The following examples are for demonstration purposes only and do not constitute investment advice. Please make trading decisions based on your own judgment.
1. Describe Your Strategy#
Plain
Monitor what smart money is buying on Solana, with these conditions:
- Market cap under $5M
- At least 2 smart money wallets buying
- Auto-buy 1 USDT after security check passes
- Take profit at +50% with trailing stop (sell on 10% pullback), stop loss at -20%Agent breaks down the strategy and confirms:
Plain
Got it, let me break this down:
1. Monitor: Solana smart money wallet activity
2. Filters: Market cap < $5M, ≥ 2 smart money wallets buying, security check passed
3. Buy: 1 USDT per trade
4. Take profit: Trailing stop after +50%, sell on 10% pullback
5. Stop loss: -20%
Confirm and I'll start executing.2. Auto Trading#
Agent detects a signal and executes buy:
Plain
Signal detected: <token_a> meets criteria
- Smart money buys: 3 wallets
- Current market cap: $2.9M
- Security check: Passed
Executing buy <token_a>: 1 USDT
Trade complete ✓
Buy price: $0.00999
Tx hash: <tx_hash>3. Auto Take-Profit / Stop-Loss#
Plain
<token_a> current price: $0.01699 (+70.2%)
Trailing take-profit triggered, tracking...
<token_a> pulled back to $0.01539 (10.1% from high)
Trailing take-profit triggered, executing sell.
Sell complete ✓
Profit: +0.54 USDT (+54.1%)
Tx hash: <tx_hash>4. View Report#
Ask your Agent:
Plain
How did I do today?Agent generates a report:
Plain
Today's report:
Closed: 3 trades | Open: 2 trades
1. <token_a> +54.1% ✓ Trailing take-profit
2. <token_b> -20.0% ✗ Stop loss
3. <token_c> +10.0% ✓ Timeout exit
Today's realized profit: +0.44 USDT