Place order
place_orderPlace a REAL order. Market orders are priced by WenLong from its own mark with a small slippage buffer. leverage (integer) is applied to the market before an opening order; omitted, the open position's leverage is used (required when there is no position). take_profit / stop_loss: on a limit order they ride the order; on a market order they are placed as reduce-only triggers after the fill.
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": {
"coin": "<coin>",
"side": "<side>",
"size_usd": "<size_usd>",
"order_type": "<order_type>"
},
"name": "place_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Market name as on Hyperliquid, e.g. BTC, ETH, xyz:GOLD | |
| side | Yes | ||
| leverage | No | ||
| size_usd | Yes | Order size in USD notional | |
| stop_loss | No | Stop-loss trigger price | |
| order_type | Yes | ||
| limit_price | No | Required for a limit order | |
| margin_mode | No | For a new position; default cross, or isolated where the market allows only isolated. An open position keeps its own mode. | |
| reduce_only | No | Only reduce an open position | |
| take_profit | No | Take-profit trigger price | |
| client_order_id | No | Optional idempotency id (0x + 32 hex), a new one for every new order. Send the same one when retrying the same order: a repeat is not placed twice. |