Draft a perp order
draft_orderDrafts a perpetual order as a link to Angler's trading screen with the order panel filled in (asset, long or short, size in USD, market or limit, leverage, take profit, stop loss, venue). It places nothing: the user opens the link, reviews the order and presses the button themselves. Use it to hand over a trade the user asked for.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"side": "<side>",
"size_usd": "<size_usd>"
},
"name": "draft_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | long buys, short sells. | |
| venue | No | Optional venue id (e.g. hyperliquid, lighter, aster); unset lets Angler route it. | |
| symbol | Yes | Asset ticker, e.g. BTC, ETH, NVDA. | |
| leverage | No | Optional; capped by the market's maximum on the site. | |
| size_usd | Yes | Position size in USD (notional, not margin). | |
| stop_loss | No | Optional stop-loss price. | |
| order_type | No | Default market. | |
| limit_price | No | Required for a limit order. | |
| take_profit | No | Optional take-profit price. |