Skip to main content
Glama

waiaas_hl_get_trade_history

Retrieve Hyperliquid trade history and fill data for a specified wallet to analyze transaction patterns and track trading activity.

Instructions

Get Hyperliquid trade history (fills) for a wallet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wallet_idNoWallet ID.
limitNoMaximum number of fills to return.

Implementation Reference

  • The tool 'waiaas_hl_get_trade_history' is registered here. The handler function performs an API request to the backend '/v1/wallets/${walletId}/hyperliquid/fills' to fetch trade history and returns the formatted result.
    // hl_get_trade_history
    server.tool(
      'waiaas_hl_get_trade_history',
      withWalletPrefix('Get Hyperliquid trade history (fills) for a wallet.', walletContext?.walletName),
      {
        wallet_id: z.string().optional().describe('Wallet ID.'),
        limit: z.string().optional().describe('Maximum number of fills to return.'),
      },
      async (args) => {
        const params = new URLSearchParams();
        if (args.limit) params.set('limit', args.limit);
        const walletId = args.wallet_id || 'default';
        const qs = params.toString();
        const result = await apiClient.get(`/v1/wallets/${walletId}/hyperliquid/fills${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