place_order
Place orders on Hyperliquid with automatic take-profit and stop-loss calculation when prices are not provided.
Instructions
Place an order on Hyperliquid with optional market price, and auto-calculate TP/SL if not provided.
Args: symbol: Trading pair, e.g., "BTC/USDC:USDC" side: 'buy' or 'sell' size: Order size (quantity) price: Limit price for main order (default: None, uses current market price) leverage: Leverage to set (default: 10) tp_price: Take profit price (default: None, auto-calculated) sl_price: Stop loss price (default: None, auto-calculated)
Returns: Dict with order details or error
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": "<size>"
},
"name": "place_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| size | Yes | ||
| price | No | ||
| symbol | Yes | ||
| leverage | No | ||
| sl_price | No | ||
| tp_price | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |