factor_hl_open_position
Open long or short HyperLiquid perpetual positions sized in USD through a Factor vault on HyperEVM, routing main-dex symbols on-chain and HIP-3 builder-dex symbols off-chain.
Instructions
Open a HyperLiquid perp position (long or short) sized in USD through a Factor vault on HyperEVM (chain 999). Main-dex symbols (BTC, ETH, ...) route on-chain via the HL adapter; HIP-3 builder-dex symbols (xyz:GOLD, xyz:BRENTOIL, xyz:COPPER, xyz:AAPL, ...) route off-chain via the HL Exchange API.
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>",
"side": "<side>",
"sizeUsd": "<sizeUsd>"
},
"name": "factor_hl_open_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| perp | Yes | Perp symbol. Main dex: "ETH", "BTC", "SOL". Builder dex (HIP-3): "xyz:GOLD", "xyz:BRENTOIL", "xyz:COPPER", "xyz:AAPL", etc. | |
| side | Yes | Position direction. | |
| vault | Yes | Vault contract address (HyperEVM). | |
| sizeUsd | Yes | Notional size in USD (float dollars, e.g. 250.50 = $250.50). | |
| password | No | Wallet password if encrypted. | |
| slippageBps | No | Max slippage in basis points (0-10000). Default 1000 (10%). |