Commands
Here's a complete reference of all available commands in Daiko Perp (synced with the latest implementation):
Account & Wallet
/start
Initializes your account and Privy wallet if needed, syncs webhooks, and shows your deposit address and quick commands.
/account
Shows overview of balances (Privy SOL, USDC, Drift SOL) and initializes your Drift account when eligible. Provides quick actions for Deposit/Withdraw/Transfer/Export.
/deposit
Displays your SOL deposit address with quick wallet links (Phantom, Backpack, Jupiter, Solflare) and a “refresh balance” button.
/balances
Shows USDC spot value and unrealized perp PnL. Requires an initialized Drift account.
/refresh
Refreshes and displays your latest Privy SOL balance.
/withdraw
Guided flow to withdraw SOL from your Privy wallet:
- Enter destination Solana address
- Enter amount of SOL
- Bot sends the transaction and returns a Solscan link
/transfer
Move SOL between Privy and Drift spot:
- Choose direction: Privy → Drift or Drift → Privy
- Enter amount of SOL
- Confirm transfer with preview
Trading
/positions
Lists open perp positions with size, entry, mark, notional, leverage estimate, and PnL. Shows net worth and total PnL.
/long and /short
Guided market order flows for SOL perps:
- Select leverage (quick buttons)
- Enter margin amount in USD
- Review preview (leverage, margin, notional, estimated size, mark)
- Confirm to place the order
/close
Close an existing perp position by percentage (10/25/50/75/100 or custom). Shows preview and confirmation before submitting a reduce-only market order.
/limit
Set limit orders for perps or spot.
- Perps:
/limit <long|short> <asset> <leverage> <$limitPrice> <amount|percent>- Example:
/limit long SOL 3x $200 $1000or/limit short SOL 5x $180 25%
- Example:
- Spot (SOL/USDC):
/limit <buy|sell> <asset> <$limitPrice> <amount|percent>- Example:
/limit buy SOL $200 $1000or/limit sell SOL $250 50%
- Example:
/takeprofit
Create a reduce-only trigger limit order by percentage from entry or by explicit trigger price. Pick the portion of the position to close and confirm.
/stoploss
Create a reduce-only trigger limit order to protect downside. Choose percentage from entry or a trigger price, then size percentage and confirm.
/orders
Shows all open orders (perp and spot) with intent (Limit/Stop Loss/Take Profit), asset, direction, size, current price, order/trigger prices, and an estimated leverage.
Swaps
/swap
Swap between SOL and USDC in Drift spot balances:
- Percent:
/swap FROM TO 90% - USD amount:
/swap FROM TO $100
Other
/invite
Shows your referral code, shareable bot link, and total referrals. Includes a shortcut button to view referrals.
/docs
Sends a link to the Driftie documentation site.
/export
Exports your Privy wallet private key after an explicit warning confirmation. The sensitive message is auto-deleted after 30 seconds.
Notes
- Requires a funded and initialized Drift account for trading commands
- Orders respect market step sizes; very small sizes may be rejected
- Robust validation and helpful error messages with Solscan links on success
