get_orders
Retrieve open or historical Hyperliquid orders by status, coin, or order ID to inspect trigger prices, size, and reduce-only flags; use it to verify a position's stop and target before cancelling.
Instructions
Get orders, one query per call. status=open (default): resting orders on every dex with order type (Stop Market, Take Profit Limit, Limit), trigger price, size and reduce-only flag; this is how to see a position's stop and target. status=history: filled and cancelled orders, newest first. oid or cloid looks up one order and overrides status. coin and limit narrow the list (limit default 100 open, 50 history, max 2000); address reads any wallet. Use before cancel_order (it needs the oid) and to check a position is protected. For executed trades use get_history. Needs a configured account or an address; with neither it returns {error, no_account: true}. Returns {count, orders[]: {coin, oid, side, sz, limitPx, triggerPx, orderType, reduceOnly}} or one order's status.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oid | No | One order by order id (overrides status). | |
| coin | No | Coin: a main-dex perp by name (BTC, ETH) or a HIP-3 perp as dex:SYMBOL (xyz:GOLD, xyz:BRENTOIL). | |
| cloid | No | One order by client order id, 0x + 32 hex (overrides status). | |
| limit | No | Most rows to return. | |
| status | No | open: resting now. history: filled and cancelled. | open |
| address | No | Any 0x address to read instead of the configured account (read-only; needs no key). |