BobaDocs
Capabilities

Perps Trading

Trade Hyperliquid perps from your agent, with leverage, TP/SL and full position management.

Your agent trades perps on Hyperliquid, a fully on-chain order book exchange with CEX-level speed and liquidity. Your Hyperliquid account is set up automatically: no separate signup or API keys.

  • Margin is held in USDC on Hyperliquid, funded from your agent wallet
  • PnL settles in USDC
  • Withdrawals return funds to your agent wallet
Perps are high risk. Start small and cap leverage until your flows are proven.

Market data

Check markets before you trade: prices, funding, open interest, order book depth and candles.

PromptWhat happens
"Show me the top perp markets"Top markets by 24h volume
"Show me the highest funding rate perps"Markets sorted by funding
"Top 50 perps by open interest"Markets ranked by open interest
"Give me the ETH perp details"Price, funding, 24h volume, open interest
"Show me the BTC order book"Bid/ask levels with sizes
"Show me BTC 1h candles"Hourly OHLCV data
Check the order book before large market orders. Thin books mean more slippage.

Place orders

Orders are sized in USD by default.

PromptWhat happens
"Long $100 of BTC"$100 market long
"Short $500 of ETH"$500 market short
"Long $500 of BTC at $95,000"Limit long, fills only if BTC reaches $95,000
"Long $1000 of BTC with 10x leverage"$1,000 position on $100 margin
"Long $500 ETH with SL at $3,200 and TP at $4,000"Opens the position with both exits set

Market orders fill right away at the best price. Use them when speed matters. Limit orders fill only at your price or better. Use them for a specific entry, or when the book is thin.

Leverage and margin

Set leverage from 1x up to the market's maximum (up to 50x), and choose a margin mode per asset.

PromptWhat happens
"Set BTC leverage to 10x"New BTC orders use 10x
"Switch ETH to isolated margin"ETH positions get their own collateral
"What's my current BTC leverage?"Shows the current setting
LeverageMargin for a $10,000 positionApprox. distance to liquidation
1x$10,000~100% move
5x$2,000~20% move
10x$1,000~10% move
20x$500~5% move
50x$200~2% move
  • Cross margin (default): all positions share your account balance as collateral.
  • Isolated margin: each position has its own collateral, which caps the loss per position.

Stop-loss, take-profit and conditionals

PromptWhat happens
"Add a stop-loss on my BTC long at $92,000"Closes the long if BTC drops to $92,000
"Stop-loss my SOL long at 5% below entry"Stop 5% under your entry
"Set a take-profit on my BTC long at $105,000"Closes the long at $105,000
"Move my ETH stop to $3,200"Updates the existing stop

Stops trigger a market order by default, so the fill can differ slightly from your stop price in fast markets. Ask for a stop-limit if you want price control, at the risk of not filling.

Positions, orders and history

PromptWhat happens
"Show my open positions and unrealized PnL"Positions with entry, mark, liquidation price and PnL
"Show my open orders"Resting limit and trigger orders
"Close my ETH position"Market-closes the whole position
"Close half my BTC long"Partial close
"Cancel all my open orders"Cancels resting orders
"Show my fills from the last week"Trade history for review or analysis

Order types

Market, Limit, Stop Market, Stop Limit, Take Market, Take Limit, TWAP and Scale. See Trading perps for what each one does.

Funding

  • Positive funding: longs pay shorts
  • Negative funding: shorts pay longs

Ask your agent to monitor funding, or to set up an automation that alerts you when funding flips.