factor_hl_place_order_raw
Place HyperLiquid perpetual orders for a HyperEVM vault with explicit limit price, time-in-force, and reduce-only flags, routing main-dex symbols on-chain and builder-dex symbols via the exchange API.
Instructions
Advanced HyperLiquid placeOrder with explicit limit price, TIF (Ioc/Alo/Gtc), and reduceOnly. Main-dex symbols (BTC, ETH, ...) route on-chain via CoreWriter; HIP-3 builder-dex symbols (xyz:GOLD, ...) route off-chain via the HL Exchange API. Does NOT move funds to third parties — orders fill into the vault's own positions. HyperEVM (chain 999) only.
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": {
"vault": "<vault>",
"perp": "<perp>",
"isLong": "<isLong>",
"sizeUsd": "<sizeUsd>",
"limitPxReal": "<limitPxReal>"
},
"name": "factor_hl_place_order_raw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tif | No | Time-in-force. Ioc=immediate-or-cancel, Alo=add-liquidity-only, Gtc=good-till-cancel. Default Ioc. | |
| perp | Yes | Perp symbol or index. Main dex: numeric (0) or symbol ("ETH"). Builder dex: qualified ("xyz:GOLD"). | |
| cloid | No | Optional client order id — 0x + 32 hex chars (128 bits). | |
| vault | Yes | Vault contract address (HyperEVM). | |
| isLong | Yes | true = buy/long, false = sell/short. | |
| sizeUsd | Yes | Notional size in USD (float dollars). | |
| password | No | Wallet password if encrypted. | |
| reduceOnly | No | true = order only reduces an existing position. Default false. | |
| limitPxReal | Yes | Limit price in REAL USD (NOT 1e8 wire scale), e.g. 4250.5 for $4250.50. |