Setup
Start the bot with:Commands
/start
/start
Description: Initialize the bot and display a welcome message with
available commands.Parameters: NoneExample:Response: Welcome message with command overview and inline buttons
for common actions.
/health
/health
Description: Check API server health status.Parameters: NoneExample:Response: Server status, uptime, and chain connection info.
/trade
/trade
Description: Execute a spot token swap on Arbitrum.Parameters:Flow:
amount— Amount to swap (human-readable)tokenIn— Input token symbolfor— Literal keywordtokenOut— Output token symbol
- Bot parses the trade parameters
- Fetches a quote from the API
- Displays quote with confirm/cancel inline buttons
- On confirm, submits the swap and returns the transaction hash
/perp
/perp
Description: Open or close a leveraged perpetual position on GMX V2.Parameters:Flow:
action—openorcloseleverage— Leverage multiplier (for open)side—longorshortmarket— Market pair (ETH, BTC, ARB, LINK)collateral— USDC collateral amount (for open)
- Bot validates parameters
- Displays position summary with confirm/cancel buttons
- On confirm, submits the order to GMX V2 keepers
/portfolio
/portfolio
Description: View current wallet balances and DeFi positions.Parameters: NoneExample:Response: Formatted summary including:
- ETH and USDC balances
- Aave V3 health factor, collateral, and debt
- Open GMX V2 positions with PnL
- TimeBoost express lane status
/timeboost
/timeboost
Description: View TimeBoost express lane status and optionally
submit a bid.Parameters (optional):Response (status): Current round number, controller address, time
remaining in round, and whether you control the express lane.Response (bid): Bid confirmation with round number and amount.
bid— Keyword to submit a bidamount— Bid amount in ETH
Inline Callbacks
The bot uses Telegram inline keyboard buttons for action confirmation:| Callback | Action |
|---|---|
confirm_trade | Execute the quoted swap |
cancel_trade | Cancel the pending swap |
confirm_perp | Submit the perpetual order |
cancel_perp | Cancel the perpetual order |
confirm_bid | Submit the TimeBoost bid |
cancel_bid | Cancel the bid |
Natural Language
In addition to structured commands, you can send natural language prompts directly to the bot. These are forwarded to the agent API asPOST /agent/prompt:
CLI Commands
The ouroborai CLI provides terminal-based access to the same agent functionality:API_URL from the environment or defaults to
http://localhost:3000.