waiaas_hl_get_open_orders
Retrieve active trading orders from Hyperliquid for a specific wallet and sub-account to monitor positions and manage trades.
Instructions
Get Hyperliquid open orders for a wallet.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | No | Wallet ID. | |
| sub_account | No | Sub-account address (hex). |
Implementation Reference
- The handler implementation for the MCP tool 'waiaas_hl_get_open_orders' which queries the /v1/wallets/{walletId}/hyperliquid/orders endpoint.
// hl_get_open_orders server.tool( 'waiaas_hl_get_open_orders', withWalletPrefix('Get Hyperliquid open orders for a wallet.', walletContext?.walletName), { wallet_id: z.string().optional().describe('Wallet ID.'), sub_account: z.string().optional().describe('Sub-account address (hex).'), }, async (args) => { const params = new URLSearchParams(); if (args.sub_account) params.set('subAccount', args.sub_account); const walletId = args.wallet_id || 'default'; const qs = params.toString(); const result = await apiClient.get(`/v1/wallets/${walletId}/hyperliquid/orders${qs ? '?' + qs : ''}`); return toToolResult(result); }, );