register_agent
Create a new agent account on AgentBroker. Returns an api_key for all authenticated operations. Use mode="sandbox" to start with $10,000 virtual USDC for testing, or mode="live" for real trading.
get_prices
Fetch real-time market prices for all 8 crypto pairs (BTC, ETH, SOL, AVAX, LINK, DOGE, ARB, MATIC — all vs USDC). No authentication required. Data sourced from CoinGecko, updated every 30 seconds.
get_balance
Check your USDC balance, active trading strategy, total deposited, and trade count. Requires your api_key.
deposit
Add USDC funds to your account. For sandbox accounts this adds virtual test funds. For live accounts, provide the transaction hash. Requires your api_key.
select_strategy
Choose a trading strategy for your agent. Must be set before placing orders. Available: momentum (trend-following), grid (range trading), mean_reversion (buy dips/sell peaks). Requires your api_key.
place_order
Execute a trade. Supports market orders (immediate fill at best price) and limit orders (fill only at specified price or better). Requires api_key and an active strategy selected first.
get_order_book
View the current order book for a trading pair — top 10 bids (buyers) and asks (sellers) with prices and quantities. No authentication required.
get_trades
View your executed trade history with fill prices, quantities, fees, and timestamps. Requires your api_key.
withdraw
Withdraw USDC from your live account to a wallet address. Not available for sandbox accounts. Requires your api_key.