place_limit_order
Place a limit order on HyperLiquid for a given coin, specifying buy/sell side, token quantity, and limit price to open or close positions.
Instructions
Place a basic limit order (for opening new positions or manual closing)
Args: coin: Trading pair (e.g., "BTC", "ETH") side: Order side ("buy" or "sell") size: Number of tokens/coins to trade (NOT dollar value - e.g., 0.1 for 0.1 SOL, not $20) price: Limit price per token (e.g., 150.0 for $150 per SOL) reduce_only: Whether order should only reduce existing position client_order_id: Optional client order ID (128-bit hex string, e.g. 0x1234567890abcdef1234567890abcdef)
IMPORTANT: The 'size' parameter is the NUMBER OF TOKENS, not dollar value. If user wants "$20 worth of SOL" at $150/SOL, calculate: $20 ÷ $150 = 0.133 SOL
Note: For setting take profit/stop loss on existing positions, use set_take_profit_stop_loss instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | ||
| side | Yes | ||
| size | Yes | ||
| price | Yes | ||
| reduce_only | No | ||
| client_order_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||