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
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 |