place_order
Execute limit or trigger orders on Hyperliquid DEX to buy or sell crypto assets. Specify asset, direction, price, size, and time parameters to manage trading positions.
Instructions
Place a limit or trigger order on Hyperliquid
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetIndex | Yes | Asset index for the coin (0 for BTC, 1 for ETH, etc.) | |
| clientOrderId | No | Client order ID (optional) | |
| isBuy | Yes | True for buy order, false for sell order | |
| price | Yes | Order price as string | |
| reduceOnly | No | Whether this is a reduce-only order (optional, default false) | |
| size | Yes | Order size as string | |
| timeInForce | Yes | Time in force |
Input Schema (JSON Schema)
{
"properties": {
"assetIndex": {
"description": "Asset index for the coin (0 for BTC, 1 for ETH, etc.)",
"type": "number"
},
"clientOrderId": {
"description": "Client order ID (optional)",
"type": "string"
},
"isBuy": {
"description": "True for buy order, false for sell order",
"type": "boolean"
},
"price": {
"description": "Order price as string",
"type": "string"
},
"reduceOnly": {
"description": "Whether this is a reduce-only order (optional, default false)",
"type": "boolean"
},
"size": {
"description": "Order size as string",
"type": "string"
},
"timeInForce": {
"description": "Time in force",
"enum": [
"Gtc",
"Ioc",
"Alo"
],
"type": "string"
}
},
"required": [
"assetIndex",
"isBuy",
"price",
"size",
"timeInForce"
],
"type": "object"
}