Skip to main content
Glama

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
NameRequiredDescriptionDefault
wallet_idNoWallet ID.
sub_accountNoSub-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);
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/minhoyoo-iotrust/WAIaaS'

If you have feedback or need assistance with the MCP directory API, please join our Discord server